Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .github/release-candidates/2.19.1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"schema": "sdk-python.reviewed-release/v1",
"version": "2.19.1",
"source_commit": "acfb617028319f1f5a5dd3a569a4ae8968d265d9",
"source_tree": "2e4f4f37ecff871eee09f5e26f256dd170672fdd",
"run_id": 44360890938,
"run_attempt": 1,
"artifact_id": 14453614958,
"artifact_sha256": "528fc421c3966c0daa4c54440ff78666b4bcedcb1cac2ffdbd79413fb9d1a198",
"files": {
"durable_workflow-2.19.1-py3-none-any.whl": "aef3fe486d897ea48cb6c713a418f35c6eea6cd64a0950e98430efed76c8d211",
"durable_workflow-2.19.1.tar.gz": "e486193ee63814fd96f25eeb20e188a0b12118acd88ca6e7e3103f7919142ca2"
}
}
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ jobs:
id: retry-candidate
env:
GH_TOKEN: ${{ github.token }}
run: python .github/scripts/promote_release.py resolve --version 2.19.0
run: python .github/scripts/promote_release.py resolve --version 2.19.1
- name: Download the approved candidate handoff
if: inputs.retry_cap_artifact_source == 'candidate'
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
Expand All @@ -110,7 +110,7 @@ jobs:
archive: false
- name: Verify candidate archive and distribution bytes
if: inputs.retry_cap_artifact_source == 'candidate'
run: python .github/scripts/promote_release.py extract --version 2.19.0
run: python .github/scripts/promote_release.py extract --version 2.19.1
- name: Bootstrap patched pip trust
uses: durable-workflow/.github/.github/actions/bootstrap-patched-pip@75587fc33ff40c34f32ef777293dad56bb6f48c7 # clean-trust
with:
Expand Down
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [2.19.1] - 2026-11-18

### Fixed

- Code run by Python's cyclic garbage collector can no longer read the business replay clock. When a discarded replay (for example an outcome that was never closed and is only reachable from a reference cycle) is collected, CPython finalizes the objects in that cycle in no specified order. If the discarded workflow generator was finalized before the replay lifetime that owns it, its `finally` block ran outside discard handling and `ctx.replay_now()` on a still-active parent workflow returned the parent's time instead of raising `ReplayClockUnavailable`. Whether this happened depended on when an automatic collection had last run, so it showed up as an intermittent test failure on Python 3.10 (#343). `replay_now()` now raises `ReplayClockUnavailable` for every read made while a collection runs on the reading thread.
- A discarded replay finalized during garbage collection could read the parent workflow's replay clock. Clock reads made while a collection runs now raise `ReplayClockUnavailable`, and recorded history is unchanged (#343, #344). In detail: code run by Python's cyclic garbage collector can no longer read the business replay clock. When a discarded replay (for example an outcome that was never closed and is only reachable from a reference cycle) is collected, CPython finalizes the objects in that cycle in no specified order. If the discarded workflow generator was finalized before the replay lifetime that owns it, its `finally` block ran outside discard handling and `ctx.replay_now()` on a still-active parent workflow returned the parent's time instead of raising `ReplayClockUnavailable`. Whether this happened depended on when an automatic collection had last run, so it showed up as an intermittent test failure on Python 3.10 (#343). `replay_now()` now raises `ReplayClockUnavailable` for every read made while a collection runs on the reading thread.
- **Replay safety:** no command, history field or recorded value changes. Only reads made from finalizers or weakref callbacks during a collection are affected, and those never ran at a deterministic point in workflow code.

## [2.19.0] - 2026-11-18
Expand Down
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "durable-workflow"
version = "2.19.0"
version = "2.19.1"
description = "Python client and worker SDK for Durable Workflow Cloud and self-hosted Server"
readme = "README.md"
requires-python = ">=3.10"
Expand Down Expand Up @@ -79,8 +79,8 @@ durable-workflow-replay-conformance = "durable_workflow.replay_conformance:main"
durable-workflow-workflow-updates-conformance = "durable_workflow.workflow_updates_conformance:main"

[tool.durable-workflow]
product-train = "2.19.0"
registry-version = "2.19.0"
product-train = "2.19.1"
registry-version = "2.19.1"
supported-server-versions = "2.8.0"
supported-server-release-baselines = { "2" = "2.8.0", "3" = "3.0.0" }
worker-protocol-version = "1.20"
Expand Down
2 changes: 1 addition & 1 deletion scripts/ci/activity-retry-cap.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
The retry-cap case qualifies the exact reviewed 2.19.0 wheel on the published
The retry-cap case qualifies the exact reviewed 2.19.1 wheel on the published
Server/Python tuple in `tests/fixtures/published-retry-cap.json`. It uses the
existing internal two-container profile, complete hash lock, captured no-site
entry, before/after installed inventory and independent ID/label cleanup.
Expand Down
2 changes: 1 addition & 1 deletion scripts/ci/activity_acceptance_release.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

from scripts.ci.activity_acceptance_entry import captured_file

VERSION = "2.19.0"
VERSION = "2.19.1"
WHEEL = f"durable_workflow-{VERSION}-py3-none-any.whl"
SDIST = f"durable_workflow-{VERSION}.tar.gz"

Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/published-retry-cap.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"schema": "sdk-python.published-activity-acceptance/v1",
"sdk_version": "2.19.0",
"sdk_version": "2.19.1",
"server_image": "ghcr.io/durable-workflow/server@sha256:30ccaf2cea6810a92915a9eb389f1a63ea870818a74c9cc1a321379b07b2d25c",
"server_source": "2d1244be4611e1bc4aa4f0d856c708bed17937b4",
"server_amd64_manifest": "sha256:6cdcb909b1ca46d10410d7f659fcbd292dbf02be0c337d989b886153c0f3ee56",
Expand Down
2 changes: 1 addition & 1 deletion tests/test_activity_retry_cap_cell.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def approval(digest="a" * 64):

def test_effective_lock_adds_only_the_approved_sdk_to_the_fixed_dependencies():
result, digest = release.lock(b"pytest==1 --hash=sha256:" + b"c" * 64 + b"\n", approval())
assert result.endswith(f"durable-workflow==2.19.0 --hash=sha256:{digest}\n".encode())
assert result.endswith(f"durable-workflow==2.19.1 --hash=sha256:{digest}\n".encode())
assert result.count(b"durable-workflow") == 1


Expand Down
Loading