Skip to content

ci: install ddtrace from dd-trace-py main for nightly Python jobs - #227

Merged
taegyunkim merged 6 commits into
mainfrom
taegyun.kim/repin-python-gate-wheels
Oct 28, 2026
Merged

taegyunkim merged 6 commits into
mainfrom
taegyun.kim/repin-python-gate-wheels

Conversation

@taegyunkim

@taegyunkim taegyunkim commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

What does this PR do?

Makes the nightly Python jobs (3.12, 3.14 and 3.15) install ddtrace from the latest dd-trace-py main build. A new ddtrace_main job reads main/metadata.txt once and passes that commit's <sha>/install.sh to every Python job, so all shards and both gates test the same build. It also makes the python_deep_stack regex accept <1 frame omitted>.

Motivation

  • 3.14 and 3.15 gates: the pinned builds (6c2d109, 1b27090) were deleted from the S3 bucket after about 45 days. Since 2026-10-22, every gate job has failed with curl: (22) ... 404 (example run). dd-trace-py overwrites main/ on every main build, so it doesn't expire. It includes cp314 and cp315 wheels.
  • 3.12 job: it installed the latest PyPI release, so it only caught regressions after they shipped. For example, the 4.16.0 python_sample_count change showed up the day 4.16.0 was released.
  • python_deep_stack: dd-trace-py #19073, shipped in 4.15.0, stops unwinding at max_frames and emits <1 frame omitted>. The old pins predate that change. The 3.12 variant already uses frames?.

Trade-off: these jobs now follow dd-trace-py main, so a dd-trace-py regression can turn them red.

python_basic_memory_3.12 still pins ddtrace==4.0.0. #192 moves it to the latest version.

Validation

CI passes all checks. ddtrace_main resolved 2bb167a, and the python, python 3.14 and python 3.15 shards all installed from 2bb167a…/install.sh (run 40592563097).

@taegyunkim taegyunkim changed the title ci: re-pin Python 3.14/3.15 gate wheels to a live dd-trace-py build ci: install Python 3.14/3.15 gate wheels from dd-trace-py main Oct 27, 2026
@taegyunkim taegyunkim changed the title ci: install Python 3.14/3.15 gate wheels from dd-trace-py main ci: install ddtrace from dd-trace-py main for nightly Python jobs Oct 27, 2026
@taegyunkim
taegyunkim marked this pull request as ready for review October 27, 2026 21:29
@taegyunkim
taegyunkim requested a review from a team as a code owner October 27, 2026 21:29
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-27T21:32:04.754332Z 45912ae Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 45912ae5b5

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread .github/workflows/ci.yml Resolved
@vlad-scherbich

vlad-scherbich commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Trade-off: these jobs now follow dd-trace-py main, so a dd-trace-py regression can turn them red.

This is the biggest concern with this change IMO. Can we dynamically calculate the latest stable MAJOR.MINOR version and have these jobs pin that version?

I imagine a daily cron job that will find the latest stable pin, and auto-create a PR if it needs updating for these jobs.

@taegyunkim

Copy link
Copy Markdown
Contributor Author

Trade-off: these jobs now follow dd-trace-py main, so a dd-trace-py regression can turn them red.

This is the biggest concern, personally. Can we dynamically generate the latest stable MAJOR.MINOR version and have these jobs pin that version? I imagine a new Skill / rule could do that automatically on a schedule.

Or just have a simple cron job that runs daily, no need to get fancy.

IMHO, I prefer running it on nightly ddtrace to catch regressions earlier than running this on released version

@KowalskiThomas

Copy link
Copy Markdown
Contributor

IMHO, I prefer running it on nightly ddtrace to catch regressions earlier than running this on released version

Agree with that as well; if we do this then all minor versions will have been tested because they are always from some commit on main.

@taegyunkim
taegyunkim merged commit 4b259c7 into main Oct 28, 2026
42 checks passed
@taegyunkim
taegyunkim deleted the taegyun.kim/repin-python-gate-wheels branch October 28, 2026 11:39
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