Skip to content

[CI] Move py3.14 dynamo_wrapped from pull to trunk - #203769

Closed
huydhn wants to merge 1 commit into
dynamo-wrapped-to-trunk/py311from
dynamo-wrapped-to-trunk/py314
Closed

huydhn wants to merge 1 commit into
dynamo-wrapped-to-trunk/py311from
dynamo-wrapped-to-trunk/py314

Conversation

@huydhn

@huydhn huydhn commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

Summary (human written only)

Put 3.14 in the same place as other python version. This saves about 3.5 h per PR push and costs about 4 h per trunk run on a PR and 0.8 h per main commit, which translates to about 7,400 runner-hours a week net gain.

Agent details (if applicable)

Written with an AI assistant (Claude Code).

  • Moves py3.14 dynamo_wrapped from pull to trunk's dynamo-unittest (same runner and shard count). It still gates every normal merge through trunk, but no longer runs on every PR push.
  • py3.14t stays in pull: it needs 16-128 runners, and the shared dynamo-unittest matrix can't give one version a different runner.
  • Saves about 3.5 h per PR push and costs about 4 h per trunk run on a PR and 0.8 h per main commit (a 3.14 build and dynamo_core job in trunk). About 7,400 runner-hours a week net (Oct 30 to Nov 6).

@huydhn
huydhn added this pull request to stack #203770 November 6, 2026 07:57
@pytorch-bot

pytorch-bot Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

PR Status: Approved 🚀

Please fix all CI failures and trigger merge by commenting "@pytorchbot merge".

✅ AUTOMATED REVIEW - Ready for human review:

The PR moves the 7 py3.14 `dynamo_wrapped` shards from `pull.yml` into the
shared `dynamo-unittest.yml` matrix that trunk calls. It keeps the same
build-environment, docker image, runner label and shard count, and it still
gates merges through trunk. Recommendation: Approve. Every point raised is
non-blocking and comes from joining the shared matrix.

Findings (4):

[minor] .github/workflows/dynamo-unittest.yml:40
Non-blocking: the runner fleet changes. The pull job's `get-label-type` uses
`check_experiments: lf` (`pull.yml:67`). `dynamo-unittest` calls the runner
determinator with `opt_out_experiments: lf`, and opt-out wins
(`.github/scripts/runner_determinator.py:567-573`). So py3.14 `dynamo_wrapped`
can no longer run on LF runners and always uses Meta-fleet `l-x86iavx512-8-64`
capacity. The description says "same runner", which is true of the label suffix
but not the fleet. If the extra Meta-fleet load is intended, the description
should say so.

[minor] .github/workflows/dynamo-unittest.yml:70
Non-blocking: manual dispatch can no longer select or narrow py3.14
`dynamo_wrapped` (`trunk.yml:46-50`, `dynamo-unittest.yml:63-78`). The old pull
job was gated by job-filter on `' linux-jammy-py3.14-clang21 '` (`pull.yml:451`)
and forwarded `tests-to-include` (`pull.yml:462`). `dynamo-unittest` has no
job-filter gate, against rule 1 in `job-filter.yml:4-9`, and forwards no
`tests-to-include`. After this PR, a pull dispatch with
`jobs-to-include="linux-jammy-py3.14-clang21"` silently skips `dynamo_wrapped`.
Any filtered trunk dispatch always runs all five dynamo-unittest builds and test
sets. Neither dispatch can rerun py3.14 `dynamo_wrapped` on a chosen subset of
tests. The other Python versions already have this gap; this PR extends it to
3.14.

[minor] .github/workflows/dynamo-unittest.yml:70
Non-blocking, low confidence: disable/unstable granularity is lost.
`filter_test_configs.py` matches the workflow (`GITHUB_WORKFLOW`, line 375),
then the first JOB_NAME segment as the platform (line 360), then a `[w-]+
([w-]+)` job/config regex (line 51). Under the new name `dynamo-unittest /
dynamo-test (3.14) / test (dynamo_wrapped, )`, the platform is `dynamo-unittest`
for all five versions, and `3.14` cannot match `[w-]`. So py3.14
`dynamo_wrapped` can only be marked unstable or disabled together with 3.113.15.
Any open UNSTABLE/DISABLED issue for `pull / linux-jammy-py3.14-clang21 / test
(dynamo_wrapped, )` also stops applying, so a shard that is unstable today would
become merge-blocking in trunk. This could not be checked offline; check for
such an issue before landing.

