Skip to content

[CI] Replace dynamo_wrapped in pull with 3.13 - #203884

Closed
huydhn wants to merge 1 commit into
pytorch:mainfrom
huydhn:dynamo-wrapped-py313-to-pull
Closed

huydhn wants to merge 1 commit into
pytorch:mainfrom
huydhn:dynamo-wrapped-py313-to-pull

Conversation

@huydhn

@huydhn huydhn commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

Summary (human written only)

Run dynamo tests with 3.13 in pull instead of 3.14t per @williamwen42 suggestion. The rest can be moved to trunk enable more saving.

Agent details (if applicable)

Written with an AI assistant (Claude Code).

  • pull runs py3.13 dynamo_core and dynamo_wrapped in the dynamo-cpython job, reusing its existing py3.13 build. trunk's dynamo-unittest drops 3.13.
  • py3.14t dynamo_wrapped moves from pull to dynamo-unittest. pull keeps py3.14t default, einops and openreg.
  • dynamo-unittest calls a per-version workflow from its matrix, so each version can pick its runner (16-128 for 3.14t) and adding 3.15t is one line.

@pytorch-bot

pytorch-bot Bot commented Nov 7, 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 pull's per-PR dynamo testing from py3.14t to py3.13 by adding
dynamo_core and 7 dynamo_wrapped shards to pull's dynamo-cpython job, and moves
py3.14t dynamo_wrapped to trunk's dynamo-unittest through a new reusable
workflow, _dynamo-unittest-python.yml. Recommendation: Approve. The review
labels every point non-blocking, though it calls adding the target-determination
dependency the most useful fix.

Findings (2):

[minor] .github/workflows/_dynamo-unittest-python.yml:40
Non-blocking, advisory per REVIEW.md "New jobs prove reliability": coverage
changes for 3.14t that the PR doesn't mention. `dynamo_core` has never run on
py3.14t, and it now gates trunk and viable/strict. py3.14t `dynamo_wrapped`
drops from 8 shards to 7. With NUM_PROCS fixed at 3 on CPU, each free-threaded
shard gets ~14% more work against the 210-minute test-step limit. The wrapper
hardcodes `num_shards: 7` for every version and only lets the runner vary.
Either restore 8 shards for 3.14t (e.g. with a `num-shards` or `test-matrix`
input) or say in the description that 7 was intended. The single `runner` input
also puts 3.14t `dynamo_core` on 16-128, though the OOM comment
(dynamo-unittest.yml:43-46) only justifies that for dynamo_wrapped/test_nn.

[info] .github/workflows/_dynamo-unittest-python.yml:11
Non-blocking convention gaps in the new file: there's no `# Owner(s): ["oncall:
pt2"]` header (the caller dynamo-unittest.yml and 28 of the 32 `_*.yml` files
have one). The inputs have no `description:`, while every input in
`_linux-build.yml` has one. And `runner` here means the test-shard runner, but
`_linux-build.yml` has a `runner` input that means the build runner. A name like
`test-runner` would avoid the confusion.

Reviewed commit: 55480b1

Review run

🐛 Report a bad review

🔗 Helpful Links

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

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

✅ No Failures

As of commit 55480b1 with merge base 0534c1c (image):
💚 Looks good so far! There are no failures yet. 💚

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 7, 2026
@huydhn huydhn changed the title [CI] Run py3.13 dynamo_wrapped in pull and move py3.14t dynamo_wrapped to trunk [CI] Replace dynamo_wrapped in pull with 3.13 Nov 7, 2026
pull's dynamo-cpython job already builds linux-jammy-py3.13-clang21, so it now
also runs the py3.13 dynamo_core and dynamo_wrapped shards that dynamo-unittest
ran on trunk, reusing that build. py3.14t dynamo_wrapped moves from pull to
dynamo-unittest; pull keeps py3.14t default, einops and openreg.

dynamo-unittest now calls _dynamo-unittest-python.yml once per Python version,
with the runner picked from the strategy matrix. A matrix build job shares one
test-matrix output across all its legs, so legs with different runners need
their own build and test pair. Adding another version, like 3.15t, is one
matrix entry. py3.14t uses 7 dynamo_wrapped shards like the other versions
instead of 8; its 8 shards averaged about 50 minutes on 16-128 runners.

