From 8dd5e06d6bad6f00f054031afdb40d2af51a405a Mon Sep 17 00:00:00 2001 From: Taegyun Kim Date: Tue, 27 Oct 2026 15:59:49 -0400 Subject: [PATCH 1/6] ci: re-pin Python 3.14/3.15 gate wheels to a live dd-trace-py build --- .github/workflows/ci.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 25558cc5..e6eda523 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -64,13 +64,16 @@ jobs: # Gate pairs are python_3_14 / python_3_15. live_heap_3.14 is wheel-only. test_scenarios_exclude: '_3\.(14|15)$|^python_downstream_gate$' secrets: inherit - # Both gates use rc2-era pinned wheels; 3.15 uses the Python 3.15.0rc2 image. + # Both gates use the same dd-trace-py main build (b72a2f5, 4.17.0rc1) so the + # compare job isolates the Python version. 3.15 uses the Python 3.15.0rc2 image. + # dd-trace-py-builds S3 objects expire after about 45 days: when the base image + # build fails with `curl: (22) ... 404`, re-pin both URLs to a recent main SHA. python_3_14: name: python 3.14 uses: ./.github/workflows/test.yml with: test_scenarios: 'python_(cpu|alloc|asyncio|native_cpu|deep_stack|gil_contention|uvloop|exceptions|async_gen|lock|live_heap)_3\.14' - ddtrace_install_url: 'https://dd-trace-py-builds.s3.amazonaws.com/6c2d10971404884620ce61c85de886f14bf711cf/install.sh' + ddtrace_install_url: 'https://dd-trace-py-builds.s3.amazonaws.com/b72a2f5ba528a818828b6a5c5d9e8a32e4ac0641/install.sh' capture_artifact: gate-3.14 secrets: inherit python_3_15: @@ -78,7 +81,7 @@ jobs: uses: ./.github/workflows/test.yml with: test_scenarios: 'python_(cpu|alloc|asyncio|native_cpu|deep_stack|gil_contention|uvloop|exceptions|async_gen|lock|live_heap)_3\.15' - ddtrace_install_url: 'https://dd-trace-py-builds.s3.amazonaws.com/1b27090c9ee46afa2bd5a9e2ef0cc7660125b652/install.sh' + ddtrace_install_url: 'https://dd-trace-py-builds.s3.amazonaws.com/b72a2f5ba528a818828b6a5c5d9e8a32e4ac0641/install.sh' capture_artifact: gate-3.15 secrets: inherit compare: From c63891ff0570c013cd9784aee269ca4d3be39fbd Mon Sep 17 00:00:00 2001 From: Taegyun Kim Date: Tue, 27 Oct 2026 16:16:51 -0400 Subject: [PATCH 2/6] python: accept singular omitted-frame marker in deep_stack gates --- scenarios/python_deep_stack/profile.json | 2 +- scenarios/python_deep_stack_3.14/README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scenarios/python_deep_stack/profile.json b/scenarios/python_deep_stack/profile.json index 07ec3cac..a011a013 100644 --- a/scenarios/python_deep_stack/profile.json +++ b/scenarios/python_deep_stack/profile.json @@ -6,7 +6,7 @@ "profile-type": "cpu-time", "stack-content": [ { - "regular_expression": "[0-9]+ frames omitted>;(recurse;){50,}burn", + "regular_expression": "[0-9]+ frames? omitted>;(recurse;){50,}burn", "percent": 100, "error_margin": 5 } diff --git a/scenarios/python_deep_stack_3.14/README.md b/scenarios/python_deep_stack_3.14/README.md index 728a4fee..9aeca24b 100644 --- a/scenarios/python_deep_stack_3.14/README.md +++ b/scenarios/python_deep_stack_3.14/README.md @@ -4,7 +4,7 @@ Pair: `python_deep_stack_3.14` / `python_deep_stack_3.15`. Asserts **cpu-time** | Profile type | Stack | Expected % | Margin | |--------------|-------|------------|--------| -| cpu-time | `;recurse;…;burn` | 100 | 5 | +| cpu-time | `;recurse;…;burn` | 100 | 5 | Runs on `main` CI (PyPI ddtrace). From cdcaad31a99e2127ec36d11392b34a74dfc3ee86 Mon Sep 17 00:00:00 2001 From: Taegyun Kim Date: Tue, 27 Oct 2026 16:44:04 -0400 Subject: [PATCH 3/6] ci: install Python 3.14/3.15 gate wheels from dd-trace-py main/ --- .github/workflows/ci.yml | 11 +++++------ scenarios/python_downstream_gate/README.md | 2 +- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e6eda523..96b4897c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -64,16 +64,15 @@ jobs: # Gate pairs are python_3_14 / python_3_15. live_heap_3.14 is wheel-only. test_scenarios_exclude: '_3\.(14|15)$|^python_downstream_gate$' secrets: inherit - # Both gates use the same dd-trace-py main build (b72a2f5, 4.17.0rc1) so the - # compare job isolates the Python version. 3.15 uses the Python 3.15.0rc2 image. - # dd-trace-py-builds S3 objects expire after about 45 days: when the base image - # build fails with `curl: (22) ... 404`, re-pin both URLs to a recent main SHA. + # Both gates install the latest dd-trace-py main build. Per-SHA S3 builds expire + # after about 45 days; main/ is overwritten on every main build, so it stays. + # 3.15 uses the Python 3.15.0rc2 image. python_3_14: name: python 3.14 uses: ./.github/workflows/test.yml with: test_scenarios: 'python_(cpu|alloc|asyncio|native_cpu|deep_stack|gil_contention|uvloop|exceptions|async_gen|lock|live_heap)_3\.14' - ddtrace_install_url: 'https://dd-trace-py-builds.s3.amazonaws.com/b72a2f5ba528a818828b6a5c5d9e8a32e4ac0641/install.sh' + ddtrace_install_url: 'https://dd-trace-py-builds.s3.amazonaws.com/main/install.sh' capture_artifact: gate-3.14 secrets: inherit python_3_15: @@ -81,7 +80,7 @@ jobs: uses: ./.github/workflows/test.yml with: test_scenarios: 'python_(cpu|alloc|asyncio|native_cpu|deep_stack|gil_contention|uvloop|exceptions|async_gen|lock|live_heap)_3\.15' - ddtrace_install_url: 'https://dd-trace-py-builds.s3.amazonaws.com/b72a2f5ba528a818828b6a5c5d9e8a32e4ac0641/install.sh' + ddtrace_install_url: 'https://dd-trace-py-builds.s3.amazonaws.com/main/install.sh' capture_artifact: gate-3.15 secrets: inherit compare: diff --git a/scenarios/python_downstream_gate/README.md b/scenarios/python_downstream_gate/README.md index e3a7a10f..45bc3520 100644 --- a/scenarios/python_downstream_gate/README.md +++ b/scenarios/python_downstream_gate/README.md @@ -32,7 +32,7 @@ Override via `workflow_dispatch` → `test_scenarios` on [`downstream-python.yml Builds use [`base_images/Dockerfile.python-wheel`](../../base_images/Dockerfile.python-wheel) with `DDTRACE_INSTALL_URL` (S3 wheel from downstream CI). - `python` — old (non-gate) Python scenarios, PyPI ddtrace -- `python_3_14` / `python_3_15` — gate pairs, same pinned S3 wheel (temporary until natives are on main) +- `python_3_14` / `python_3_15` — gate pairs, both on the latest dd-trace-py `main` S3 build (`main/install.sh`) ## Local run From 16771ea4c57c2265361494c1dbaaf9acba156361 Mon Sep 17 00:00:00 2001 From: Taegyun Kim Date: Tue, 27 Oct 2026 16:52:59 -0400 Subject: [PATCH 4/6] ci: simplify gate install comments --- .github/workflows/ci.yml | 4 +--- scenarios/python_downstream_gate/README.md | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 96b4897c..43e2a4a9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -64,9 +64,7 @@ jobs: # Gate pairs are python_3_14 / python_3_15. live_heap_3.14 is wheel-only. test_scenarios_exclude: '_3\.(14|15)$|^python_downstream_gate$' secrets: inherit - # Both gates install the latest dd-trace-py main build. Per-SHA S3 builds expire - # after about 45 days; main/ is overwritten on every main build, so it stays. - # 3.15 uses the Python 3.15.0rc2 image. + # Both gates use the latest dd-trace-py main build; 3.15 uses the Python 3.15.0rc2 image. python_3_14: name: python 3.14 uses: ./.github/workflows/test.yml diff --git a/scenarios/python_downstream_gate/README.md b/scenarios/python_downstream_gate/README.md index 45bc3520..9c7b2461 100644 --- a/scenarios/python_downstream_gate/README.md +++ b/scenarios/python_downstream_gate/README.md @@ -32,7 +32,7 @@ Override via `workflow_dispatch` → `test_scenarios` on [`downstream-python.yml Builds use [`base_images/Dockerfile.python-wheel`](../../base_images/Dockerfile.python-wheel) with `DDTRACE_INSTALL_URL` (S3 wheel from downstream CI). - `python` — old (non-gate) Python scenarios, PyPI ddtrace -- `python_3_14` / `python_3_15` — gate pairs, both on the latest dd-trace-py `main` S3 build (`main/install.sh`) +- `python_3_14` / `python_3_15` — gate pairs, latest dd-trace-py `main` S3 build ## Local run From 45912ae5b52723185c2d6ebe77c83e115806a342 Mon Sep 17 00:00:00 2001 From: Taegyun Kim Date: Tue, 27 Oct 2026 16:56:39 -0400 Subject: [PATCH 5/6] ci: install ddtrace from dd-trace-py main/ for the Python 3.12 nightly --- .github/workflows/ci.yml | 1 + scenarios/python_downstream_gate/README.md | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 43e2a4a9..c0d95483 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -63,6 +63,7 @@ jobs: test_scenarios: 'python.*' # Gate pairs are python_3_14 / python_3_15. live_heap_3.14 is wheel-only. test_scenarios_exclude: '_3\.(14|15)$|^python_downstream_gate$' + ddtrace_install_url: 'https://dd-trace-py-builds.s3.amazonaws.com/main/install.sh' secrets: inherit # Both gates use the latest dd-trace-py main build; 3.15 uses the Python 3.15.0rc2 image. python_3_14: diff --git a/scenarios/python_downstream_gate/README.md b/scenarios/python_downstream_gate/README.md index 9c7b2461..bfa92534 100644 --- a/scenarios/python_downstream_gate/README.md +++ b/scenarios/python_downstream_gate/README.md @@ -31,7 +31,7 @@ Override via `workflow_dispatch` → `test_scenarios` on [`downstream-python.yml Builds use [`base_images/Dockerfile.python-wheel`](../../base_images/Dockerfile.python-wheel) with `DDTRACE_INSTALL_URL` (S3 wheel from downstream CI). -- `python` — old (non-gate) Python scenarios, PyPI ddtrace +- `python` — old (non-gate) Python scenarios, latest dd-trace-py `main` S3 build - `python_3_14` / `python_3_15` — gate pairs, latest dd-trace-py `main` S3 build ## Local run From 4a041dbcba4edf5420bda698c28fbf6be7466c74 Mon Sep 17 00:00:00 2001 From: Taegyun Kim Date: Tue, 27 Oct 2026 18:09:09 -0400 Subject: [PATCH 6/6] ci: resolve dd-trace-py main/ to one commit for all Python jobs --- .github/workflows/ci.yml | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c0d95483..243f3bec 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -57,29 +57,46 @@ jobs: with: test_scenarios: node.* secrets: inherit + # Resolve dd-trace-py main/ to one commit so every Python job and shard installs the same build. + ddtrace_main: + runs-on: ubuntu-latest + outputs: + install_url: ${{ steps.resolve.outputs.install_url }} + steps: + - id: resolve + run: | + sha=$(curl -fsSL https://dd-trace-py-builds.s3.amazonaws.com/main/metadata.txt | sed -n 's/^commit_sha=//p') + [[ "$sha" =~ ^[0-9a-f]{40}$ ]] || { echo "bad commit_sha: '$sha'"; exit 1; } + url="https://dd-trace-py-builds.s3.amazonaws.com/${sha}/install.sh" + curl -fsSI "$url" > /dev/null + echo "dd-trace-py main is ${sha}" + echo "install_url=${url}" >> "$GITHUB_OUTPUT" python: + needs: ddtrace_main uses: ./.github/workflows/test.yml with: test_scenarios: 'python.*' # Gate pairs are python_3_14 / python_3_15. live_heap_3.14 is wheel-only. test_scenarios_exclude: '_3\.(14|15)$|^python_downstream_gate$' - ddtrace_install_url: 'https://dd-trace-py-builds.s3.amazonaws.com/main/install.sh' + ddtrace_install_url: ${{ needs.ddtrace_main.outputs.install_url }} secrets: inherit - # Both gates use the latest dd-trace-py main build; 3.15 uses the Python 3.15.0rc2 image. + # 3.15 uses the Python 3.15.0rc2 image. python_3_14: name: python 3.14 + needs: ddtrace_main uses: ./.github/workflows/test.yml with: test_scenarios: 'python_(cpu|alloc|asyncio|native_cpu|deep_stack|gil_contention|uvloop|exceptions|async_gen|lock|live_heap)_3\.14' - ddtrace_install_url: 'https://dd-trace-py-builds.s3.amazonaws.com/main/install.sh' + ddtrace_install_url: ${{ needs.ddtrace_main.outputs.install_url }} capture_artifact: gate-3.14 secrets: inherit python_3_15: name: python 3.15 + needs: ddtrace_main uses: ./.github/workflows/test.yml with: test_scenarios: 'python_(cpu|alloc|asyncio|native_cpu|deep_stack|gil_contention|uvloop|exceptions|async_gen|lock|live_heap)_3\.15' - ddtrace_install_url: 'https://dd-trace-py-builds.s3.amazonaws.com/main/install.sh' + ddtrace_install_url: ${{ needs.ddtrace_main.outputs.install_url }} capture_artifact: gate-3.15 secrets: inherit compare: