npm @temporalio/testing 1.11.0

latest releases: 1.13.0, 1.12.3, 1.12.2...
13 months ago

Bug Fixes

  • Fix flakes in Worker Tuner and Workflow Update tests (#1463)
  • [workflow] Don't propagate cancellation from non-cancellable scopes to children (#1429)
  • [worker] Don't fail Worker on Activity Task decode failures (port from #1473) (#1477)
  • [ci] Enable file-based persistence on dev server for stress tests (#1480)
  • [workflow] Fix cancel-before-started abandon activity (#1487)
  • [doc] Docs were no longer being built and deployed in CI (#1494)
  • [workflow] Process all activation jobs as a single batch (#1488)

Documentation

  • Clarify some drawbacks of ephemeral servers, and other minor fixes (#1478)

Features

Resource-based Worker Auto-tuning (EXPERIMENTAL)

Experimental support for worker tuning has been added along with an implementation for auto-tuning based on available
resources. WorkerOptions now has a tuner field that can be set to a WorkerTuner. This is composed of SlotSuppliers, of which currently FixedSize and ResourceBased are available. ResourceBased tuners change the number of available slots dynamically based on resource usage. For some examples of initializing the worker tuner, see here.

At some point the SlotSupplier interface will be manually implementable, but only fixed-size and resource-based slot suppliers are currently supported. Custom slot suppliers will appear in the future.

This SDK API is experimental and may change in incompatible ways in the future.

  • [workflow] Unify GRPC::CANCELED and DEADLINE_EXCEEDED in an SDK Timeout exception for Update (#1452)
  • [workflow] Expose updateId to update handlers (#1450)
  • [workflow] Add upsert memo command (#1321)

Miscellaneous Tasks

  • Bump GHA runner for stress tests (#1492)

Client

  • Make gRPC INTERNAL status retryable (#1455)

Don't miss a new testing release

NewReleases is sending notifications on new releases.