[minor] .github/workflows/dynamo-unittest.yml:70
Non-blocking: the sharding test-times key changes, so early trunk runs may be
unbalanced. Test times are looked up by `get_job_base_name(JOB_NAME)`
(`tools/testing/test_selections.py:324-328`, `test/run_test.py:2331-2357`), not
by build-environment alone. The key moves from `linux-jammy-py3.14-clang21` to
`dynamo-unittest / dynamo-test (3.14)`, which has no history yet. Until torchci
records the new key, the 7 shards fall back to the aggregated
`default/dynamo_wrapped` times, so shards may be uneven or long at first. This
corrects itself after a few trunk runs.

Reviewed commit: 06941f8

Review run

🐛 Report a bad review

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/203769

Note: Links to docs will display an error until the docs builds have been completed.

✅ No Failures

As of commit 06941f8 with merge base 0e5d4ac (image):
💚 Looks good so far! There are no failures yet. 💚

🟡 GREEN LIGHT - PR requires human review:

  • CI coverage moved off PR gating
    • pull.yml drops all seven dynamo_wrapped shards from the linux-jammy-py3.14-clang21 test matrix, so PR pushes lose py3.14 dynamo signal
    • Deciding which coverage gates every PR versus only trunk is a cost/signal trade-off for a human to approve
  • New jobs in trunk
    • dynamo-unittest.yml adds 3.14 to both matrices; trunk.yml calls it, so trunk gets a new py3.14 build plus dynamo_core and dynamo_wrapped jobs
    • The skill reserves adding test jobs to trunk.yml for a human, since they gate viable/strict progression
  • Socialization
    • Moving dynamo py3.14 tests to trunk changes when PT2 contributors see failures; the oncall should know this landed

reason: not_trivial
Reviewed commit: 06941f8

Inference job

🐛 Report a wrong verdict

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@pytorch-bot pytorch-bot Bot added the topic: not user facing topic category label Nov 6, 2026
@huydhn huydhn added the ciflow/trunk Trigger trunk jobs on your pull request label Nov 6, 2026
Every normal merge runs trunk, so dynamo_wrapped still gates landing from
dynamo-unittest, but it no longer runs on every PR push. pull runs about 2.5x
more often than trunk on PRs (about 4,000 pushes a week against about 1,600
trunk runs), so moving the shards saves runner time. py3.14 joins the existing
dynamo-unittest matrix, which uses the same runner and shard count as pull.

py3.14t stays in pull: it needs 16-128 runners, and the shared dynamo-unittest
matrix cannot give one version a different runner.

Estimated saving, from Oct 30 to Nov 6: about 7,400 runner-hours a week net.

Test Plan: CI. pull on this PR has no py3.14 dynamo_wrapped jobs; trunk runs
dynamo-unittest for 3.11, 3.12, 3.13, 3.14 and 3.15.

Authored with an AI assistant (Claude Code).
@huydhn
huydhn force-pushed the dynamo-wrapped-to-trunk/py314 branch from 0c3a654 to 06941f8 Compare November 6, 2026 08:04
@huydhn huydhn changed the title [CI] Move py3.14 and py3.14t dynamo_wrapped from pull to trunk [CI] Move py3.14 dynamo_wrapped from pull to trunk Nov 6, 2026
@huydhn
huydhn marked this pull request as ready for review November 6, 2026 08:09
@huydhn
huydhn requested a review from a team as a code owner November 6, 2026 08:09
@huydhn
huydhn requested review from a team and georgehong and removed request for a team November 6, 2026 08:09
@pytorchbot pytorchbot added the in progress PR is being worked on by the author, until the automated review accepts it label Nov 6, 2026
@pytorchgreenlight pytorchgreenlight Bot added the GL/human GreenLight marked as needing human review label Nov 6, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Automated review of 06941f8: nothing blocking; ready for human review.

The PR moves the 7 py3.14 dynamo_wrapped shards from pull.yml into the shared dynamo-unittest.yml matrix that trunk calls. It keeps the same build-environment, docker image, runner label and shard count, and it still gates merges through trunk. Recommendation: Approve. Every point raised is non-blocking and comes from joining the shared matrix.

⚪ 4 non-blocking findings

python-version: ['3.11', '3.12', '3.13', '3.14', '3.15']

Non-blocking: the runner fleet changes. The pull job's get-label-type uses check_experiments: lf (pull.yml:67). dynamo-unittest calls the runner determinator with opt_out_experiments: lf, and opt-out wins (.github/scripts/runner_determinator.py:567-573). So py3.14 dynamo_wrapped can no longer run on LF runners and always uses Meta-fleet l-x86iavx512-8-64 capacity. The description says "same runner", which is true of the label suffix but not the fleet. If the extra Meta-fleet load is intended, the description should say so.


