Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: microsoft/durabletask-python
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: d9cf9e2
Choose a base ref
...
head repository: microsoft/durabletask-python
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: f9f754c
Choose a head ref
  • 17 commits
  • 83 files changed
  • 8 contributors

Commits on Oct 16, 2026

  1. [Azure Functions] Add opt-in Unicode JSON serialization (#292)

    * feat(functions): add opt-in Unicode JSON serialization
    
    Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
    
    Copilot-Session: 54e13dcd-4b0d-4c0b-ab5b-bbb958fd5792
    
    * chore(functions): adopt released Unicode codec API
    
    Require azure-functions 2.4.0b1 and exercise its released opt-in codec directly. Align documentation and samples with the available shared-library API.
    
    Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
    Copilot-Session: 54e13dcd-4b0d-4c0b-ab5b-bbb958fd5792
    
    ---------
    
    Co-authored-by: Bernd Verst <beverst@microsoft.com>
    Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
    Copilot-Session: 54e13dcd-4b0d-4c0b-ab5b-bbb958fd5792
    3 people authored Oct 16, 2026
    Configuration menu
    Copy the full SHA
    cb75760 View commit details
    Browse the repository at this point in the history

Commits on Oct 20, 2026

  1. fix(worker): close orchestrator generators when a dispatch ends (#300)

    Give each replay dispatch explicit ownership of its orchestrator generator: close it once in an outer finally after the response is built, so cleanup in finally blocks runs deterministically and cannot alter the returned actions or custom status. Ordinary teardown failures are logged without replacing dispatch results or abandonment.
    
    Async bridges such as Pydantic AI otherwise retain AnyIO task scopes, event loops, and orchestration contexts indefinitely. Also relevant to the async/await work in #293 and #294.
    
    Fixes #299
    
    Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
    Copilot-Session: 35371373-86cf-4897-bf7c-460fa3c88d1f
    tamirdresher and Copilot authored Oct 20, 2026
    Configuration menu
    Copy the full SHA
    4b076ba View commit details
    Browse the repository at this point in the history

Commits on Oct 21, 2026

  1. fix(worker): preserve dispatch outcomes when generator teardown raise…

    …s CancelledError (#303)
    
    Catch asyncio.CancelledError raised by orchestrator generator teardown alongside ordinary cleanup exceptions, so a cancelled async bridge cannot replace an already-built dispatch response or a version-rejection abandonment. SystemExit and KeyboardInterrupt still propagate.
    
    Document the per-dispatch finalizer contract in docs/supported-patterns.md and clarify the three Unreleased changelog entries.
    
    Closes #301
    
    Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
    Copilot-Session: 35371373-86cf-4897-bf7c-460fa3c88d1f
    tamirdresher and Copilot authored Oct 21, 2026
    Configuration menu
    Copy the full SHA
    14e75af View commit details
    Browse the repository at this point in the history
  2. Preflight all externalized payload sizes before uploads (#305)

    Fixes #298
    
    Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
    
    Copilot-Session: c95a41ba-3f18-427d-8a6c-a7438e7ec782
    andystaples authored Oct 21, 2026
    Configuration menu
    Copy the full SHA
    100263b View commit details
    Browse the repository at this point in the history

Commits on Oct 22, 2026

  1. Complete permanent payload failures with entity-lock cleanup (#306)

    * fix: complete permanent payload failures and release entity locks
    
    Fixes #297
    
    Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
    
    Copilot-Session: 064f1284-f637-4ba9-8406-8c094ce9f845
    
    * fix: preserve historical entity release order during replay
    
    Retain legacy shared-list ordering while tracking pending lock release obligations independently.
    
    Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
    
    Copilot-Session: 064f1284-f637-4ba9-8406-8c094ce9f845
    
    * test: explain handled entity failure in replay regression
    
    Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
    
    Copilot-Session: 064f1284-f637-4ba9-8406-8c094ce9f845
    
    * fix: keep normal unlock emission separate from terminal cleanup
    
    Preserve pending-call legacy release and subsequent action IDs while retaining missing obligations for permanent payload failure snapshots.
    
    Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
    
    Copilot-Session: 064f1284-f637-4ba9-8406-8c094ce9f845
    
    * test: make payload failure regression return explicit
    
    Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
    
    Copilot-Session: 064f1284-f637-4ba9-8406-8c094ce9f845
    
    ---------
    
    Copilot-Session: 064f1284-f637-4ba9-8406-8c094ce9f845
    andystaples authored Oct 22, 2026
    Configuration menu
    Copy the full SHA
    040c9e5 View commit details
    Browse the repository at this point in the history
  2. feat(client): add task hub name filter to orchestration queries (#295)

    Closes #222.
    
    - Adds 	ask_hub_names: list[str] | None = None to OrchestrationQuery.
    - Serializes 	ask_hub_names into InstanceQuery.taskHubNames as 
    epeated google.protobuf.StringValue in �uild_query_instances_req().
    - Updates unit tests covering 	ask_hub_names serialization independently, combined with instance_id_prefix, and verifying positional argument order preservation.
    - Documents the addition in CHANGELOG.md under Unreleased.
    hardikkaurani authored Oct 22, 2026
    Configuration menu
    Copy the full SHA
    e4a6403 View commit details
    Browse the repository at this point in the history
  3. fix(worker): recover unexpected orchestration dispatch exits (#307)

    * fix(worker): recover unexpected orchestration dispatch exits
    
    Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
    
    Copilot-Session: 974213a5-9101-41b4-9bde-aa86a72f25e1
    
    * fix(worker): preserve recovery signals and stacked lock-release paths
    
    Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
    
    Copilot-Session: 974213a5-9101-41b4-9bde-aa86a72f25e1
    
    * test: simplify dispatch recovery parameter IDs
    
    Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
    
    Copilot-Session: 974213a5-9101-41b4-9bde-aa86a72f25e1
    
    * test: preserve post-call release order in teardown failures
    
    Regression for the pending replay-compatible #306 dependency update; not published until the verified replacement base is integrated.
    
    Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
    
    Copilot-Session: 974213a5-9101-41b4-9bde-aa86a72f25e1
    
    * test: verify scheduler-visible teardown failure over local gRPC
    
    Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
    
    Copilot-Session: 974213a5-9101-41b4-9bde-aa86a72f25e1
    
    * test: cover compatible release order for pending entity calls
    
    Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
    
    Copilot-Session: 974213a5-9101-41b4-9bde-aa86a72f25e1
    
    * fix(worker): recover output serialization exits before completion
    
    Keep terminal callbacks non-reentrant while restoring failure conversion after incomplete output serialization. Treat serialization StopIteration as failure, not generator completion.
    
    Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
    
    Copilot-Session: 974213a5-9101-41b4-9bde-aa86a72f25e1
    
    * fix(worker): retain pending releases for unexpected terminal failures
    
    Reuse the existing failed-result conversion after the full pre-close snapshot; preserve historical normal timeout actions and original failure details.
    
    Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
    
    Copilot-Session: 974213a5-9101-41b4-9bde-aa86a72f25e1
    
    ---------
    
    Copilot-Session: 974213a5-9101-41b4-9bde-aa86a72f25e1
    andystaples authored Oct 22, 2026
    Configuration menu
    Copy the full SHA
    0cf1ad4 View commit details
    Browse the repository at this point in the history

Commits on Oct 26, 2026

  1. fix(entities): implement __hash__ and __repr__ for EntityInstanceId (#…

    …309)
    
    * fix(entities): implement __hash__ and __repr__ for EntityInstanceId
    
    * fix(entities): enforce immutability on EntityInstanceId for hash stability
    
    * fix(entities): preserve subclass type when pickling
    hardikkaurani authored Oct 26, 2026
    Configuration menu
    Copy the full SHA
    888ee21 View commit details
    Browse the repository at this point in the history
  2. Bump the github-actions group across 1 directory with 4 updates (#296)

    Bumps the github-actions group with 4 updates in the / directory: [github/codeql-action/init](https://github.com/github/codeql-action), [github/codeql-action/analyze](https://github.com/github/codeql-action), [actions/setup-node](https://github.com/actions/setup-node) and [actions/upload-artifact](https://github.com/actions/upload-artifact).
    
    
    Updates `github/codeql-action/init` from 4.38.2 to 4.39.0
    - [Release notes](https://github.com/github/codeql-action/releases)
    - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
    - [Commits](github/codeql-action@2892aa5...6f2ac81)
    
    Updates `github/codeql-action/analyze` from 4.38.2 to 4.39.0
    - [Release notes](https://github.com/github/codeql-action/releases)
    - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
    - [Commits](github/codeql-action@2892aa5...6f2ac81)
    
    Updates `actions/setup-node` from 7.0.0 to 7.1.0
    - [Release notes](https://github.com/actions/setup-node/releases)
    - [Commits](actions/setup-node@8207627...949feb2)
    
    Updates `actions/upload-artifact` from 7.0.1 to 7.0.2
    - [Release notes](https://github.com/actions/upload-artifact/releases)
    - [Commits](actions/upload-artifact@043fb46...cf430e0)
    
    ---
    updated-dependencies:
    - dependency-name: actions/setup-node
      dependency-version: 7.1.0
      dependency-type: direct:production
      update-type: version-update:semver-minor
      dependency-group: github-actions
    - dependency-name: actions/upload-artifact
      dependency-version: 7.0.2
      dependency-type: direct:production
      update-type: version-update:semver-patch
      dependency-group: github-actions
    - dependency-name: github/codeql-action/analyze
      dependency-version: 4.38.3
      dependency-type: direct:production
      update-type: version-update:semver-patch
      dependency-group: github-actions
    - dependency-name: github/codeql-action/init
      dependency-version: 4.38.3
      dependency-type: direct:production
      update-type: version-update:semver-patch
      dependency-group: github-actions
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Oct 26, 2026
    Configuration menu
    Copy the full SHA
    6a56be2 View commit details
    Browse the repository at this point in the history

Commits on Oct 30, 2026

  1. fix(serialization): support set and frozenset generic containers in J…

    …sonDataConverter (#310)
    
    * fix(serialization): support set and frozenset generic containers in JsonDataConverter
    
    * fix(serialization): deterministic set ordering, opt-in set reconstruction, and pyright typing
    
    - Preserve replay compatibility by gating generic set reconstruction behind enable_generic_sets=False default on JsonDataConverter
    - Ensure deterministic set serialization with fallback sort key on recursive encoded values, qualname, and repr
    - Retain primitive set element annotations in type discovery when set reconstruction is enabled
    - Resolve strict pyright errors and update tests
    
    * fix(serialization): stabilize nested set ordering
    
    * fix(serialization): simplify set serialization by emitting sorted canonical JSON strings
    hardikkaurani authored Oct 30, 2026
    Configuration menu
    Copy the full SHA
    d2a3e7f View commit details
    Browse the repository at this point in the history
  2. Optimize deterministic set serialization without JSON parse round tri…

    …ps (#313)
    
    * Optimize deterministic set serialization without JSON parse round trips
    
    Normalize set subtrees once, reuse normalized values for output, and skip singleton ordering keys while preserving legacy coercion defaults.
    
    Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
    
    * Preserve Unicode object-name normalization in set payloads
    
    Collapse equivalent UTF-16 surrogate-pair and non-BMP names before dictionary insertion, preserve lone surrogates, and consolidate test imports.
    
    Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
    
    * Align opt-in set discovery with tuple and abstract-set reconstruction
    
    Recognize hashable typed tuples recursively and reconstruct bare collections.abc.Set annotations as concrete sets only when enabled. Cover both opt-in names, discovery, activity execution, and unchanged legacy defaults.
    
    Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
    
    * Reduce dictionary-heavy set normalization overhead
    
    Compose only actual surrogate pairs, bypass recursive normalization for scalar dictionary fields, and avoid cycle-tracking writes for scalar-only records. Cover reviewer payload shapes and retain per-occurrence hooks and cycle detection.
    
    Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
    
    ---------
    
    Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
    andystaples and Copilot authored Oct 30, 2026
    Configuration menu
    Copy the full SHA
    2b36e56 View commit details
    Browse the repository at this point in the history
  3. Drop Python 3.10 support and adopt Python 3.11 features (#302)

    * Drop Python 3.10 support and adopt Python 3.11 features
    
    Raise the core and Azure Managed minimum to Python 3.11 while retaining Python 3.13 for Functions. Align CI, Nox, type checking, and documentation; use Self, UTC and ExceptionGroup, and remove obsolete compatibility shims.
    
    Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
    
    Copilot-Session: e6b07f3f-b3e1-49dd-9121-318968272d31
    
    * Modernize newly merged code for Python 3.11
    
    Use native exception-group matching and preserve nested failure diagnostics and notes. Extend Self typing to immutable entity copy protocols, remove the obsolete asyncio backport dependency, and cover dispatch and provider compatibility.
    
    Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
    
    Copilot-Session: e6b07f3f-b3e1-49dd-9121-318968272d31
    
    * Cover native Python 3.11 type resolution for new set support
    
    Exercise modern and legacy nested set annotations, recursive frozenset dataclasses, and activity input/output discovery for both opt-in options without restoring the Python 3.10 forward-reference evaluator.
    
    Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
    
    Copilot-Session: e6b07f3f-b3e1-49dd-9121-318968272d31
    
    * Preserve callback failure causes and document group diagnostic limits
    
    Restore the first callback exception as the explicit cause so legacy cause-based recovery histories replay correctly and retain structured inner failures. Cover wide/deep groups with explicit traceback rendering limits, and document the remaining aggregate type/message replay compatibility change.
    
    Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
    
    Copilot-Session: e6b07f3f-b3e1-49dd-9121-318968272d31
    
    * Make replay regression orchestrator return explicit
    
    Address the automated code-quality finding without changing the test orchestrator's fall-through behavior.
    
    Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
    
    Copilot-Session: e6b07f3f-b3e1-49dd-9121-318968272d31
    
    ---------
    
    Co-authored-by: Bernd Verst <beverst@microsoft.com>
    Copilot-Session: e6b07f3f-b3e1-49dd-9121-318968272d31
    berndverst and Bernd Verst authored Oct 30, 2026
    Configuration menu
    Copy the full SHA
    97427b2 View commit details
    Browse the repository at this point in the history

Commits on Nov 1, 2026

  1. Bump the github-actions group with 3 updates (#315)

    Bumps the github-actions group with 3 updates: [github/codeql-action/init](https://github.com/github/codeql-action), [github/codeql-action/analyze](https://github.com/github/codeql-action) and [actions/setup-python](https://github.com/actions/setup-python).
    
    
    Updates `github/codeql-action/init` from 4.39.0 to 4.39.1
    - [Release notes](https://github.com/github/codeql-action/releases)
    - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
    - [Commits](github/codeql-action@6f2ac81...9b32540)
    
    Updates `github/codeql-action/analyze` from 4.39.0 to 4.39.1
    - [Release notes](https://github.com/github/codeql-action/releases)
    - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
    - [Commits](github/codeql-action@6f2ac81...9b32540)
    
    Updates `actions/setup-python` from 7.0.0 to 7.1.0
    - [Release notes](https://github.com/actions/setup-python/releases)
    - [Commits](actions/setup-python@5fda3b9...6d4fd22)
    
    ---
    updated-dependencies:
    - dependency-name: github/codeql-action/init
      dependency-version: 4.39.1
      dependency-type: direct:production
      update-type: version-update:semver-patch
      dependency-group: github-actions
    - dependency-name: github/codeql-action/analyze
      dependency-version: 4.39.1
      dependency-type: direct:production
      update-type: version-update:semver-patch
      dependency-group: github-actions
    - dependency-name: actions/setup-python
      dependency-version: 7.1.0
      dependency-type: direct:production
      update-type: version-update:semver-minor
      dependency-group: github-actions
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Nov 1, 2026
    Configuration menu
    Copy the full SHA
    5c842a3 View commit details
    Browse the repository at this point in the history

Commits on Nov 2, 2026

  1. Honor non-retriable activity and sub-orchestration failures (#318)

    * Honor non-retriable activity and sub-orchestration failures
    
    Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
    
    * Make regression test orchestrator return explicit
    
    Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
    
    * Use explicit UTC time in retry regression test
    
    Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
    
    ---------
    
    Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
    andystaples and Copilot authored Nov 2, 2026
    Configuration menu
    Copy the full SHA
    fe2d7d7 View commit details
    Browse the repository at this point in the history
  2. Release durabletask 1.13.0 and Azure Functions 2.0.0rc4 (#321)

    * Prepare durabletask 1.13.0 and Azure Functions 2.0.0rc4 releases
    
    Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
    
    * Focus release changelogs on user impact and upgrade risks
    
    Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
    
    ---------
    
    Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
    andystaples and Copilot authored Nov 2, 2026
    Configuration menu
    Copy the full SHA
    daae8b8 View commit details
    Browse the repository at this point in the history
  3. Fix official CI by replacing AnyIO in generator cleanup tests (#333)

    * Fix missing anyio test dependency in official CI
    
    Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
    
    * Replace AnyIO test task group with asyncio
    
    Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
    
    ---------
    
    Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
    andystaples and Copilot authored Nov 2, 2026
    Configuration menu
    Copy the full SHA
    d6fb240 View commit details
    Browse the repository at this point in the history
  4. Fix ESRP releases with Node20-compatible task (#335)

    Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
    andystaples and Copilot authored Nov 2, 2026
    Configuration menu
    Copy the full SHA
    f9f754c View commit details
    Browse the repository at this point in the history
Loading