Repository navigation
Conversation
Follows pytorch#198271 (pull, trunk) and pytorch#198501 (periodic, slow, periodic-strict), covering the 32 workflows those two did not touch: the inductor, rocm, h100, xpu, docs, dtensor, native-aot and microbenchmark families. Job ids, display names, build-environment, needs references and python-version all move together, following the convention those PRs established. Also fixes .ci/pytorch/test.sh, which gates a test on the build-environment name: # Remove dill to test that serialization works without it if [[ "$BUILD_ENVIRONMENT" == *py3.10-gcc11 ]]; then pytorch#198271 renames that environment to py3.11-gcc11 but does not touch this guard, so once it lands the branch stops matching, dill is never uninstalled and the without-dill serialization coverage disappears silently -- no failure, just a test that no longer runs. Deliberately left alone: - lint.yml, which needs pytorch-linux-jammy-cuda13.0-cudnn9-py3.11-linter. .ci/docker/build.sh has no case for that tag, so the image cannot be built yet. - .github/scripts/test_trymerge.py, where py3.10 appears in historical job names used as test fixtures. - .github/templates/linux_binary_build_workflow.yml.j2 and _binary-test-macos.yml, where py3_10 appears in comments and input descriptions about binary wheels. The binary matrix still ships 3.10 on the test and release channels; only nightly dropped it. - job-filter.yml, where the reference is inside a commented-out example. The only versioned image any of these workflows names is pytorch-linux-jammy-py3.11-clang21, which is already defined in .ci/docker/build.sh and listed in docker-builds.yml. Verified: all 32 workflows parse as YAML; every `needs:` entry and every ${{ needs.<job>.* }} interpolation resolves to a job defined in its own file (0 dangling references); test.sh passes bash -n; and the diff is symmetric at 357 insertions / 357 deletions with every added line pairing to a removed one under a 3.11 -> 3.10 mapping, i.e. nothing changed but the version.
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/198531
Note: Links to docs will display an error until the docs builds have been completed. ❌ You can merge normally! (19 Unrelated Failures), 1 Unclassified FailureAs of commit a881931 with merge base f2e069a ( 🟡 GREEN LIGHT - PR requires human review:
reason: NEW FAILURES SUPPRESSED BY AI (non-blocking) - The following jobs failed, but the AI CI Advisor judged the failures not to be evidence against this change:
UNCLASSIFIED FAILURE - DrCI could not classify the following job because the workflow did not run on the merge base. The failure may be pre-existing on trunk or introduced by this PR:
FLAKY - The following jobs failed but were likely due to flakiness present on trunk:
BROKEN TRUNK - The following jobs failed but were present on the merge base:👉 Rebase onto the `viable/strict` branch to avoid these failures
UNSTABLE - The following jobs are marked as unstable, possibly due to flakiness on trunk:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
@claude Verify that all 3.10 jobs are migrated to 3.11 correctly, and there is no 3.10 CI jobs left after this |
|
Claude finished @huydhn's task in 2m 55s —— View job No. The job names are renamed cleanly, but most of these jobs will still run Python 3.10, and some CI jobs still say DetailsChecklist
✅ The rename is correct
❌ 1. Most renamed jobs still run Python 3.10Setting
This affects all of These jobs actually move to 3.11: To really migrate, either:
Either way the change is in ❌ 2. CI jobs still on 3.10 after this PR
Minor
Suggested next steps
Note: I can't push changes under |
huydhn
left a comment
There was a problem hiding this comment.
Stamped while waiting for CI signals. It looks like there are more 3.10 jobs to lift, but they can be done in subsequent PRs #198531 (comment)
|
@pytorchmergebot merge -f "all looks good, lets merge" |
Merge startedYour change will be merged immediately since you used the force (-f) flag, bypassing any CI checks (ETA: 1-5 minutes). Please use Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
> PyTorch 2.15 raises the minimum Python to 3.11, and CI no longer runs 3.10 > (pytorch#198271, pytorch#198501, pytorch#198531). This removes the 3.10-only code from > torch/_dynamo and torch/csrc/dynamo: the IS_PYTHON_3_11_PLUS branches, the > handlers and builders for opcodes that don't exist on 3.11+ (including the > pre-3.9 SETUP_LOOP/SETUP_EXCEPT and BUILD_*_UNPACK handlers), the 3.10 > block-stack exception handling, the lnotab writer, and remove_pointless_jumps, > which only matched JUMP_ABSOLUTE and so was a no-op on 3.11+. Behavior on > 3.11+ doesn't change. > > get_framelocals_idx keeps its last-match lookup: its comment attributed > duplicate localsplus names to <= 3.10, but Dynamo's resume functions still > produce them on 3.11 (test_no_recompile_inner_function fails without it). > > This depends on requires-python being raised to >=3.11; don't merge it > before that lands. > > Test Plan: CPU-only build on Python 3.11. lintrunner is clean, and the > dynamo test files touching this code pass except for failures caused by the > local environment (no LAPACK): > > ``` > uv pip install -e . -v --no-build-isolation > python -m pytest test/dynamo/test_<name>.py -q # 43 files, run in parallel > ``` > > Authored with Claude Code. Co-Authored-By: Claude Opus 5.5 <[email protected]>
> PyTorch 2.15 raises the minimum Python to 3.11, and CI no longer runs 3.10 > (pytorch#198271, pytorch#198501, pytorch#198531). This removes the 3.10-only code from > torch/_dynamo and torch/csrc/dynamo: the IS_PYTHON_3_11_PLUS branches, the > handlers and builders for opcodes that don't exist on 3.11+ (including the > pre-3.9 SETUP_LOOP/SETUP_EXCEPT and BUILD_*_UNPACK handlers), the 3.10 > block-stack exception handling, the lnotab writer, and remove_pointless_jumps, > which only matched JUMP_ABSOLUTE and so was a no-op on 3.11+. Behavior on > 3.11+ doesn't change. The `sys.version_info` guards against 3.11 in > test/dynamo are unwrapped as well, keeping the 3.11+ branch. > > get_framelocals_idx keeps its last-match lookup: its comment attributed > duplicate localsplus names to <= 3.10, but Dynamo's resume functions still > produce them on 3.11 (test_no_recompile_inner_function fails without it). > > This depends on requires-python being raised to >=3.11; don't merge it > before that lands. > > Test Plan: CPU-only build on Python 3.11. lintrunner is clean, and the > dynamo test files touching this code pass except for failures caused by the > local environment (no LAPACK): > > ``` > uv pip install -e . -v --no-build-isolation > python -m pytest test/dynamo/test_<name>.py -q # 43 files, run in parallel > ``` > > Authored with Claude Code. Co-Authored-By: Claude Opus 5.5 <[email protected]>
> PyTorch 2.15 raises the minimum Python to 3.11, and CI no longer runs 3.10 > (pytorch#198271, pytorch#198501, pytorch#198531). This removes the 3.10-only code from > torch/_dynamo and torch/csrc/dynamo: the IS_PYTHON_3_11_PLUS branches, the > handlers and builders for opcodes that don't exist on 3.11+ (including the > pre-3.9 SETUP_LOOP/SETUP_EXCEPT and BUILD_*_UNPACK handlers), the 3.10 > block-stack exception handling, the lnotab writer, and remove_pointless_jumps, > which only matched JUMP_ABSOLUTE and so was a no-op on 3.11+. Behavior on > 3.11+ doesn't change. The `sys.version_info` guards against 3.11 in > test/dynamo are unwrapped as well, keeping the 3.11+ branch. > > get_framelocals_idx keeps its last-match lookup: its comment attributed > duplicate localsplus names to <= 3.10, but Dynamo's resume functions still > produce them on 3.11 (test_no_recompile_inner_function fails without it). > > This depends on requires-python being raised to >=3.11; don't merge it > before that lands. > > Test Plan: CPU-only build on Python 3.11. lintrunner is clean, and the > dynamo test files touching this code pass except for failures caused by the > local environment (no LAPACK): > > ``` > uv pip install -e . -v --no-build-isolation > python -m pytest test/dynamo/test_<name>.py -q # 43 files, run in parallel > ``` > > Authored with Claude Code. Co-Authored-By: Claude Opus 5.5 <[email protected]>
> PyTorch 2.15 raises the minimum Python to 3.11, and CI no longer runs 3.10 > (pytorch#198271, pytorch#198501, pytorch#198531). This removes the 3.10-only code from > torch/_dynamo and torch/csrc/dynamo: the IS_PYTHON_3_11_PLUS branches, the > handlers and builders for opcodes that don't exist on 3.11+ (including the > pre-3.9 SETUP_LOOP/SETUP_EXCEPT and BUILD_*_UNPACK handlers), the 3.10 > block-stack exception handling, the lnotab writer, and remove_pointless_jumps, > which only matched JUMP_ABSOLUTE and so was a no-op on 3.11+. Behavior on > 3.11+ doesn't change. The `sys.version_info` guards against 3.11 in > test/dynamo are unwrapped as well, keeping the 3.11+ branch. > > get_framelocals_idx keeps its last-match lookup: its comment attributed > duplicate localsplus names to <= 3.10, but Dynamo's resume functions still > produce them on 3.11 (test_no_recompile_inner_function fails without it). > > This depends on requires-python being raised to >=3.11; don't merge it > before that lands. > > Test Plan: CPU-only build on Python 3.11. lintrunner is clean, and the > dynamo test files touching this code pass except for failures caused by the > local environment (no LAPACK): > > ``` > uv pip install -e . -v --no-build-isolation > python -m pytest test/dynamo/test_<name>.py -q # 43 files, run in parallel > ``` > > Authored with Claude Code. Co-Authored-By: Claude Opus 5.5 <[email protected]>
> PyTorch 2.15 raises the minimum Python to 3.11, and CI no longer runs 3.10 > (#198271, #198501, #198531). This removes the 3.10-only code from > torch/_dynamo and torch/csrc/dynamo: the IS_PYTHON_3_11_PLUS branches, the > handlers and builders for opcodes that don't exist on 3.11+ (including the > pre-3.9 SETUP_LOOP/SETUP_EXCEPT and BUILD_*_UNPACK handlers), the 3.10 > block-stack exception handling, the lnotab writer, and remove_pointless_jumps, > which only matched JUMP_ABSOLUTE and so was a no-op on 3.11+. Behavior on > 3.11+ doesn't change. > > get_framelocals_idx keeps its last-match lookup: its comment attributed > duplicate localsplus names to <= 3.10, but Dynamo's resume functions still > produce them on 3.11 (test_no_recompile_inner_function fails without it). > > This depends on requires-python being raised to >=3.11; don't merge it > before that lands. > > Test Plan: CPU-only build on Python 3.11. lintrunner is clean, and the > dynamo test files touching this code pass except for failures caused by the > local environment (no LAPACK): > > ``` > uv pip install -e . -v --no-build-isolation > python -m pytest test/dynamo/test_<name>.py -q # 43 files, run in parallel > ``` > > Authored with Claude Code. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Pull Request resolved: #199417 Approved by: https://github.com/rtimpe Co-authored-by: Claude Opus 5.5 <[email protected]>
> PyTorch 2.15 raises the minimum Python to 3.11, and CI no longer runs 3.10 > (pytorch#198271, pytorch#198501, pytorch#198531). This removes the 3.10-only code from > torch/_dynamo and torch/csrc/dynamo: the IS_PYTHON_3_11_PLUS branches, the > handlers and builders for opcodes that don't exist on 3.11+ (including the > pre-3.9 SETUP_LOOP/SETUP_EXCEPT and BUILD_*_UNPACK handlers), the 3.10 > block-stack exception handling, the lnotab writer, and remove_pointless_jumps, > which only matched JUMP_ABSOLUTE and so was a no-op on 3.11+. Behavior on > 3.11+ doesn't change. The `sys.version_info` guards against 3.11 in > test/dynamo are unwrapped as well, keeping the 3.11+ branch. > > get_framelocals_idx keeps its last-match lookup: its comment attributed > duplicate localsplus names to <= 3.10, but Dynamo's resume functions still > produce them on 3.11 (test_no_recompile_inner_function fails without it). > > This depends on requires-python being raised to >=3.11; don't merge it > before that lands. > > Test Plan: CPU-only build on Python 3.11. lintrunner is clean, and the > dynamo test files touching this code pass except for failures caused by the > local environment (no LAPACK): > > ``` > uv pip install -e . -v --no-build-isolation > python -m pytest test/dynamo/test_<name>.py -q # 43 files, run in parallel > ``` > > Authored with Claude Code. Co-Authored-By: Claude Opus 5.5 <[email protected]>
> PyTorch 2.15 raises the minimum Python to 3.11, and CI no longer runs 3.10 > (pytorch#198271, pytorch#198501, pytorch#198531). This removes the 3.10-only code from > torch/_dynamo and torch/csrc/dynamo: the IS_PYTHON_3_11_PLUS branches, the > handlers and builders for opcodes that don't exist on 3.11+ (including the > pre-3.9 SETUP_LOOP/SETUP_EXCEPT and BUILD_*_UNPACK handlers), the 3.10 > block-stack exception handling, the lnotab writer, and remove_pointless_jumps, > which only matched JUMP_ABSOLUTE and so was a no-op on 3.11+. Behavior on > 3.11+ doesn't change. The `sys.version_info` guards against 3.11 in > test/dynamo are unwrapped as well, keeping the 3.11+ branch. > > get_framelocals_idx keeps its last-match lookup: its comment attributed > duplicate localsplus names to <= 3.10, but Dynamo's resume functions still > produce them on 3.11 (test_no_recompile_inner_function fails without it). > > This depends on requires-python being raised to >=3.11; don't merge it > before that lands. > > Test Plan: CPU-only build on Python 3.11. lintrunner is clean, and the > dynamo test files touching this code pass except for failures caused by the > local environment (no LAPACK): > > ``` > uv pip install -e . -v --no-build-isolation > python -m pytest test/dynamo/test_<name>.py -q # 43 files, run in parallel > ``` > > Authored with Claude Code. Co-Authored-By: Claude Opus 5.5 <[email protected]>
> PyTorch 2.15 raises the minimum Python to 3.11, and CI no longer runs 3.10 > (#198271, #198501, #198531). This removes the 3.10-only code from > torch/_dynamo and torch/csrc/dynamo: the IS_PYTHON_3_11_PLUS branches, the > handlers and builders for opcodes that don't exist on 3.11+ (including the > pre-3.9 SETUP_LOOP/SETUP_EXCEPT and BUILD_*_UNPACK handlers), the 3.10 > block-stack exception handling, the lnotab writer, and remove_pointless_jumps, > which only matched JUMP_ABSOLUTE and so was a no-op on 3.11+. Behavior on > 3.11+ doesn't change. > > get_framelocals_idx keeps its last-match lookup: its comment attributed > duplicate localsplus names to <= 3.10, but Dynamo's resume functions still > produce them on 3.11 (test_no_recompile_inner_function fails without it). > > This depends on requires-python being raised to >=3.11; don't merge it > before that lands. > > Test Plan: CPU-only build on Python 3.11. lintrunner is clean, and the > dynamo test files touching this code pass except for failures caused by the > local environment (no LAPACK): > > ``` > uv pip install -e . -v --no-build-isolation > python -m pytest test/dynamo/test_<name>.py -q # 43 files, run in parallel > ``` > > Authored with Claude Code. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Pull Request resolved: #199417 Approved by: https://github.com/rtimpe Co-authored-by: Claude Opus 5.5 <[email protected]>
> PyTorch 2.15 raises the minimum Python to 3.11, and CI no longer runs 3.10 > (pytorch#198271, pytorch#198501, pytorch#198531). This removes the 3.10-only code from > torch/_dynamo and torch/csrc/dynamo: the IS_PYTHON_3_11_PLUS branches, the > handlers and builders for opcodes that don't exist on 3.11+ (including the > pre-3.9 SETUP_LOOP/SETUP_EXCEPT and BUILD_*_UNPACK handlers), the 3.10 > block-stack exception handling, the lnotab writer, and remove_pointless_jumps, > which only matched JUMP_ABSOLUTE and so was a no-op on 3.11+. Behavior on > 3.11+ doesn't change. > > get_framelocals_idx keeps its last-match lookup: its comment attributed > duplicate localsplus names to <= 3.10, but Dynamo's resume functions still > produce them on 3.11 (test_no_recompile_inner_function fails without it). > > This depends on requires-python being raised to >=3.11; don't merge it > before that lands. > > Test Plan: CPU-only build on Python 3.11. lintrunner is clean, and the > dynamo test files touching this code pass except for failures caused by the > local environment (no LAPACK): > > ``` > uv pip install -e . -v --no-build-isolation > python -m pytest test/dynamo/test_<name>.py -q # 43 files, run in parallel > ``` > > Authored with Claude Code. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Pull Request resolved: pytorch#199417 Approved by: https://github.com/rtimpe Co-authored-by: Claude Opus 5.5 <[email protected]>
Follows #198271 (pull, trunk) and #198501 (periodic, slow, periodic-strict), covering the 32 workflows those two did not touch.
What moves
The inductor, rocm, h100, xpu, docs, dtensor, native-aot and microbenchmark families. Job ids, display names,
build-environment,needsreferences,${{ needs.<job>.* }}interpolations andpython-versionall move together, following the convention the two earlier PRs established.The only versioned image any of these workflows names is
pytorch-linux-jammy-py3.11-clang21, which is already defined in.ci/docker/build.shand listed indocker-builds.yml.Also: a guard that would have lost coverage silently
.ci/pytorch/test.shgates a test on the build-environment name:#198271 renames that environment to
py3.11-gcc11but does not touch this guard. Once it lands the branch stops matching, dill is never uninstalled, and the without-dill serialization coverage disappears — no failure, just a test that no longer runs. Fixed here since it is the same migration.Deliberately left alone
lint.ymlpytorch-linux-jammy-cuda13.0-cudnn9-py3.11-linter;.ci/docker/build.shhas no case for that tag, so the image cannot be built yet.github/scripts/test_trymerge.pypy3.10appears in historical job names used as test fixtureslinux_binary_build_workflow.yml.j2,_binary-test-macos.ymlpy3_10appears in comments and input descriptions about binary wheels. The binary matrix still ships 3.10 on the test and release channels; only nightly dropped itjob-filter.ymlVerification
needs:entry and every${{ needs.<job>.* }}interpolation resolves to a job defined in its own file — 0 dangling references. That is the failure mode a blind rename produces, since job ids carry the version.bash -nclean ontest.sh.3.11back to3.10pairs every added line with a removed one — i.e. nothing changed but the version.Follow-up needed elsewhere
Three py3.11 images have no case in
.ci/docker/build.sh:That is why
lint.ymlis excluded here. It also affects #198501, which renamesdocker-image-nameto the two clang20 tags and updatesdocker-builds.ymlto match — that PR will request images that cannot be built untilbuild.shdefines them.