python-version: ['3.11', '3.12', '3.13', '3.14', '3.15']

Non-blocking: manual dispatch can no longer select or narrow py3.14 dynamo_wrapped (trunk.yml:46-50, dynamo-unittest.yml:63-78). The old pull job was gated by job-filter on ' linux-jammy-py3.14-clang21 ' (pull.yml:451) and forwarded tests-to-include (pull.yml:462). dynamo-unittest has no job-filter gate, against rule 1 in job-filter.yml:4-9, and forwards no tests-to-include. After this PR, a pull dispatch with jobs-to-include="linux-jammy-py3.14-clang21" silently skips dynamo_wrapped. Any filtered trunk dispatch always runs all five dynamo-unittest builds and test sets. Neither dispatch can rerun py3.14 dynamo_wrapped on a chosen subset of tests. The other Python versions already have this gap; this PR extends it to 3.14.


python-version: ['3.11', '3.12', '3.13', '3.14', '3.15']

Non-blocking, low confidence: disable/unstable granularity is lost. filter_test_configs.py matches the workflow (GITHUB_WORKFLOW, line 375), then the first JOB_NAME segment as the platform (line 360), then a \[w-\]+ (\[w-\]+) job/config regex (line 51). Under the new name dynamo-unittest / dynamo-test (3.14) / test (dynamo_wrapped, ), the platform is dynamo-unittest for all five versions, and 3.14 cannot match \[w-\]. So py3.14 dynamo_wrapped can only be marked unstable or disabled together with 3.113.15. Any open UNSTABLE/DISABLED issue for pull / linux-jammy-py3.14-clang21 / test (dynamo_wrapped, ) also stops applying, so a shard that is unstable today would become merge-blocking in trunk. This could not be checked offline; check for such an issue before landing.


python-version: ['3.11', '3.12', '3.13', '3.14', '3.15']

Non-blocking: the sharding test-times key changes, so early trunk runs may be unbalanced. Test times are looked up by get_job_base_name(JOB_NAME) (tools/testing/test_selections.py:324-328, test/run_test.py:2331-2357), not by build-environment alone. The key moves from linux-jammy-py3.14-clang21 to dynamo-unittest / dynamo-test (3.14), which has no history yet. Until torchci records the new key, the 7 shards fall back to the aggregated default/dynamo_wrapped times, so shards may be uneven or long at first. This corrects itself after a few trunk runs.

This review is AI-generated and advisory. Each new automated review replaces the previous one. Report a bad review

@pytorch-bot pytorch-bot Bot added ready for review Automated review passed, ready for a final review by a maintainer. and removed in progress PR is being worked on by the author, until the automated review accepts it labels Nov 6, 2026
@huydhn

huydhn commented Nov 6, 2026

Copy link
Copy Markdown
Contributor Author

@pytorchbot merge

@pytorchmergebot

Copy link
Copy Markdown
Collaborator

Merge started

Your change will be merged once all checks pass (ETA 0-4 Hours).

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

dominikjastrzebskix pushed a commit to dominikjastrzebskix/pytorch that referenced this pull request Nov 9, 2026
## Summary (human written only)

Put 3.14 in the same place as other python version. This saves about 3.5 h per PR push and costs about 4 h per trunk run on a PR and 0.8 h per main commit, which translates to about 7,400 runner-hours a week net gain.

## Agent details (if applicable)

> Written with an AI assistant (Claude Code).
>
> - Moves py3.14 dynamo_wrapped from pull to trunk's `dynamo-unittest` (same runner and shard count). It still gates every normal merge through trunk, but no longer runs on every PR push.
> - py3.14t stays in pull: it needs 16-128 runners, and the shared dynamo-unittest matrix can't give one version a different runner.
> - Saves about 3.5 h per PR push and costs about 4 h per trunk run on a PR and 0.8 h per main commit (a 3.14 build and dynamo_core job in trunk). About 7,400 runner-hours a week net (Oct 30 to Nov 6).

Pull Request resolved: pytorch#203769
Approved by: https://github.com/georgehong, https://github.com/atalman
Stack dependencies: pytorch#203768
@huydhn
huydhn removed this pull request from stack #203770 November 26, 2026 23:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/trunk Trigger trunk jobs on your pull request GL/human GreenLight marked as needing human review Merged ready for review Automated review passed, ready for a final review by a maintainer. topic: not user facing topic category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants