Skip to content

[CI] Drop py3.11 dynamo_wrapped from pull, trunk already runs it - #203768

Closed
huydhn wants to merge 1 commit into
mainfrom
dynamo-wrapped-to-trunk/py311
Closed

huydhn wants to merge 1 commit into
mainfrom
dynamo-wrapped-to-trunk/py311

Conversation

@huydhn

@huydhn huydhn commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

Summary (human written only)

This python version (3.11) is already running in trunk as part of https://github.com/pytorch/pytorch/blob/main/.github/workflows/dynamo-unittest.yml#L40. This saves about 3 h per PR push, 6.6 h per main commit and 14,300 runner-hours a week.

Agent details (if applicable)

Written with an AI assistant (Claude Code).

  • pull's linux-jammy-py3.11-clang21 and trunk's dynamo-unittest (3.11) run the same dynamo_wrapped shards: same build environment, image and test.sh function. The overlap started when Move pull and trunk CI jobs from Python 3.10 to 3.11 #198271 moved pull from 3.10 to 3.11.
  • This drops the pull copy. 3.11 dynamo_wrapped still runs before every merge through trunk, and pull keeps dynamo_wrapped on 3.14 and 3.14t.
  • Saves about 3 h per PR push, 6.6 h per main commit and 14,300 runner-hours a week (Oct 30 to Nov 6).

pull's linux-jammy-py3.11-clang21 and trunk's dynamo-unittest (3.11) run the
same dynamo_wrapped shards: same build environment, image and test.sh
function. The overlap started when #198271 moved pull from 3.10 to 3.11, while
dynamo-unittest had been added for 3.11+ because pull covered 3.10.

Keep the trunk copy and drop the pull one. Pull runs on every PR push, so this
saves more runner time (about 14,300 h a week over Oct 30 to Nov 6, against
about 9,200 h for dropping the trunk copy). 3.11 dynamo_wrapped still runs
before every merge through trunk, and pull keeps dynamo_wrapped on 3.14 and
3.14t. Trunk's dynamo-unittest jobs use their own test-times key, so their
sharding does not depend on the removed pull jobs.

Test Plan: CI. pull on this PR has no linux-jammy-py3.11-clang21 dynamo_wrapped
jobs; trunk still runs dynamo-unittest (3.11).

Authored with an AI assistant (Claude Code).
@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 removes the 6 dynamo_wrapped shards from pull's
linux-jammy-py3.11-clang21 job because trunk's dynamo-unittest (3.11) already
runs them. The review recommends Approve: the removal is correct and 3.11
dynamo_wrapped still gates merges through trunk. It raises only non-blocking
points, and suggests fixing the stale td-holdout-unstable.yml copy in this PR.

Findings (3):

[minor] .github/workflows/pull.yml:388
Non-blocking: `.github/workflows/td-holdout-unstable.yml:105-145` should be
updated in this PR. Its header says to keep the copied matrices in sync with
pull.yml. Its `linux-jammy-py3_11-clang21-build`/`-test` pair (matrix at lines
117-124) holds exactly the 6 `dynamo_wrapped` shards this PR deletes, and
nothing else. After this PR the pair mirrors no pull job, yet every new PR still
pays for a 3.11-clang21 build plus 6 TD-off shards. Those holdout results also
lose their matching TD-on run: trunk's `dynamo-unittest / dynamo-test (3.11)`
uses a different workflow and job name, 7 shards and a different trigger.
Suggested fix: delete the pair, or point it at pull's remaining 3.14
`dynamo_wrapped` matrix (`pull.yml:443-449`). The gcc11 pair is unaffected.

[minor] .github/workflows/pull.yml:388
Non-blocking: 3.11 `dynamo_wrapped` now depends on every other Python leg in
`dynamo-unittest.yml`. `dynamo-test` (lines 63-70) has `needs: [get-label-type,
dynamo-build]` with no `if:` override, and `dynamo-build` is a matrix over
3.11/3.12/3.13/3.15. If any one build leg fails (e.g. the pre-release 3.15
build), all four test legs are skipped, 3.11 included. `fail-fast: false`
doesn't change this. Before this PR, pull's 3.11 job ran on its own. The
behavior predates the PR, but the PR makes this job the only blocking 3.11
`dynamo_wrapped` signal, so it is worth fixing: split 3.11 out, or add an `if:`
that tolerates failures in other build legs.

[minor] .github/workflows/pull.yml:388
Non-blocking: the description should say what is lost or delayed. 3.11 is the
minimum supported Python, and Dynamo has many `< (3, 12)` bytecode paths. (1)
Later signal: PRs without `ciflow/trunk` get no blocking 3.11 `dynamo_wrapped`
run until merge time, because pull keeps only 3.14 (`pull.yml:443-449`) and
3.14t (`pull.yml:229-236`). Merges with `-f`, and release-branch PRs merged
without trunk, now land with no 3.11 `dynamo_wrapped` run at all. (2) No
targeted rerun: dispatching pull with `jobs-to-include:
linux-jammy-py3.11-clang21` and `tests-to-include` no longer runs 3.11
`dynamo_wrapped`. Trunk's replacement (`trunk.yml:46-50`) has no job-filter
`if:`, and `dynamo-unittest.yml:7` is a bare `workflow_call:` that takes no
`tests-to-include`. So a trunk dispatch always runs all four Python versions
with full test lists.

Reviewed commit: 7eadcf7

Review run

🐛 Report a bad review

🔗 Helpful Links

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

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

✅ No Failures

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

🟡 GREEN LIGHT - PR requires human review:

  • Coverage
    • Drops all six dynamo_wrapped shards from linux-jammy-py3.11-clang21 in .github/workflows/pull.yml, removing py3.11 dynamo signal on every PR push
    • The remaining copy, dynamo-unittest.yml (py3.11 matrix entry), is reached only through trunk.yml, so the signal moves from PR time to trunk time
  • Socialization
    • Choosing which signal gates PRs in pull.yml affects every contributor, and the cost-versus-coverage tradeoff is a CI owner's call
    • Dropping a matrix entry from a merge-gating workflow is an exclusion under the CI and build configuration class

reason: not_trivial
Reviewed commit: 7eadcf7

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 this pull request to stack #203770 November 6, 2026 07:57
@huydhn huydhn added the ciflow/trunk Trigger trunk jobs on your pull request label Nov 6, 2026
@huydhn huydhn changed the title dynamo wrapped to trunk/py311 [CI] Drop py3.11 dynamo_wrapped from pull, trunk already runs it 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 a review from georgehong November 6, 2026 08:10
@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 7eadcf7: nothing blocking; ready for human review.

The PR removes the 6 dynamo_wrapped shards from pull's linux-jammy-py3.11-clang21 job because trunk's dynamo-unittest (3.11) already runs them. The review recommends Approve: the removal is correct and 3.11 dynamo_wrapped still gates merges through trunk. It raises only non-blocking points, and suggests fixing the stale td-holdout-unstable.yml copy in this PR.

⚪ 3 non-blocking findings

{ config: "einops", shard: 1, num_shards: 1, runner: "${{ needs.get-label-type.outputs.label-type }}l-x86iavx512-8-64" },

Non-blocking: .github/workflows/td-holdout-unstable.yml:105-145 should be updated in this PR. Its header says to keep the copied matrices in sync with pull.yml. Its linux-jammy-py3_11-clang21-build/-test pair (matrix at lines 117-124) holds exactly the 6 dynamo_wrapped shards this PR deletes, and nothing else. After this PR the pair mirrors no pull job, yet every new PR still pays for a 3.11-clang21 build plus 6 TD-off shards. Those holdout results also lose their matching TD-on run: trunk's dynamo-unittest / dynamo-test (3.11) uses a different workflow and job name, 7 shards and a different trigger. Suggested fix: delete the pair, or point it at pull's remaining 3.14 dynamo_wrapped matrix (pull.yml:443-449). The gcc11 pair is unaffected.


{ config: "einops", shard: 1, num_shards: 1, runner: "${{ needs.get-label-type.outputs.label-type }}l-x86iavx512-8-64" },

Non-blocking: 3.11 dynamo_wrapped now depends on every other Python leg in dynamo-unittest.yml. dynamo-test (lines 63-70) has needs: \[get-label-type, dynamo-build\] with no if: override, and dynamo-build is a matrix over 3.11/3.12/3.13/3.15. If any one build leg fails (e.g. the pre-release 3.15 build), all four test legs are skipped, 3.11 included. fail-fast: false doesn't change this. Before this PR, pull's 3.11 job ran on its own. The behavior predates the PR, but the PR makes this job the only blocking 3.11 dynamo_wrapped signal, so it is worth fixing: split 3.11 out, or add an if: that tolerates failures in other build legs.


{ config: "einops", shard: 1, num_shards: 1, runner: "${{ needs.get-label-type.outputs.label-type }}l-x86iavx512-8-64" },

Non-blocking: the description should say what is lost or delayed. 3.11 is the minimum supported Python, and Dynamo has many &lt; (3, 12) bytecode paths. (1) Later signal: PRs without ciflow/trunk get no blocking 3.11 dynamo_wrapped run until merge time, because pull keeps only 3.14 (pull.yml:443-449) and 3.14t (pull.yml:229-236). Merges with -f, and release-branch PRs merged without trunk, now land with no 3.11 dynamo_wrapped run at all. (2) No targeted rerun: dispatching pull with jobs-to-include: linux-jammy-py3.11-clang21 and tests-to-include no longer runs 3.11 dynamo_wrapped. Trunk's replacement (trunk.yml:46-50) has no job-filter if:, and dynamo-unittest.yml:7 is a bare workflow_call: that takes no tests-to-include. So a trunk dispatch always runs all four Python versions with full test lists.

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

@albanD albanD left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Nice!

@pytorchmergebot

Copy link
Copy Markdown
Collaborator

Starting merge as part of PR stack under #203769

pytorchmergebot pushed a commit that referenced this pull request Nov 6, 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: #203769
Approved by: https://github.com/georgehong, https://github.com/atalman
Stack dependencies: #203768
dominikjastrzebskix pushed a commit to dominikjastrzebskix/pytorch that referenced this pull request Nov 9, 2026
…orch#203768)

## Summary (human written only)

This python version (3.11) is already running in trunk as part of https://github.com/pytorch/pytorch/blob/main/.github/workflows/dynamo-unittest.yml#L40. This saves about 3 h per PR push, 6.6 h per main commit and 14,300 runner-hours a week.

## Agent details (if applicable)

> Written with an AI assistant (Claude Code).
>
> - pull's `linux-jammy-py3.11-clang21` and trunk's `dynamo-unittest (3.11)` run the same dynamo_wrapped shards: same build environment, image and `test.sh` function. The overlap started when pytorch#198271 moved pull from 3.10 to 3.11.
> - This drops the pull copy. 3.11 dynamo_wrapped still runs before every merge through trunk, and pull keeps dynamo_wrapped on 3.14 and 3.14t.
> - Saves about 3 h per PR push, 6.6 h per main commit and 14,300 runner-hours a week (Oct 30 to Nov 6).

Pull Request resolved: pytorch#203768
Approved by: https://github.com/atalman, https://github.com/georgehong, https://github.com/albanD
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.

6 participants