Test Plan: CI. pull on this PR runs dynamo_core and dynamo_wrapped under
dynamo-cpython-test and no py3.14t dynamo_wrapped; dynamo-unittest runs 3.11,
3.12, 3.14, 3.14t and 3.15.

```
lintrunner -a .github/workflows/pull.yml .github/workflows/dynamo-unittest.yml .github/workflows/_dynamo-unittest-python.yml
```

Authored with an AI assistant (Claude Code).
@huydhn
huydhn force-pushed the dynamo-wrapped-py313-to-pull branch from 73cc90d to 55480b1 Compare November 7, 2026 01:10
@huydhn
huydhn requested a review from williamwen42 November 7, 2026 01:10
@huydhn huydhn added the ciflow/trunk Trigger trunk jobs on your pull request label Nov 7, 2026
@huydhn
huydhn marked this pull request as ready for review November 7, 2026 01:11
@huydhn
huydhn requested a review from a team as a code owner November 7, 2026 01:11
@pytorchbot pytorchbot added the in progress PR is being worked on by the author, until the automated review accepts it label Nov 7, 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 55480b1: nothing blocking; ready for human review.

The PR moves pull's per-PR dynamo testing from py3.14t to py3.13 by adding dynamo_core and 7 dynamo_wrapped shards to pull's dynamo-cpython job, and moves py3.14t dynamo_wrapped to trunk's dynamo-unittest through a new reusable workflow, _dynamo-unittest-python.yml. Recommendation: Approve. The review labels every point non-blocking, though it calls adding the target-determination dependency the most useful fix.

⚪ 2 non-blocking findings

{ config: "dynamo_wrapped", shard: 1, num_shards: 7, runner: "${{ inputs.label-type }}${{ inputs.runner }}" },

Non-blocking, advisory per REVIEW.md "New jobs prove reliability": coverage changes for 3.14t that the PR doesn't mention. dynamo_core has never run on py3.14t, and it now gates trunk and viable/strict. py3.14t dynamo_wrapped drops from 8 shards to 7. With NUM_PROCS fixed at 3 on CPU, each free-threaded shard gets ~14% more work against the 210-minute test-step limit. The wrapper hardcodes num_shards: 7 for every version and only lets the runner vary. Either restore 8 shards for 3.14t (e.g. with a num-shards or test-matrix input) or say in the description that 7 was intended. The single runner input also puts 3.14t dynamo_core on 16-128, though the OOM comment (dynamo-unittest.yml:43-46) only justifies that for dynamo_wrapped/test_nn.


Non-blocking convention gaps in the new file: there's no # Owner(s): \["oncall: pt2"\] header (the caller dynamo-unittest.yml and 28 of the 32 _*.yml files have one). The inputs have no description:, while every input in _linux-build.yml has one. And runner here means the test-shard runner, but _linux-build.yml has a runner input that means the build runner. A name like test-runner would avoid the confusion.

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 7, 2026
@huydhn

huydhn commented Nov 7, 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)

Run dynamo tests with 3.13 in pull instead of 3.14t per @williamwen42 suggestion. The rest can be moved to trunk enable more saving.

## Agent details (if applicable)

> Written with an AI assistant (Claude Code).
>
> - pull runs py3.13 dynamo_core and dynamo_wrapped in the `dynamo-cpython` job, reusing its existing py3.13 build. trunk's dynamo-unittest drops 3.13.
> - py3.14t dynamo_wrapped moves from pull to dynamo-unittest. pull keeps py3.14t default, einops and openreg.
> - dynamo-unittest calls a per-version workflow from its matrix, so each version can pick its runner (16-128 for 3.14t) and adding 3.15t is one line.

Pull Request resolved: pytorch#203884
Approved by: https://github.com/williamwen42
huydhn added a commit that referenced this pull request Nov 27, 2026
#203884 moved dynamo-unittest's build and test jobs into
_dynamo-unittest-python.yml, which takes the Python version and runner as
inputs. The linter treated every _ workflow as a leaf and never filled in
${{ inputs.* }}, so it no longer saw those configs and a py3.11 dynamo_wrapped
re-added to pull.yml went unflagged.

Follow any local workflow call until a job passes a test-matrix, carrying the
caller's with: values as inputs. Also handle matrix include: entries and the
${{ x || 'default' }} form, which dynamo-unittest.yml uses to put 3.14t on a
bigger runner. Drop the lint message tweak from the previous commit.
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 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.

4 participants