Repository navigation
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/190927
Note: Links to docs will display an error until the docs builds have been completed. ✅ You can merge normally! (15 Unrelated Failures)As of commit d599eab with merge base e27c721 ( FLAKY - The following jobs failed but were likely due to flakiness present on trunk:
CRCR (non-blocking) - The following CRCR downstream CI jobs failed but are non-blocking:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
a4303c3 to
b98a289
Compare
2822519 to
c2f04dd
Compare
225ab0d to
d370a53
Compare
|
sccache source build is enabled, https://github.com/pytorch/pytorch/actions/runs/30298112928/job/90084106715 Two build failures are not relevant. We can merge this. |
atalman
left a comment
There was a problem hiding this comment.
lgtm, lets make sure binaries build are successful before merging this
|
@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 |
|
@pytorchbot revert -m "Reverted automatically by pytorch's autorevert, to avoid this behaviour add the tag autorevert: disable" -c autorevert This PR is attributed to have caused regression in: Note: This revert was accelerated by the AI advisor: AI advisor: related (confidence=0.95) Please investigate and fix the issues. |
|
Claude finished @pytorch-auto-revert[bot]'s task in 12m 11s —— View job Autorevert diagnostics
Summary: the ASAN "build" failure is not a compile error — zero build steps ran. The pod could never pull its CI docker image, because this PR rotates the content-hash docker tag for every CI image and no image had been published for the new tag at the time the job started. The revert is justified as a trunk-unblock, but nothing in the sccache logic itself is implicated. Full diagnosticsWhat the log actually showsJob 90586597884 failed at step 2, This is the whole failure. Why the tag doesn't resolvePyTorch tags CI images by the git tree hash of
On current trunk: So
Corroborating evidence that this is tag-rotation and not a code defect: all four build jobs in run 30455070082 failed identically at The likely contributing factor: the docker-builds run was never greenThis PR's own Worth checking as the underlying rebuild blocker: DrCI attributed the cuda13.0 docker failure to curl --retry 3 -sL https://deb.nodesource.com/setup_16.x | sudo -E bash -This matters directly for the reverted job: I could not confirm the trunk Is the revert legitimate?Yes as a trunk-unblock, no as a verdict on the code. Reverting restores the previous Suggested path to reland
|
|
@pytorchbot successfully started a revert job. Check the current status here. |
…fix) (#190927)" This reverts commit 89b35f6. Reverted #190927 on behalf of https://github.com/pytorch-auto-revert due to Reverted automatically by pytorch's autorevert, to avoid this behaviour add the tag autorevert: disable ([comment](#190927 (comment)))
|
@tinglvv your PR has been successfully reverted. |
Merge failedReason: 12 jobs have failed, first few of them are: linux-binary-manywheel / manywheel-py3_10-xpu-test / test, linux-binary-manywheel / manywheel-py3_14t-xpu-test / test, linux-binary-manywheel / manywheel-py3_14-xpu-test / test, linux-binary-manywheel / manywheel-py3_11-xpu-test / test, linux-binary-manywheel / manywheel-py3_13-xpu-test / test Details for Dev Infra teamRaised by workflow job |
|
@pytorchbot merge -i |
Merge startedYour change will be merged while ignoring the following 12 checks: linux-binary-manywheel / manywheel-py3_10-xpu-test / test, linux-binary-manywheel / manywheel-py3_14t-xpu-test / test, linux-binary-manywheel / manywheel-py3_14-xpu-test / test, linux-binary-manywheel / manywheel-py3_11-xpu-test / test, linux-binary-manywheel / manywheel-py3_13-xpu-test / test, linux-binary-manywheel / manywheel-py3_12-xpu-test / test, windows-binary-wheel / wheel-py3_10-xpu-test, windows-binary-wheel / wheel-py3_11-xpu-test, windows-binary-wheel / wheel-py3_13-xpu-test, windows-binary-wheel / wheel-py3_12-xpu-test, windows-binary-wheel / wheel-py3_14-xpu-test, windows-binary-wheel / wheel-py3_14t-xpu-test Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
Merge failedReason: 12 jobs have failed, first few of them are: linux-binary-manywheel / manywheel-py3_10-xpu-test / test, linux-binary-manywheel / manywheel-py3_14t-xpu-test / test, linux-binary-manywheel / manywheel-py3_14-xpu-test / test, linux-binary-manywheel / manywheel-py3_11-xpu-test / test, linux-binary-manywheel / manywheel-py3_13-xpu-test / test Details for Dev Infra teamRaised by workflow job |
|
Both Windows XPU and Linux XPU wheels fail with The failed jobs are from 6 hours ago, now the triton-xpu wheels are published on https://download.pytorch.org/whl/nightly/triton-xpu/. Rerunning the jobs. |
|
@pytorchbot merge |
Merge startedYour 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 |
Merge failedReason: Refusing to merge: this PR modifies the CI docker images, but the .ci/docker tree of the merge commit (65f6106b6564dc7721a9912769892d70e8fd49c5) does not match the tree that ciflow/docker built and tested on the PR head (562e79cacef2e9577f320b0d13062377c6061759). 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 |
Reland of #190927 (landed as 2a4b761, auto-reverted in dc90186), with the cause of the revert fixed. Two separate sccache 0.16.0 bugs break CUDA builds; this patches both (patches/sccache-nvcc-13.3-dryrun-parsing.patch) and builds sccache from source until a release carrying them ships. First, nvcc 13.3+ injects a valueless --simt-only flag into the cudafe++ and cicc sub-commands of `nvcc --dryrun`, right before -o. sccache locates the sub-command input by a fixed offset from the end of the argument list, so the extra token makes cicc mis-locate its input and skip the device compile; ptxas then produces no .cubin and the build dies with "fatbinary fatal: Could not open input file '*.cubin'". mozilla/sccache#2722 fixes this by locating the input by its generated-file suffix (.cpp1.ii for cicc, .ptx for ptxas) instead. That fix is taken with one deviation: the suffix search runs only when the argument at the historical offset is not itself a generated input file. Of the three sub-commands sccache parses this way, only cicc is affected -- cudafe++ takes the input as its last argument (offset 1, unaffected by a flag inserted before it) and ptxas never receives --simt-only at all, so its offset was already correct. Gating keeps every command line nvcc still emits in the old shape parsing exactly as stock 0.16.0 does, with identical cache keys, while 13.3+ still gets the fix on the one sub-command that needs it. Second, and this is what the autorevert caught: for a virtual-only gencode such as -gencode arch=compute_120,code=compute_120, nvcc runs ptxas as a PTX verification pass with no -o at all -- ptxas -arch=compute_120 -m64 kernel.compute_120.ptx It syntax-checks the PTX and emits nothing. sccache marks every ptxas sub-command Cacheable::Yes, and the caching path requires an "obj" output that only -o populates, so the whole compile fails with `Missing "cubin" file output`. This is not a regression from #2722: stock 0.16.0 fails identically here, since with a three-argument list the offset picks -arch=compute_120 as the input and there is still no -o to find. Any target carrying a +PTX architecture can hit it; here it was torchao's mxfp8 extension, built as a dependency of inductor-build-cuda132. Mark that sub-command Cacheable::No instead, which routes it to the path nvcc.rs already uses for non-cacheable sub-commands: build the command and run it. The first attempt at this returned CompilerArguments::CannotCache from cicc::parse_arguments, but the nvcc sub-command dispatch converts CannotCache into an error rather than falling back to running the command, so it only moved the failure ("Cannot cache(no output file)"). Deciding at the grouping stage avoids that path entirely; Cacheable::No with a group is already how the host preprocessor steps are handled. The "Missing <lang> file output" error now also reports the parsed input and argument lists. That instrumentation is what identified the second bug -- the error alone said only that an output was absent, not that the command never had one -- and nvcc reshapes these sub-commands between CUDA releases, so the argument vector as sccache saw it is worth keeping in the message. Build from source for all image types (riscv64 keeps the prebuilt binary: no nvcc, no sccache-dist, and a from-source build under QEMU emulation would be impractically slow) so the whole fleet shares a single sccache binary. Build with the pre-installed rust toolchain rather than reinstalling rustup. Since #186302 the builder images pre-install a pinned rust (1.97.1) at CARGO_HOME=/opt/rust with /opt/rust/bin on PATH. The first landing ran `curl rustup | sh` then `. "$HOME/.cargo/env"`, but with CARGO_HOME=/opt/rust that env file is /opt/rust/env, so the source failed and every from-source image died at that line before reaching cargo. Drop the redundant (and pin-diverging) rustup reinstall and just use the cargo already on PATH. Disabling sccache for the affected CUDA versions was considered and rejected: it gives up CUDA build caching, which is the reason to run sccache at all. Drop the from-source build and return to the prebuilt binary once a sccache release including these fixes ships. See #190832. Test Plan: The patch applies cleanly to a pristine v0.16.0: ``` git clone --depth 1 --branch v0.16.0 https://github.com/mozilla/sccache /tmp/sccache git -C /tmp/sccache apply --check .ci/docker/common/patches/sccache-nvcc-13.3-dryrun-parsing.patch ``` The second bug reproduces without PyTorch or torchao, on any CUDA install, from the virtual-only gencode alone: ``` echo '__global__ void k() {}' > repro.cu cargo build --manifest-path /tmp/sccache/Cargo.toml --release /tmp/sccache/target/release/sccache nvcc -gencode=arch=compute_100,code=sm_100 \ -gencode=arch=compute_120,code=compute_120 -c repro.cu -o repro.o ``` In CI, the torchao mxfp8 extension built by inductor-build-cuda132 is the direct regression test. For the first bug, in a CUDA 13.3+ image: ``` sccache nvcc -rdc=true -gencode arch=compute_75,code=sm_75 -c repro.cu -o repro.o # succeeds, no fatbinary error ``` and confirm non-CUDA / ROCm / XPU images still build and cache normally. Authored with assistance from Claude. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
|
Successfully rebased |
e7ddb99 to
d599eab
Compare
|
@pytorchbot merge -i |
Merge startedYour change will be merged while ignoring the following 9 checks: linux-binary-manywheel / libtorch-rocm7_14-shared-with-deps-release-extract, linux-binary-manywheel / manywheel-py3_14t-rocm7_14-test / test, linux-binary-manywheel / manywheel-py3_10-rocm7_14-test / test, linux-binary-manywheel / manywheel-py3_15-rocm7_14-test / test, linux-binary-manywheel / manywheel-py3_11-rocm7_14-test / test, linux-binary-manywheel / manywheel-py3_12-rocm7_14-test / test, linux-binary-manywheel / manywheel-py3_13-rocm7_14-test / test, linux-binary-manywheel / manywheel-py3_14-rocm7_14-test / test, linux-binary-manywheel / manywheel-py3_15t-rocm7_14-test / test Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
…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
…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
Fixes #190832
nvcc 13.3+ injects a valueless --simt-only flag (Tile compilation) into the cicc sub-command of
nvcc --dryrun. sccache 0.16.0 locates the cicc input by a fixed offset from the end of the argument list, so the extra token makes it splice out --simt-only as the "input" and skip the device compile. This affects any separable/relocatable (-rdc=true) CUDA target (e.g. gloo_cuda, torch_nvshmem).Building from source in sccache 0.16.0 + the root cause fix, and keeping consistent for all builds.
Root cause fix is pending mozilla/sccache#2722, once fixed release ships we will drop this from-source build.
Test Plan:
To be validated in 13.4 build https://github.com/pytorch/pytorch/actions/runs/29947019889/job/89015281565?pr=190639
cc @ptrblck @nWEIdia @eqy @atalman @malfet