From 1d703819cc7bc2a33f8861a2900a8070796e3228 Mon Sep 17 00:00:00 2001 From: Zhongke Chen <65260095+zhongkechen@users.noreply.github.com> Date: Mon, 9 Nov 2026 19:50:37 +0000 Subject: [PATCH 1/4] chore: prepare Python SDK 3.1.0 release --- .github/tests/otel_legacy_registration_rejection_test.py | 2 +- .github/tests/otel_lifecycle_compatibility_test.py | 4 ++-- .../pyproject.toml | 4 ++-- .../pyproject.toml | 2 +- .../pyproject.toml | 2 +- .../src/aws_durable_execution_sdk_python_otel/__about__.py | 2 +- .../src/aws_durable_execution_sdk_python_testing/__about__.py | 2 +- .../src/aws_durable_execution_sdk_python/__about__.py | 2 +- 8 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/tests/otel_legacy_registration_rejection_test.py b/.github/tests/otel_legacy_registration_rejection_test.py index 8c5cdd3df..accfb18ff 100644 --- a/.github/tests/otel_legacy_registration_rejection_test.py +++ b/.github/tests/otel_legacy_registration_rejection_test.py @@ -30,7 +30,7 @@ def test_installed_legacy_registration_fails_before_invocation( monkeypatch: pytest.MonkeyPatch, view, name: str, registration: str ) -> None: - assert version("aws-durable-execution-sdk-python") == "3.0.1" + assert version("aws-durable-execution-sdk-python") == "3.1.0" assert version("aws-durable-execution-sdk-python-otel") == "1.0.0" assert "site-packages" in Path(core_execution.__file__).resolve().parts assert "site-packages" in Path(installed_otel.__file__).resolve().parts diff --git a/.github/tests/otel_lifecycle_compatibility_test.py b/.github/tests/otel_lifecycle_compatibility_test.py index 304af6ca0..bc6dad012 100644 --- a/.github/tests/otel_lifecycle_compatibility_test.py +++ b/.github/tests/otel_lifecycle_compatibility_test.py @@ -42,8 +42,8 @@ def __getattr__(self, name: str): @pytest.mark.parametrize("order", ["alone", "baggage-first", "baggage-last"]) @pytest.mark.parametrize("ambient_present", [False, True]) def test_installed_factory_pair_preserves_worker_context(view, order, ambient_present): - assert Version(version("aws-durable-execution-sdk-python")) == Version("3.0.1") - assert version("aws-durable-execution-sdk-python-otel") == "2.0.0" + assert Version(version("aws-durable-execution-sdk-python")) == Version("3.1.0") + assert version("aws-durable-execution-sdk-python-otel") == "2.1.0" assert "site-packages" in Path(core_execution.__file__).resolve().parts import aws_durable_execution_sdk_python_otel as installed_otel diff --git a/packages/aws-durable-execution-sdk-python-conformance-tests-otel/pyproject.toml b/packages/aws-durable-execution-sdk-python-conformance-tests-otel/pyproject.toml index cf27b86d2..6fceb1f9f 100644 --- a/packages/aws-durable-execution-sdk-python-conformance-tests-otel/pyproject.toml +++ b/packages/aws-durable-execution-sdk-python-conformance-tests-otel/pyproject.toml @@ -8,8 +8,8 @@ version = "0.0.0" description = "OpenTelemetry conformance test handlers for the AWS Durable Execution SDK for Python, exercised by the aws-durable-execution-conformance-tests OTel suites." requires-python = ">=3.11" dependencies = [ - "aws-durable-execution-sdk-python==3.0.1", - "aws-durable-execution-sdk-python-otel==2.0.0", + "aws-durable-execution-sdk-python==3.1.0", + "aws-durable-execution-sdk-python-otel==2.1.0", ] [tool.hatch.build.targets.wheel] diff --git a/packages/aws-durable-execution-sdk-python-conformance-tests-telemetry/pyproject.toml b/packages/aws-durable-execution-sdk-python-conformance-tests-telemetry/pyproject.toml index f141a48ab..b734e1841 100644 --- a/packages/aws-durable-execution-sdk-python-conformance-tests-telemetry/pyproject.toml +++ b/packages/aws-durable-execution-sdk-python-conformance-tests-telemetry/pyproject.toml @@ -8,7 +8,7 @@ version = "0.0.0" description = "Durable Execution Telemetry conformance test handlers for the AWS Durable Execution SDK for Python, exercised by the aws-durable-execution-conformance-tests telemetry suite." requires-python = ">=3.11" dependencies = [ - "aws-durable-execution-sdk-python==3.0.1", + "aws-durable-execution-sdk-python==3.1.0", "aws-durable-execution-sdk-python-telemetry-exporter==1.0.0", ] diff --git a/packages/aws-durable-execution-sdk-python-conformance-tests/pyproject.toml b/packages/aws-durable-execution-sdk-python-conformance-tests/pyproject.toml index e5df02893..4120555ed 100644 --- a/packages/aws-durable-execution-sdk-python-conformance-tests/pyproject.toml +++ b/packages/aws-durable-execution-sdk-python-conformance-tests/pyproject.toml @@ -8,7 +8,7 @@ version = "0.0.0" description = "Cross-SDK conformance test handlers for the AWS Durable Execution SDK for Python, exercised by the aws-durable-execution-conformance-tests runner." requires-python = ">=3.11" dependencies = [ - "aws-durable-execution-sdk-python==3.0.1", + "aws-durable-execution-sdk-python==3.1.0", ] [tool.hatch.build.targets.wheel] diff --git a/packages/aws-durable-execution-sdk-python-otel/src/aws_durable_execution_sdk_python_otel/__about__.py b/packages/aws-durable-execution-sdk-python-otel/src/aws_durable_execution_sdk_python_otel/__about__.py index 82fa7f7ee..bf59e70c1 100644 --- a/packages/aws-durable-execution-sdk-python-otel/src/aws_durable_execution_sdk_python_otel/__about__.py +++ b/packages/aws-durable-execution-sdk-python-otel/src/aws_durable_execution_sdk_python_otel/__about__.py @@ -1,4 +1,4 @@ # SPDX-FileCopyrightText: 2025-present Amazon.com, Inc. or its affiliates. # # SPDX-License-Identifier: Apache-2.0 -__version__ = "2.0.0" +__version__ = "2.1.0" diff --git a/packages/aws-durable-execution-sdk-python-testing/src/aws_durable_execution_sdk_python_testing/__about__.py b/packages/aws-durable-execution-sdk-python-testing/src/aws_durable_execution_sdk_python_testing/__about__.py index 3054e371f..271accb86 100644 --- a/packages/aws-durable-execution-sdk-python-testing/src/aws_durable_execution_sdk_python_testing/__about__.py +++ b/packages/aws-durable-execution-sdk-python-testing/src/aws_durable_execution_sdk_python_testing/__about__.py @@ -1,4 +1,4 @@ # SPDX-FileCopyrightText: 2025-present Amazon.com, Inc. or its affiliates. # # SPDX-License-Identifier: Apache-2.0 -__version__ = "1.4.0" +__version__ = "1.4.1" diff --git a/packages/aws-durable-execution-sdk-python/src/aws_durable_execution_sdk_python/__about__.py b/packages/aws-durable-execution-sdk-python/src/aws_durable_execution_sdk_python/__about__.py index 7aef488fc..06c6e01a1 100644 --- a/packages/aws-durable-execution-sdk-python/src/aws_durable_execution_sdk_python/__about__.py +++ b/packages/aws-durable-execution-sdk-python/src/aws_durable_execution_sdk_python/__about__.py @@ -1,4 +1,4 @@ # SPDX-FileCopyrightText: 2025-present Amazon.com, Inc. or its affiliates. # # SPDX-License-Identifier: Apache-2.0 -__version__ = "3.0.1" +__version__ = "3.1.0" From db37e61ed0101e092262b7f173c5829d2a35078a Mon Sep 17 00:00:00 2001 From: Zhongke Chen <65260095+zhongkechen@users.noreply.github.com> Date: Mon, 9 Nov 2026 20:00:17 +0000 Subject: [PATCH 2/4] test: reuse wheel verification for version checks --- .../tests/otel_legacy_registration_rejection_test.py | 7 +++++-- .github/tests/otel_lifecycle_compatibility_test.py | 10 +++++----- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/.github/tests/otel_legacy_registration_rejection_test.py b/.github/tests/otel_legacy_registration_rejection_test.py index accfb18ff..ce775ff83 100644 --- a/.github/tests/otel_legacy_registration_rejection_test.py +++ b/.github/tests/otel_legacy_registration_rejection_test.py @@ -1,4 +1,8 @@ -"""Verify the factory migration boundary against a real installed OTel 1 wheel.""" +"""Verify the factory migration boundary against a real installed OTel 1 wheel. + +Run with ``hatch run test-wheel-otel-legacy:test``. Its installer verifies the +current core artifact; OTel 1.0.0 is the fixed legacy compatibility fixture. +""" from importlib.metadata import version from pathlib import Path @@ -30,7 +34,6 @@ def test_installed_legacy_registration_fails_before_invocation( monkeypatch: pytest.MonkeyPatch, view, name: str, registration: str ) -> None: - assert version("aws-durable-execution-sdk-python") == "3.1.0" assert version("aws-durable-execution-sdk-python-otel") == "1.0.0" assert "site-packages" in Path(core_execution.__file__).resolve().parts assert "site-packages" in Path(installed_otel.__file__).resolve().parts diff --git a/.github/tests/otel_lifecycle_compatibility_test.py b/.github/tests/otel_lifecycle_compatibility_test.py index bc6dad012..0e09f02db 100644 --- a/.github/tests/otel_lifecycle_compatibility_test.py +++ b/.github/tests/otel_lifecycle_compatibility_test.py @@ -1,10 +1,13 @@ -"""Exercise real installed version pairs through the public durable handler.""" +"""Exercise installed wheels through the public durable handler. + +Run with ``hatch run test-wheel-otel:test``. Its installer selects the current +versions from __about__.py and verifies wheel hashes and installed source bytes. +""" from __future__ import annotations import contextvars from datetime import UTC, datetime -from importlib.metadata import version from pathlib import Path import threading from types import SimpleNamespace @@ -28,7 +31,6 @@ from opentelemetry.sdk.trace import TracerProvider from opentelemetry.sdk.trace.export import SimpleSpanProcessor from opentelemetry.sdk.trace.export.in_memory_span_exporter import InMemorySpanExporter -from packaging.version import Version class NoNetworkClient: @@ -42,8 +44,6 @@ def __getattr__(self, name: str): @pytest.mark.parametrize("order", ["alone", "baggage-first", "baggage-last"]) @pytest.mark.parametrize("ambient_present", [False, True]) def test_installed_factory_pair_preserves_worker_context(view, order, ambient_present): - assert Version(version("aws-durable-execution-sdk-python")) == Version("3.1.0") - assert version("aws-durable-execution-sdk-python-otel") == "2.1.0" assert "site-packages" in Path(core_execution.__file__).resolve().parts import aws_durable_execution_sdk_python_otel as installed_otel From 8494900fecb56febcf6dd9c80f1df1e707ad14df Mon Sep 17 00:00:00 2001 From: Zhongke Chen <65260095+zhongkechen@users.noreply.github.com> Date: Mon, 9 Nov 2026 21:45:05 +0000 Subject: [PATCH 3/4] fix(testing): require core empty-error preservation --- .../README.md | 3 ++ .../pyproject.toml | 5 ++-- .../tests/package_metadata_test.py | 28 +++++++++++++++++++ 3 files changed, 34 insertions(+), 2 deletions(-) create mode 100644 packages/aws-durable-execution-sdk-python-testing/tests/package_metadata_test.py diff --git a/packages/aws-durable-execution-sdk-python-testing/README.md b/packages/aws-durable-execution-sdk-python-testing/README.md index b32e5111c..1e8a8bea3 100644 --- a/packages/aws-durable-execution-sdk-python-testing/README.md +++ b/packages/aws-durable-execution-sdk-python-testing/README.md @@ -12,6 +12,9 @@ Test Python durable functions locally, before you deploy them. pip install aws-durable-execution-sdk-python-testing ``` +Requires Core SDK 3.1.0 or later, which preserves empty errors when saved +execution state is reloaded. + ## Quick start ```python diff --git a/packages/aws-durable-execution-sdk-python-testing/pyproject.toml b/packages/aws-durable-execution-sdk-python-testing/pyproject.toml index 78d1ff814..0b63a8087 100644 --- a/packages/aws-durable-execution-sdk-python-testing/pyproject.toml +++ b/packages/aws-durable-execution-sdk-python-testing/pyproject.toml @@ -23,7 +23,8 @@ classifiers = [ ] dependencies = [ "boto3>=1.42.1", - "aws-durable-execution-sdk-python>=3.0.0", + # Core 3.1.0 preserves empty errors when saved execution state is reloaded. + "aws-durable-execution-sdk-python>=3.1.0", ] [project.urls] @@ -66,7 +67,7 @@ dependencies = [ "pytest", "pytest-cov", "ruff", - "aws-durable-execution-sdk-python>=3.0.0", + "aws-durable-execution-sdk-python>=3.1.0", ] [tool.hatch.envs.test.scripts] diff --git a/packages/aws-durable-execution-sdk-python-testing/tests/package_metadata_test.py b/packages/aws-durable-execution-sdk-python-testing/tests/package_metadata_test.py new file mode 100644 index 000000000..c277a11de --- /dev/null +++ b/packages/aws-durable-execution-sdk-python-testing/tests/package_metadata_test.py @@ -0,0 +1,28 @@ +"""Protect the Core compatibility boundary for empty-error persistence.""" + +from pathlib import Path +import tomllib + +from packaging.requirements import Requirement +import pytest + + +@pytest.mark.parametrize("dependency_source", ["runtime", "test"]) +def test_core_dependency_requires_empty_error_preservation( + dependency_source: str, +) -> None: + package_root = Path(__file__).resolve().parents[1] + metadata = tomllib.loads((package_root / "pyproject.toml").read_text()) + dependencies = { + "runtime": metadata["project"]["dependencies"], + "test": metadata["tool"]["hatch"]["envs"]["test"]["dependencies"], + }[dependency_source] + requirements = { + requirement.name: requirement for requirement in map(Requirement, dependencies) + } + core = requirements["aws-durable-execution-sdk-python"] + + # These are fixed compatibility fixtures, not the current release versions. + # Core 3.0.1 loses empty errors on reload; Core 3.1.0 first preserves them. + assert not core.specifier.contains("3.0.1") + assert core.specifier.contains("3.1.0") From b547e17485fe43904539e10bf62638e95d3cdbec Mon Sep 17 00:00:00 2001 From: Zhongke Chen <65260095+zhongkechen@users.noreply.github.com> Date: Mon, 9 Nov 2026 21:51:17 +0000 Subject: [PATCH 4/4] chore: prepare Core 3.0.2 release --- .../pyproject.toml | 2 +- .../pyproject.toml | 2 +- .../pyproject.toml | 2 +- packages/aws-durable-execution-sdk-python-testing/README.md | 2 +- .../aws-durable-execution-sdk-python-testing/pyproject.toml | 6 +++--- .../tests/package_metadata_test.py | 4 ++-- .../src/aws_durable_execution_sdk_python/__about__.py | 2 +- 7 files changed, 10 insertions(+), 10 deletions(-) diff --git a/packages/aws-durable-execution-sdk-python-conformance-tests-otel/pyproject.toml b/packages/aws-durable-execution-sdk-python-conformance-tests-otel/pyproject.toml index 6fceb1f9f..12e27918e 100644 --- a/packages/aws-durable-execution-sdk-python-conformance-tests-otel/pyproject.toml +++ b/packages/aws-durable-execution-sdk-python-conformance-tests-otel/pyproject.toml @@ -8,7 +8,7 @@ version = "0.0.0" description = "OpenTelemetry conformance test handlers for the AWS Durable Execution SDK for Python, exercised by the aws-durable-execution-conformance-tests OTel suites." requires-python = ">=3.11" dependencies = [ - "aws-durable-execution-sdk-python==3.1.0", + "aws-durable-execution-sdk-python==3.0.2", "aws-durable-execution-sdk-python-otel==2.1.0", ] diff --git a/packages/aws-durable-execution-sdk-python-conformance-tests-telemetry/pyproject.toml b/packages/aws-durable-execution-sdk-python-conformance-tests-telemetry/pyproject.toml index b734e1841..9871a1ee2 100644 --- a/packages/aws-durable-execution-sdk-python-conformance-tests-telemetry/pyproject.toml +++ b/packages/aws-durable-execution-sdk-python-conformance-tests-telemetry/pyproject.toml @@ -8,7 +8,7 @@ version = "0.0.0" description = "Durable Execution Telemetry conformance test handlers for the AWS Durable Execution SDK for Python, exercised by the aws-durable-execution-conformance-tests telemetry suite." requires-python = ">=3.11" dependencies = [ - "aws-durable-execution-sdk-python==3.1.0", + "aws-durable-execution-sdk-python==3.0.2", "aws-durable-execution-sdk-python-telemetry-exporter==1.0.0", ] diff --git a/packages/aws-durable-execution-sdk-python-conformance-tests/pyproject.toml b/packages/aws-durable-execution-sdk-python-conformance-tests/pyproject.toml index 4120555ed..b4b05335b 100644 --- a/packages/aws-durable-execution-sdk-python-conformance-tests/pyproject.toml +++ b/packages/aws-durable-execution-sdk-python-conformance-tests/pyproject.toml @@ -8,7 +8,7 @@ version = "0.0.0" description = "Cross-SDK conformance test handlers for the AWS Durable Execution SDK for Python, exercised by the aws-durable-execution-conformance-tests runner." requires-python = ">=3.11" dependencies = [ - "aws-durable-execution-sdk-python==3.1.0", + "aws-durable-execution-sdk-python==3.0.2", ] [tool.hatch.build.targets.wheel] diff --git a/packages/aws-durable-execution-sdk-python-testing/README.md b/packages/aws-durable-execution-sdk-python-testing/README.md index 1e8a8bea3..d37665298 100644 --- a/packages/aws-durable-execution-sdk-python-testing/README.md +++ b/packages/aws-durable-execution-sdk-python-testing/README.md @@ -12,7 +12,7 @@ Test Python durable functions locally, before you deploy them. pip install aws-durable-execution-sdk-python-testing ``` -Requires Core SDK 3.1.0 or later, which preserves empty errors when saved +Requires Core SDK 3.0.2 or later, which preserves empty errors when saved execution state is reloaded. ## Quick start diff --git a/packages/aws-durable-execution-sdk-python-testing/pyproject.toml b/packages/aws-durable-execution-sdk-python-testing/pyproject.toml index 0b63a8087..618b89884 100644 --- a/packages/aws-durable-execution-sdk-python-testing/pyproject.toml +++ b/packages/aws-durable-execution-sdk-python-testing/pyproject.toml @@ -23,8 +23,8 @@ classifiers = [ ] dependencies = [ "boto3>=1.42.1", - # Core 3.1.0 preserves empty errors when saved execution state is reloaded. - "aws-durable-execution-sdk-python>=3.1.0", + # Core 3.0.2 preserves empty errors when saved execution state is reloaded. + "aws-durable-execution-sdk-python>=3.0.2", ] [project.urls] @@ -67,7 +67,7 @@ dependencies = [ "pytest", "pytest-cov", "ruff", - "aws-durable-execution-sdk-python>=3.1.0", + "aws-durable-execution-sdk-python>=3.0.2", ] [tool.hatch.envs.test.scripts] diff --git a/packages/aws-durable-execution-sdk-python-testing/tests/package_metadata_test.py b/packages/aws-durable-execution-sdk-python-testing/tests/package_metadata_test.py index c277a11de..6be9c9801 100644 --- a/packages/aws-durable-execution-sdk-python-testing/tests/package_metadata_test.py +++ b/packages/aws-durable-execution-sdk-python-testing/tests/package_metadata_test.py @@ -23,6 +23,6 @@ def test_core_dependency_requires_empty_error_preservation( core = requirements["aws-durable-execution-sdk-python"] # These are fixed compatibility fixtures, not the current release versions. - # Core 3.0.1 loses empty errors on reload; Core 3.1.0 first preserves them. + # Core 3.0.1 loses empty errors on reload; Core 3.0.2 first preserves them. assert not core.specifier.contains("3.0.1") - assert core.specifier.contains("3.1.0") + assert core.specifier.contains("3.0.2") diff --git a/packages/aws-durable-execution-sdk-python/src/aws_durable_execution_sdk_python/__about__.py b/packages/aws-durable-execution-sdk-python/src/aws_durable_execution_sdk_python/__about__.py index 06c6e01a1..0f1ac78ef 100644 --- a/packages/aws-durable-execution-sdk-python/src/aws_durable_execution_sdk_python/__about__.py +++ b/packages/aws-durable-execution-sdk-python/src/aws_durable_execution_sdk_python/__about__.py @@ -1,4 +1,4 @@ # SPDX-FileCopyrightText: 2025-present Amazon.com, Inc. or its affiliates. # # SPDX-License-Identifier: Apache-2.0 -__version__ = "3.1.0" +__version__ = "3.0.2"