Skip to content

chore: prepare SDK 3 and OTel 2 releases - #801

Merged
yaythomas merged 5 commits into
mainfrom
chore/prepare-python-major-release-20261021
Oct 26, 2026
Merged

yaythomas merged 5 commits into
mainfrom
chore/prepare-python-major-release-20261021

Conversation

@zhongkechen

@zhongkechen zhongkechen commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Prepare the coordinated Core 3.0.0 / OTel 2.0.0 release on top of #737. The plugin contract changes from shared instances to per-invocation factories; the release now includes a complete 2.x to 3.0 migration guide so consumers can update their packages, providers, and Lambda layers together.

Release scope

Package Prepared version
Core SDK 3.0.0
OpenTelemetry 2.0.0
Extras 0.1.0
Testing 1.3.0

Core, OTel, and Extras version changes are inherited from #737. Testing keeps the previously published 1.3.0 version. The compatibility check verifies that OTel accepts later Core 3.x minor releases.

Migration guidance

Use the same section order, sentence-case headings, terminology, and version-labeled examples as the JavaScript and Java migration guides.

The new guide follows the existing 1.x-to-2.0 guide: why upgrade, porting steps, before/after examples, searches for affected code, and post-upgrade validation. It covers the removed provider wrapper, factory and invocation state ownership, OTel registration and layer upgrades, optional registration metadata, and replay/concurrency checks. The root README, Core/OTel READMEs, and release instructions link to it.

The guide also covers #737's failed-Start context change: Core 3 retains partial context-variable bindings for later hooks, handler code and cleanup. Plugins own restoration; invocation End retains token ownership and the caller remains isolated. This restack preserves the existing release metadata and passes the ten OTel package-metadata tests.

Merge order

Merge #737 first, then retarget this PR to main and refresh it. Finalize any additional release content and publication notes before publishing.

Validation

For the migration-guide update:

  • 66 existing Python tests passed: plugin discovery, invocation-operation replay integration, and OTel package metadata.
  • The documented custom factory, provider object, and both OTel factory variants execute against the release source. Factory instances are fresh and carry the expected execution identity.
  • Python code-block syntax and the new examples' types pass (mypy with silent imported-module checking and missing-import tolerance).
  • Local links/anchors and git diff --check pass. The style update preserves all 10 code blocks apart from version-label comments and leaves package versions unchanged.

This update changes documentation only; cloud release acceptance remains part of final release validation.

Restacked on #737's registration-cleanup fix (e1e0ae47). Invalid loaded candidates now receive rejection cleanup; type inspection cannot interrupt notification or replace the original error. The changed validator and new regression tests match #737 exactly. Shared validation passes 1,978 Core tests, 736 OTel tests, 204 Telemetry tests, and installed-wheel compatibility checks. The final stack's focused 100-test registration run and Core type checks also pass.

Restacked on #737 after its integration of main 531969b5. This carries the worker suspension and plugin lifecycle logging fixes while preserving this PR’s own layer. The incoming replay regression uses the Core 3 factory API. Shared validation passes all 436 worker tests and 14 general conformance tests, worker type checks, package formatting and builds.

@zhongkechen
zhongkechen force-pushed the chore/prepare-python-major-release-20261021 branch from dced913 to 24add8b Compare October 21, 2026 22:43
@zhongkechen
zhongkechen changed the base branch from main to refactor/per-invocation-plugin-instances October 21, 2026 22:43
@zhongkechen
zhongkechen added this pull request to stack #802 October 21, 2026 22:48
@zhongkechen
zhongkechen marked this pull request as ready for review October 21, 2026 22:49
@zhongkechen
zhongkechen temporarily deployed to ai-pr-review-runtime October 21, 2026 22:49 — with GitHub Actions Inactive
@zhongkechen
zhongkechen force-pushed the chore/prepare-python-major-release-20261021 branch from 24add8b to bd955be Compare October 21, 2026 22:49
@zhongkechen
zhongkechen temporarily deployed to ai-pr-review-runtime October 21, 2026 22:49 — with GitHub Actions Inactive
@github-actions

This comment has been minimized.

@zhongkechen
zhongkechen force-pushed the chore/prepare-python-major-release-20261021 branch from bd955be to 1f1273a Compare October 22, 2026 17:03
@zhongkechen
zhongkechen temporarily deployed to ai-pr-review-runtime October 22, 2026 17:39 — with GitHub Actions Inactive
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@zhongkechen
zhongkechen temporarily deployed to ai-pr-review-runtime October 22, 2026 19:38 — with GitHub Actions Inactive
@github-actions

This comment has been minimized.

@zhongkechen
zhongkechen temporarily deployed to ai-pr-review-runtime October 22, 2026 20:12 — with GitHub Actions Inactive
@github-actions

This comment has been minimized.

Base automatically changed from refactor/per-invocation-plugin-instances to main October 22, 2026 20:41
@zhongkechen
zhongkechen force-pushed the chore/prepare-python-major-release-20261021 branch from f13d517 to b1012c8 Compare October 22, 2026 20:41
@zhongkechen
zhongkechen temporarily deployed to ai-pr-review-runtime October 22, 2026 20:42 — with GitHub Actions Inactive
@github-actions

This comment has been minimized.

@zhongkechen
zhongkechen temporarily deployed to ai-pr-review-runtime October 22, 2026 22:35 — with GitHub Actions Inactive
@github-actions

This comment has been minimized.

Comment thread packages/aws-durable-execution-sdk-python-otel/README.md Outdated
@github-actions

This comment has been minimized.

@zhongkechen
zhongkechen temporarily deployed to ai-pr-review-runtime October 23, 2026 22:34 — with GitHub Actions Inactive
@github-actions

This comment has been minimized.

yaythomas
yaythomas previously approved these changes Oct 23, 2026
@zhongkechen
zhongkechen temporarily deployed to ai-pr-review-runtime October 24, 2026 01:35 — with GitHub Actions Inactive
@github-actions

This comment has been minimized.

Comment thread docs/migration-2.x-to-3.0.md
Comment thread docs/migration-2.x-to-3.0.md
Comment thread docs/migration-2.x-to-3.0.md
Comment thread docs/migration-2.x-to-3.0.md
@github-actions

This comment has been minimized.

@yaythomas
yaythomas force-pushed the chore/prepare-python-major-release-20261021 branch from 0941104 to c426ed8 Compare October 25, 2026 21:23
@yaythomas
yaythomas deployed to ai-pr-review-runtime October 25, 2026 21:25 — with GitHub Actions Active
Comment thread docs/migration-2.x-to-3.0.md
@github-actions

This comment has been minimized.

zhongkechen and others added 5 commits October 25, 2026 17:26
The guide named one breaking change. Main now has three: plugin
factories (#737), subtypes as strings (#837), and None kept in batch
results (#765). Add a section for each of the two new ones, with the
searches that find affected code.

The dependency table moves testing to 1.4.0 and adds the telemetry
exporter at 0.0.2, the versions #841 publishes. The lifecycle section
states where each hook runs after plugin hooks moved off the
checkpoint thread.
@yaythomas
yaythomas force-pushed the chore/prepare-python-major-release-20261021 branch from c426ed8 to 249c340 Compare October 26, 2026 00:26
@yaythomas
yaythomas deployed to ai-pr-review-runtime October 26, 2026 00:27 — with GitHub Actions Active
@github-actions

Copy link
Copy Markdown
Contributor

Codex AI review

No actionable findings in the six changed files. The migration guidance matches the checked-out source and release metadata. Tests and documentation examples were inspected but not executed under the read-only review constraints.

Reviewed commit 249c340b816112234c785a400dffdfd18433821c. Workflow run

@yaythomas
yaythomas merged commit 7d95280 into main Oct 26, 2026
46 checks passed
@yaythomas
yaythomas deleted the chore/prepare-python-major-release-20261021 branch October 26, 2026 01:49

This branch was successfully deployed

1 active deployment
ai-pr-review-runtime — 249c340b Deployed Oct 26, 2026 by yaythomas via ai-pr-review / Codex review / Generate Codex review #2446
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants