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
24 changes: 21 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,28 +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: ${{ needs.ddtrace_main.outputs.install_url }}
secrets: inherit
# Both gates use rc2-era pinned wheels; 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/6c2d10971404884620ce61c85de886f14bf711cf/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/1b27090c9ee46afa2bd5a9e2ef0cc7660125b652/install.sh'
ddtrace_install_url: ${{ needs.ddtrace_main.outputs.install_url }}
capture_artifact: gate-3.15
secrets: inherit
compare:
Expand Down
2 changes: 1 addition & 1 deletion scenarios/python_deep_stack/profile.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
2 changes: 1 addition & 1 deletion scenarios/python_deep_stack_3.14/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 | `<N frames omitted>;recurse;…;burn` | 100 | 5 |
| cpu-time | `<N frame(s) omitted>;recurse;…;burn` | 100 | 5 |

Runs on `main` CI (PyPI ddtrace).

Expand Down
4 changes: 2 additions & 2 deletions scenarios/python_downstream_gate/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ 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` — 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

Expand Down
Loading