Skip to content

[CI] Update sccache to 0.18.0 - #198237

Open
Skylion007 wants to merge 1 commit into
pytorch:mainfrom
Skylion007:ci/sccache-0.18.0
Open

Skylion007 wants to merge 1 commit into
pytorch:mainfrom
Skylion007:ci/sccache-0.18.0

Conversation

@Skylion007

@Skylion007 Skylion007 commented Sep 22, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Update Linux CI to use the upstream sccache 0.18.0 release binaries.

sccache 0.18.0 includes the CUDA 13.3 nvcc dry-run parsing fix from mozilla/sccache#2722, so the local backport and source build are no longer needed.

Done with ChatGPT Codex

This:

  • downloads upstream sccache 0.18.0 binaries for Linux CI
  • keeps sccache-dist on x86_64/aarch64, where upstream publishes it
  • preserves the riscv64gc archive mapping and omits sccache-dist there
  • removes the local sccache CUDA 13.3 patch
  • removes the now-unused Dockerfile patch-directory copies

Test plan

  • Verified the branch is one commit ahead of current main with no divergence.
  • Verified upstream sccache 0.18.0 publishes the Linux archives used here.
  • Verified the 0.18.0 release notes include the CUDA 13.3 nvcc dry-run parsing fix (Fix nvcc dryrun parsing for CUDA 13.3 mozilla/sccache#2722), also contains several other CUDA fixes

@Skylion007
Skylion007 requested review from a team and jeffdaily as code owners September 22, 2026 17:46
@pytorch-bot

pytorch-bot Bot commented Sep 22, 2026 •

Copy link
Copy Markdown

PR Status: Approved 🚀

Please fix all CI failures and trigger merge by commenting "@pytorchbot merge".

🔗 Helpful Links

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

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

❌ 3 New Failures, 5 Unrelated Failures, 3 Unclassified Failures

As of commit b790157 with merge base bf07fd9 (image):

NEW FAILURES - The following jobs have failed:

  • inductor / inductor-build-cuda134 / build (gh)
    torchao

    AI verdict: AI verdict: related

    The suspect commit removed the patched from-source sccache 0.16.0 build, which carried a backported fix for nvcc 13.3+ dryrun parsing, and replaced it with the prebuilt sccache 0.18.0 release. In the rebuilt CUDA 13.4 image, the torchao CUDA extension build now fails with sccache's "Missing "cubin" file output" error, which is the bug the removed patch fixed. Trunk and the merge base on the old image are green.

    Full reasoning on HUD →

  • torchtitan-test / torchtitan-x-pytorch-build / build (gh)
    torchao

    AI verdict: AI verdict: related

    The suspect commit swaps CI's patched from-source sccache 0.16.0 build (which carried an nvcc dry-run parsing fix) for the prebuilt sccache 0.18.0 binary. In the failed job, every nvcc compile of torchao's CUDA sources dies inside sccache with "Failed to generate compile commands / Missing "cubin" file output". That is the same failure the removed patch was there to prevent, and the build is green at the merge base and on current trunk.

    Full reasoning on HUD →

  • trunk / linux-noble-rocm-py3.11-mi350 / test (distributed, 3, 3, amd-dpx-linux.rocm.gpu.gfx950.2) (gh)
    test/distributed/test_c10d_nccl4py.py::TestNCCL4PyBackendCollectives::test_all_gather_into_tensor

    AI verdict: AI verdict: probably not related

    On ROCm, the nccl4py test fails because nccl4py tries to load libnccl.so.2, and ROCm images only ship RCCL. The merge base already fails with the same error. The suspect commit only bumps sccache to 0.18.0 and removes a sccache patch, which has nothing to do with loading NCCL libraries.

    Full reasoning on HUD →

UNCLASSIFIED FAILURES - DrCI could not classify the following jobs because the workflow did not run on the merge base. The failures may be pre-existing on trunk or introduced by this PR:

  • pull / linux-jammy-aarch64-py3.11 / build (gh) (this job did not run on the merge base, so DrCI cannot tell whether the failure is pre-existing)
    lf-l-arm64g4-16-62

    AI verdict: AI verdict: probably related

    The job failed because Kubernetes could not pull its CI image: the log shows ErrImagePull/ImagePullBackOff for ci-image:pytorch-linux-jammy-aarch64-py3.11-gcc13-5d98968…, and that tag only exists because this PR changed files under .ci/docker. The PR's own docker-builds run never built that image name, so the image was missing. Trunk uses an existing image and its runs passed.

    Full reasoning on HUD →

  • pull / linux-jammy-cuda13.2-cudnn9-py3.11-clang20 / build (gh) (this job did not run on the merge base, so DrCI cannot tell whether the failure is pre-existing)
    lf-l-x86iavx512-8-64

    AI verdict: AI verdict: probably related

    The build fails with ErrImagePull because the image tag it needs exists only because of this PR. The commit changes .ci/docker, which gives a new tag hash (5d98968…). The PR is stale against main, so its docker-builds run built the py3.10-clang20 image and never built the py3.11-clang20 image with that hash. Trunk uses an existing image (hash 7ab0492…) and passes.

    Full reasoning on HUD →

  • pull / linux-jammy-py3.11-gcc11 / test (docs_test, 1, 1, lf-l-x86iavx512-8-64) (gh) (this job did not run on the merge base, so DrCI cannot tell whether the failure is pre-existing)
    ModuleNotFoundError: No module named 'matplotlib'

    AI verdict: AI verdict: probably not related

    The docs_test failure (No module named 'matplotlib') comes from the PR's stale merge base, not from the sccache change. The run used the workflow from the merge ref (newer main), where docs_test runs on the py3.11-clang21 image. The checked-out code was the old PR head, and in that old build.sh the py3.11-clang21 image does not set DOCS=yes, so the docs requirements (including matplotlib) are never installed.

    Full reasoning on HUD →

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.

@drisspg drisspg added the triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module label Sep 22, 2026
@malfet

malfet commented Sep 23, 2026

Copy link
Copy Markdown
Collaborator

@pytorchbot merge -i

@pytorch-bot pytorch-bot Bot added the ciflow/trunk Trigger trunk jobs on your pull request label Sep 23, 2026
@pytorchmergebot

Copy link
Copy Markdown
Collaborator

Merge started

Your change will be merged while ignoring the following 0 checks:

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

@pytorchmergebot

Copy link
Copy Markdown
Collaborator

Merge failed

Reason: 1 jobs have failed, first few of them are: trunk / linux-jammy-cuda13.2-py3.10-gcc11 / test (pr_time_benchmarks, 1, 1, mt-l-bx86iavx512-94-344-t4-8)

Details for Dev Infra team Raised by workflow job

@Skylion007

Copy link
Copy Markdown
Collaborator Author

@pytorchbot merge -i

@pytorchmergebot

Copy link
Copy Markdown
Collaborator

Merge started

Your change will be merged while ignoring the following 3 checks: pull / dynamo-cpython-test / test (dynamo_cpython, 1, 1, mt-l-x86iavx512-8-64), trunk / dynamo-unittest / dynamo-test (3.13) / test (dynamo_wrapped, 2, 7, mt-l-x86iavx512-8-64), trunk / linux-jammy-cuda13.2-py3.10-gcc11 / test (pr_time_benchmarks, 1, 1, mt-l-bx86iavx512-94-344-t4-8)

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

@Skylion007

Copy link
Copy Markdown
Collaborator Author

@pytorchbot merge -f "build successful, remaining tests are on build straggler"

@pytorchmergebot

Copy link
Copy Markdown
Collaborator

The merge job was canceled or timed out. This most often happen if two merge requests were issued for the same PR, or if merge job was waiting for more than 6 hours for tests to finish. In later case, please do not hesitate to reissue the merge command
For more information see pytorch-bot wiki.

@pytorchmergebot

Copy link
Copy Markdown
Collaborator

Merge started

Your change will be merged immediately since you used the force (-f) flag, bypassing any CI checks (ETA: 1-5 minutes). Please use -f as last resort and instead consider -i/--ignore-current to continue the merge ignoring current failures. This will allow currently pending tests to finish and report signal before the merge.

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

@jansel

jansel commented Sep 24, 2026

Copy link
Copy Markdown
Contributor

@pytorchbot revert -m "Breaks every trunk build that compiles torchao: inductor-build-cuda134 and torchtitan-x-pytorch-build have been red on all 22 commits since this landed" -c nosignal

@jansel

jansel commented Sep 24, 2026

Copy link
Copy Markdown
Contributor

AI generated with greendog:

Reverting #198237 (commit 2954159). Details:

What broke. Every build job with BUILD_ADDITIONAL_PACKAGES: ... torchao now fails while pip-building torchao's mxfp8 CUDA kernels (torchao/csrc/cuda/mx_kernels/*.cu):

[1/4] sccache /usr/local/cuda/bin/nvcc ... -t=0 -std=c++20 ... --ftemplate-backtrace-limit=0
-gencode=arch=compute_100,code=sm_100 -gencode=arch=compute_120,code=compute_120 ...
sccache: encountered fatal error
sccache: error: Failed to generate compile commands
ERROR: Failed building wheel for torchao

Jobs, per HUD since 2954159 (first red commit is this one):

  • inductor / inductor-build-cuda134 / build: red 22/22 commits
  • torchtitan-test / torchtitan-x-pytorch-build / build: red 22/22 commits
  • inductor / inductor-build and inductor-build-cuda132: red in runs of 4-17 commits, then green (flaky, not deterministic)
  • inductor-periodic builds and inductor-perf-nightly-h100 / build (b58511b, 2026-09-23 23:48 UTC), so the compilers dashboard is missing today's H100 point
  • Builds that don't compile torchao (pull, ROCm, XPU, A100/B200 perf) are fine.

Example log: https://github.com/pytorch/pytorch/actions/runs/35953266170/job/107486197513

Why this PR. It replaced the from-source sccache 0.16.0 build with the prebuilt 0.18.0 binary and deleted .ci/docker/common/patches/sccache-nvcc-13.3-dryrun-parsing.patch. The failure is in exactly that code path (sccache generating compile commands from an nvcc dryrun), and torchao's nvcc invocation uses flags the upstream parser evidently does not handle (-t=0, --ftemplate-backtrace-limit=0, -gencode=...,code=compute_120).

Why it wasn't caught. The PR was merged with @pytorchbot merge -f before the build stragglers finished, and the torchao-building jobs live in the inductor and torchtitan-test workflows, which don't run on pull without a ciflow label.

For the reland. Either carry the dryrun-parsing patch forward onto 0.18.0 (or pick up an upstream release that includes the fix), or have install_torchao in .ci/pytorch/common_utils.sh build with sccache off the PATH. Please run with ciflow/inductor and ciflow/torchtitan so the affected builds actually execute before merging.

@pytorchmergebot

Copy link
Copy Markdown
Collaborator

@pytorchbot successfully started a revert job. Check the current status here.
Questions? Feedback? Please reach out to the PyTorch DevX Team

pytorchmergebot added a commit that referenced this pull request Sep 24, 2026
This reverts commit 2954159.

Reverted #198237 on behalf of https://github.com/jansel due to Breaks every trunk build that compiles torchao: inductor-build-cuda134 and torchtitan-x-pytorch-build have been red on all 22 commits since this landed ([comment](#198237 (comment)))
@pytorchmergebot

Copy link
Copy Markdown
Collaborator

@Skylion007 your PR has been successfully reverted.

@pytorchmergebot pytorchmergebot added Reverted ci-no-td Do not run TD on this PR labels Sep 24, 2026
@Skylion007

Copy link
Copy Markdown
Collaborator Author

Sigh likely related to: mozilla/sccache#2809

@jansel jansel added ciflow/inductor ciflow/torchtitan Run TorchTitan integration tests labels Sep 25, 2026
@janeyx99 janeyx99 added the in progress PR is being worked on by the author, until the automated review accepts it label Nov 10, 2026
@jeffdaily
jeffdaily removed their request for review November 17, 2026 21:27

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci-no-td Do not run TD on this PR ciflow/docker ciflow/inductor ciflow/torchtitan Run TorchTitan integration tests ciflow/trunk Trigger trunk jobs on your pull request in progress PR is being worked on by the author, until the automated review accepts it Merged open source Reverted topic: not user facing topic category triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants