Repository navigation
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/190639
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit a766526 with merge base b0eccff ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
@pytorchbot rebase |
|
@pytorchbot started a rebase job onto refs/remotes/origin/viable/strict. Check the current status here |
|
Successfully rebased |
09ab92f to
5842017
Compare
|
The above (https://github.com/pytorch/pytorch/actions/runs/29947019889/job/89015281565?pr=190639) nvshmem failure looks concerning. |
Looks like the issue is missing sm75 support from existing NVSHMEM 3.4.5 pytorch/.ci/docker/common/install_cuda.sh Line 13 in ff801e8 |
|
Root cause is from sccache incompatibility with nvcc 13.3+ with the new --simt-only flag addition. Filed tracking issue in #190832. Going to disable sccache for CUDA 13.4 builds as a WAR. |
de52b2b to
b6bc374
Compare
|
@pytorchmergebot merge -f "all looks good, lets merge" |
1 similar 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 |
Merge failedReason: Refusing to merge: this PR modifies the CI docker images, but the .ci/docker tree of the merge commit (ab961773d434a63deaf68eb238bc3b7e46c4708a) does not match the tree that ciflow/docker built and tested on the PR head (08b9699ae14928cf7b14fa76e7bb3fcc9eed7753). Another docker-affecting change landed on the base branch after your docker images were built, so the images required after this merge were never built or tested (a land race). Please rebase this PR (e.g. Details for Dev Infra teamRaised by workflow job |
|
@pytorchbot rebase |
|
@pytorchbot started a rebase job onto refs/remotes/origin/viable/strict. Check the current status here |
Builds on the previous commit (CUDA 13.4 install path + almalinux magma image) to add the CI build/test image and a basic periodic job, mirroring #161013 for CUDA 13.0. Since 13.4 shares the CUDA 13 major already exercised by 13.0, no ATen/c10/caffe2 source changes are needed -- only CI wiring: - a pytorch-linux-jammy-cuda13.4-cudnn9-py3-gcc11 image in build.sh, - that image added to the docker-builds matrix so it is built and pushed, and - a linux-jammy-cuda13.4-py3.10-gcc11 build+test pair in periodic.yml running jit_legacy on an sm_75 g4dn runner. The nogpu_AVX512 and nogpu_NO_AVX2 configs are deliberately left out for now. They run the cpp tests under valgrind, and CUDA 13.4's libcufft 12.4.0.16 reads uninitialised values while initialising itself (call_init/_dl_init, before main). valgrind runs with --error-exitcode=1, so those reports fail the shard even though every frame is inside the closed-source library and no PyTorch code is involved. Add them back once cuFFT stops reporting these, or once a suppression for libcufft is added to aten/tools/valgrind.sup alongside the existing libcuda ones. Note the cuda13.0 and cuda13.2 periodic jobs run these same configs and pass, so this is specific to 13.4. No nightly binary/wheel workflows are touched: the CI image installs the CUDA toolkit into the image and builds PyTorch from source, pulling no torch wheel. Test Plan: Static check locally (no Docker build host / lintrunner): ``` bash -n .ci/docker/build.sh ``` Full validation is the docker-builds job building the new image, and the periodic linux-jammy-cuda13.4-py3.10-gcc11 build+test. Authored with assistance from an AI coding assistant (Claude). Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
|
Successfully rebased |
b6bc374 to
a766526
Compare
|
@pytorchmergebot merge -f "all looks good" |
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 |
Merge failedReason: Refusing to merge: this PR modifies the CI docker images, but the .ci/docker tree of the merge commit (ab961773d434a63deaf68eb238bc3b7e46c4708a) does not match the tree that ciflow/docker built and tested on the PR head (75ce86e4df2a88fcb08e3b7abc3afe92f0fc7f94). Another docker-affecting change landed on the base branch after your docker images were built, so the images required after this merge were never built or tested (a land race). Please rebase this PR (e.g. Details for Dev Infra teamRaised by workflow job |
Follow-up to pytorch#191508. That PR added two gates for docker-affecting PRs. The first, check_docker_builds_ready, requires the PR's own ciflow/docker builds to have run and passed -- that one stays. The second, check_no_docker_merge_skew, additionally required the .ci/docker tree of the *merge commit* to equal the tree ciflow/docker built on the PR head, and refused the merge otherwise: Refusing to merge: this PR modifies the CI docker images, but the .ci/docker tree of the merge commit (...) does not match the tree that ciflow/docker built and tested on the PR head (...) In practice that makes a docker PR win a race against the base branch. Rebasing only helps until the next docker-affecting PR lands, so on a busy day a PR can bounce indefinitely -- pytorch#190639 hit it twice in a row, with the PR-head tree moving (08b9699 -> 75ce86e) while the merge-commit tree stayed the same. Downgrade it to a warning: - The builds-are-green requirement is unchanged: check_docker_builds_ready still blocks (and MandatoryChecksMissingError still makes a normal merge wait). - A missing post-merge image is not fatal. docker-builds.yml runs on push to the default branch, so it publishes the merged tree's images right after the merge, and test-infra's calculate-docker-image polls for the image (docker manifest inspect, up to 120 min) before falling through to rebuilding it locally. So a skew costs time on the first trunk jobs rather than breaking them. - The mismatch is still printed to the merge job log, so a slow or rebuilding trunk job can be correlated with the land race that caused it. Renamed to warn_on_docker_merge_skew so the name matches the behaviour.
…arn (#192522) Follow-up to #191508. ## What #191508 added, and what changes here It added two gates for docker-affecting PRs, both in `merge_into` so force merges cannot bypass them: 1. **`check_docker_builds_ready`** — the PR's own `ciflow/docker` builds must have run and passed. **Unchanged by this PR.** Pending builds still raise `MandatoryChecksMissingError` so a normal merge waits; missing/failed builds are still refused. 2. **`check_no_docker_merge_skew`** — additionally required the `.ci/docker` tree of the *merge commit* to equal the tree `ciflow/docker` built on the PR head, and refused the merge otherwise. **This PR downgrades it to a warning.** So the "all the builds are green" requirement is fully retained; what goes away is the extra requirement that the base branch not have moved. ## Why Requiring the two trees to match means a docker PR has to win a race against the base branch, and a rebase only helps until the next docker-affecting PR lands. On a busy day a PR can bounce indefinitely. #190639 hit it twice in a row — the PR-head tree moved (`08b9699a` → `75ce86e4`) after a rebase while the merge-commit tree stayed `ab961773`: ``` Refusing to merge: this PR modifies the CI docker images, but the .ci/docker tree of the merge commit (ab96177...) does not match the tree that ciflow/docker built and tested on the PR head (75ce86e...) ``` **A missing post-merge image is not fatal**, which is the key point: - `docker-builds.yml` triggers on `push` to `main` / `release/*`, so the merged tree's images get built and pushed right after the merge lands. - test-infra's `calculate-docker-image` polls for the image before giving up — `docker manifest inspect` in a loop, `sleep 300` per iteration, up to 120 minutes for non-docker-build jobs — and then falls through to `rebuild=true` and builds it locally. So a skew costs **time** on the first trunk jobs after the merge (waiting for docker-builds, or a local rebuild with longer TTS), not a hard failure. Trading that against docker PRs being unable to land seems like the better default. ## Kept: the diagnostic The mismatch is still printed to the merge job log, so a slow or rebuilding trunk job can be correlated with the land race that caused it: ``` WARNING: docker land race on PR #NNNNN: the .ci/docker tree of the merge commit (...) does not match the tree that ciflow/docker built and tested on the PR head (...). ... the first trunk jobs after this merge may wait for docker-builds to publish the merged tree's images, or rebuild them locally. Merging anyway. ``` Renamed `check_no_docker_merge_skew` → `warn_on_docker_merge_skew` so the name matches the behaviour. ## Test plan - `python -m pytest .github/scripts/test_trymerge.py` → **74 passed, 2 skipped** (the 4 docker-gate tests included; none referenced the renamed function). - `py_compile` clean; no remaining references to the old name (`grep -rn check_no_docker_merge_skew .github/` → empty). - `MergeRuleFailedError` is still used in 7 other places, so the import is not orphaned. ## Trade-off, stated plainly This intentionally reopens the window that #191508 closed: a docker PR can now land whose post-merge images were never built or tested, which is the shape of the #190927 / #186302 land race cited in that PR. The mitigation is that the images are auto-published by `docker-builds.yml` on the merge and that jobs wait for them, so the failure mode is latency rather than red trunk. If dev-infra would rather keep a hard gate, an alternative is to keep refusing only when `check_docker_builds_ready` did **not** pass, i.e. exactly the unbuilt-image case, and always allow the pure-skew case — happy to switch to that. Pull Request resolved: #192522 Approved by: https://github.com/tinglvv, https://github.com/izaitsevfb, https://github.com/ezyang
|
@pytorchmergebot merge -f "all looks good" |
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 |
Small PR building on top of #190639 / #192256 to use the cuda-bindings 13.4 beta for the CUDA 13.4 image specifically. This unblocks testing of PRs requiring CUDA 13.4 + cuda-bindings (e.g. #190656) CC: @tinglvv @nWEIdia @atalman @malfet @eqy @ptrblck Pull Request resolved: #192769 Approved by: https://github.com/tinglvv, https://github.com/atalman
…arn (pytorch#192522) Follow-up to pytorch#191508. ## What pytorch#191508 added, and what changes here It added two gates for docker-affecting PRs, both in `merge_into` so force merges cannot bypass them: 1. **`check_docker_builds_ready`** — the PR's own `ciflow/docker` builds must have run and passed. **Unchanged by this PR.** Pending builds still raise `MandatoryChecksMissingError` so a normal merge waits; missing/failed builds are still refused. 2. **`check_no_docker_merge_skew`** — additionally required the `.ci/docker` tree of the *merge commit* to equal the tree `ciflow/docker` built on the PR head, and refused the merge otherwise. **This PR downgrades it to a warning.** So the "all the builds are green" requirement is fully retained; what goes away is the extra requirement that the base branch not have moved. ## Why Requiring the two trees to match means a docker PR has to win a race against the base branch, and a rebase only helps until the next docker-affecting PR lands. On a busy day a PR can bounce indefinitely. pytorch#190639 hit it twice in a row — the PR-head tree moved (`08b9699a` → `75ce86e4`) after a rebase while the merge-commit tree stayed `ab961773`: ``` Refusing to merge: this PR modifies the CI docker images, but the .ci/docker tree of the merge commit (ab96177...) does not match the tree that ciflow/docker built and tested on the PR head (75ce86e...) ``` **A missing post-merge image is not fatal**, which is the key point: - `docker-builds.yml` triggers on `push` to `main` / `release/*`, so the merged tree's images get built and pushed right after the merge lands. - test-infra's `calculate-docker-image` polls for the image before giving up — `docker manifest inspect` in a loop, `sleep 300` per iteration, up to 120 minutes for non-docker-build jobs — and then falls through to `rebuild=true` and builds it locally. So a skew costs **time** on the first trunk jobs after the merge (waiting for docker-builds, or a local rebuild with longer TTS), not a hard failure. Trading that against docker PRs being unable to land seems like the better default. ## Kept: the diagnostic The mismatch is still printed to the merge job log, so a slow or rebuilding trunk job can be correlated with the land race that caused it: ``` WARNING: docker land race on PR #NNNNN: the .ci/docker tree of the merge commit (...) does not match the tree that ciflow/docker built and tested on the PR head (...). ... the first trunk jobs after this merge may wait for docker-builds to publish the merged tree's images, or rebuild them locally. Merging anyway. ``` Renamed `check_no_docker_merge_skew` → `warn_on_docker_merge_skew` so the name matches the behaviour. ## Test plan - `python -m pytest .github/scripts/test_trymerge.py` → **74 passed, 2 skipped** (the 4 docker-gate tests included; none referenced the renamed function). - `py_compile` clean; no remaining references to the old name (`grep -rn check_no_docker_merge_skew .github/` → empty). - `MergeRuleFailedError` is still used in 7 other places, so the import is not orphaned. ## Trade-off, stated plainly This intentionally reopens the window that pytorch#191508 closed: a docker PR can now land whose post-merge images were never built or tested, which is the shape of the pytorch#190927 / pytorch#186302 land race cited in that PR. The mitigation is that the images are auto-published by `docker-builds.yml` on the merge and that jobs wait for them, so the failure mode is latency rather than red trunk. If dev-infra would rather keep a hard gate, an alternative is to keep refusing only when `check_docker_builds_ready` did **not** pass, i.e. exactly the unbuilt-image case, and always allow the pure-skew case — happy to switch to that. Pull Request resolved: pytorch#192522 Approved by: https://github.com/tinglvv, https://github.com/izaitsevfb, https://github.com/ezyang
Adds CUDA 13.4 CI ubuntu image and periodic tests, mirroring pytorch#161013 for CUDA 13.0. Since 13.4 shares the CUDA 13 major already exercised by 13.0 and 13.2, no ATen/c10/caffe2 source changes are needed: - a `pytorch-linux-jammy-cuda13.4-cudnn9-py3-gcc11` image in `build.sh`, - that image added to the `docker-builds` matrix so it is built and pushed, and - a `linux-jammy-cuda13.4-py3.10-gcc11` build+test pair in `periodic.yml` running `jit_legacy` on an sm_75 g4dn runner. Follow-up: The `nogpu_AVX512` and `nogpu_NO_AVX2` configs are left out for now. They run the cpp tests under valgrind, and CUDA 13.4's `libcufft.so.12.4.0.16` reads uninitialised values while initialising itself (`call_init`/`_dl_init`, before `main`). valgrind runs with `--error-exitcode=1`, so those reports fail the shard even though every frame is inside the closed-source library and no PyTorch code is involved: ``` ==132146== Conditional jump or move depends on uninitialised value(s) ==132146== at 0x2EED9C8A: ??? (in /usr/local/cuda-13.4/targets/x86_64-linux/lib/libcufft.so.12.4.0.16) ==132146== by 0x21FA0EA7: __pthread_once_slow (pthread_once.c:116) ==132146== by 0x400647D: call_init.part.0 (dl-init.c:70) ... ==132146== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 21 from 5) ``` All 7 gtest cases pass; only the valgrind exit code fails the shard. The cuda13.0 and cuda13.2 periodic jobs run these same configs and pass, so this is specific to 13.4. The configs can be restored once cuFFT stops reporting these, or once a `libcufft` suppression is added to `aten/tools/valgrind.sup` next to the existing `libcuda` ones (cf. pytorch#34169). Test Plan: Full validation is the docker-builds job building the new image, and the periodic linux-jammy-cuda13.4-py3.10-gcc11 build+test. Authored with assistance from an AI coding assistant (Claude). Pull Request resolved: pytorch#190639 Approved by: https://github.com/eqy, https://github.com/nWEIdia, https://github.com/atalman Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]>
) Small PR building on top of pytorch#190639 / pytorch#192256 to use the cuda-bindings 13.4 beta for the CUDA 13.4 image specifically. This unblocks testing of PRs requiring CUDA 13.4 + cuda-bindings (e.g. pytorch#190656) CC: @tinglvv @nWEIdia @atalman @malfet @eqy @ptrblck Pull Request resolved: pytorch#192769 Approved by: https://github.com/tinglvv, https://github.com/atalman
Adds CUDA 13.4 CI ubuntu image and periodic tests, mirroring #161013 for CUDA 13.0. Since 13.4 shares the
CUDA 13 major already exercised by 13.0 and 13.2, no ATen/c10/caffe2 source changes
are needed:
pytorch-linux-jammy-cuda13.4-cudnn9-py3-gcc11image inbuild.sh,docker-buildsmatrix so it is built and pushed, andlinux-jammy-cuda13.4-py3.10-gcc11build+test pair inperiodic.ymlrunningjit_legacyon an sm_75 g4dn runner.Follow-up: The
nogpu_AVX512andnogpu_NO_AVX2configs are left out for now.They run the cpp tests under valgrind, and CUDA 13.4's
libcufft.so.12.4.0.16readsuninitialised values while initialising itself (
call_init/_dl_init, beforemain). valgrind runs with--error-exitcode=1, so those reports fail the shardeven though every frame is inside the closed-source library and no PyTorch code is
involved:
All 7 gtest cases pass; only the valgrind exit code fails the shard. The cuda13.0 and
cuda13.2 periodic jobs run these same configs and pass, so this is specific to 13.4.
The configs can be restored once cuFFT stops reporting these, or once a
libcufftsuppression is added to
aten/tools/valgrind.supnext to the existinglibcudaones(cf. #34169).
Test Plan:
Full validation is the docker-builds job building the new image, and the periodic
linux-jammy-cuda13.4-py3.10-gcc11 build+test.
Authored with assistance from an AI coding assistant (Claude).
cc @ptrblck @nWEIdia @eqy @atalman @malfet