File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # AIDEV-TODO: TEMPORARY linkage probe — REVERT (delete this file) before merging this PR.
2+ # Validates that `scripts/setup_python_env.sh` actually swaps the released
3+ # ddtrace for the PR-built wheel when triggered from dd-trace-py CI.
4+ # - In lambda-python's own PR/main CI: UPSTREAM_PIPELINE_ID is unset, the
5+ # setup script's override step is skipped, ddtrace stays on the released
6+ # tag, this test PASSES.
7+ # - When triggered from a dd-trace-py PR: UPSTREAM_PIPELINE_ID is set, the
8+ # setup script installs the dev-suffixed PR wheel, this test FAILS,
9+ # proving the linkage works.
10+ import re
11+
12+ import ddtrace
13+
14+
15+ def test_ddtrace_is_released_version ():
16+ assert re .fullmatch (r"\d+\.\d+\.\d+(rc\d+)?" , ddtrace .__version__ ), (
17+ f"ddtrace.__version__={ ddtrace .__version__ !r} is not a released-tag "
18+ "shape — looks like an upstream PR wheel. Linkage works."
19+ )
You can’t perform that action at this time.
0 commit comments