Skip to content

Bump PyTorch and TorchAO pins for dev20261122 - #25596

Open
pytorchupdatebot wants to merge 1 commit into
mainfrom
automated/pytorch-pin-bump-dev20261122
Open

pytorchupdatebot wants to merge 1 commit into
mainfrom
automated/pytorch-pin-bump-dev20261122

Conversation

@pytorchupdatebot

Copy link
Copy Markdown
Collaborator

Summary

Automated weekly PyTorch and TorchAO pin bump.

  • Updates NIGHTLY_VERSION in torch_pin.py to dev20261122
  • Updates .ci/docker/ci_commit_pins/pytorch.txt to the corresponding nightly commit hash
  • Syncs c10 headers from PyTorch into runtime/core/portable_type/c10/
  • Updates the TorchAO nightly pins and third-party/ao to the newest build available for every supported CUDA channel

This PR was created automatically. If CI fails, Claude will attempt to fix issues (up to 3 attempts). If CI still fails, human review will be requested.

cc @JacobSzwejbka

@pytorch-bot

pytorch-bot Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

🔗 Helpful Links

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

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

❌ 237 New Failures, 8 Unrelated Failures, 114 Unclassified Failures

As of commit 57cf57f with merge base fce3a64 (image):

NEW FAILURES - The following jobs have failed:

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:

FLAKY - The following jobs failed but were likely due to flakiness present on trunk:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@github-actions github-actions Bot added the ciflow/docker Trigger docker-builds to rebuild and push the CI images for this PR label Nov 23, 2026
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Nov 23, 2026
@github-actions

Copy link
Copy Markdown

This PR needs a release notes: label

If your change should be included in the release notes (i.e. would users of this library care about this change?), please use a label starting with release notes:. This helps us keep track and include your important work in the next release notes.

To add a label, you can comment to pytorchbot, for example
@pytorchbot label "release notes: none"

For more information, see
https://github.com/pytorch/pytorch/wiki/PyTorch-AutoLabel-Bot#why-categorize-for-release-notes-and-how-does-it-work.

@pytorch-bot
pytorch-bot Bot had a problem deploying to upload-benchmark-results November 23, 2026 09:24 Failure
@pytorchupdatebot

Copy link
Copy Markdown
Collaborator Author

@claude [ci-fix-attempt 1/3]

The trunk CI workflow has failed on this automated PyTorch pin bump PR.
Failed run: https://github.com/pytorch/executorch/actions/runs/45144295028

Please:

  1. Read the Dr. CI comment on this PR for a summary of which jobs failed and whether they are flaky. Ignore failures marked as FLAKY.
  2. Use your CI tools to download the failure logs for the non-flaky failing jobs
  3. Identify the root cause of the failure
  4. If this is a build or test failure caused by PyTorch API changes, fix the ExecuTorch code to be compatible with the new PyTorch version
  5. If this is a c10 header sync issue, the headers have already been synced by the pin bump script — the issue is likely in ExecuTorch code that uses those headers
  6. Run lintrunner -a on any files you change
  7. Push your fix as a new commit to this PR branch

Important constraints:

  • Do NOT modify torch_pin.py or .ci/docker/ci_commit_pins/pytorch.txt — the pin itself is correct
  • Do NOT modify files under runtime/core/portable_type/c10/ unless the sync introduced a new API that ExecuTorch code needs to adapt to
  • Focus on fixing ExecuTorch code to be compatible with the new PyTorch APIs
  • If this is a major BC-breaking change that requires architectural discussion, say so clearly and stop — do not attempt a fix

@claude

claude Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Claude finished @pytorchupdatebot's task in 2m 12s —— View job


CI fix attempt 1/3: root cause found, but no fix pushed

The trunk jobs fail because the c10 sync pulled in an updated complex.h that includes a new header, torch/headeronly/util/complex_math.h, and the sync script never copied that file. I couldn't add it myself because all network access was blocked here, so this needs someone with network access.

  • Download failure logs for the non-flaky failing jobs
  • Find the root cause
  • Fix and push (blocked)
Details

Root cause

Every log I checked fails with the same error: test-demo-backend-delegation (cmake), test-llama-runner-linux (fp32, portable, arm64), unittest-nxp-neutron-recipe and Test Native Engines / native-cpu.

runtime/core/portable_type/c10/torch/headeronly/util/complex.h:730:10: fatal error:
  torch/headeronly/util/complex_math.h: No such file or directory

Upstream PyTorch (65e101a3cc) moved the complex code out of c10/util/complex.h into torch/headeronly/util/complex.h. The new file includes <torch/headeronly/util/complex_math.h> instead of <c10/util/complex_math.h>.

sync_directory() in .github/scripts/update_pytorch_pin.py only updates files that already exist in ExecuTorch. So the edited complex.h was synced, but the new complex_math.h was not added. This is an incomplete header sync, not a PyTorch API break in ExecuTorch code, so it doesn't need an architectural discussion.

Why I didn't push a fix

The file must be an exact copy of upstream, because check-c10-sync compares the two directories file by file. I couldn't fetch it: curl, gh api, git fetch and WebFetch were all denied in this run. Writing the header from memory or from the old c10/util/complex_math.h would be a guess. It would also likely fail check-c10-sync, so I didn't.

Fix to apply (run from the repo root, with network access)

PIN=$(cat .ci/docker/ci_commit_pins/pytorch.txt)
curl -fsSL -o runtime/core/portable_type/c10/torch/headeronly/util/complex_math.h \
  https://raw.githubusercontent.com/pytorch/pytorch/$PIN/torch/headeronly/util/complex_math.h
# Check whether upstream still has c10/util/complex_math.h:
curl -sfI https://raw.githubusercontent.com/pytorch/pytorch/$PIN/c10/util/complex_math.h
  • The Buck target torch/headeronly/targets.bzl uses glob(["**/*.h"]), so it picks up the new file without changes.
  • If upstream deleted c10/util/complex_math.h (the new c10/util/complex.h no longer includes it), it can also be removed here:
    • delete runtime/core/portable_type/c10/c10/util/complex_math.h;
    • remove "util/complex_math.h" from runtime/core/portable_type/c10/c10/targets.bzl:116;
    • in .ci/scripts/wheel/test_cpp_sdk.py:1300, change c10/util/complex_math.h to torch/headeronly/util/complex_math.h. That header also refuses to be included on its own.

To stop this recurring

sync_directory() should also add new upstream files that the synced headers include, not only refresh existing ones. Otherwise every upstream header move will break the pin bump the same way.

Other failures

The wheel-build jobs fail with ModuleNotFoundError: No module named 'setuptools'. These are listed as unclassified and look like a separate environment issue. I didn't look into them here.

This branch had an error being deployed

2 failed deployments
upload-benchmark-results — 57cf57f8 Deployed Nov 23, 2026 by pytorch-bot[bot] via upload-benchmark-results #23142
cadence — 57cf57f8 Deployed Nov 23, 2026 by pytorchupdatebot via hifi-build / hifi4 #40307
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci/pytorch-pin-bump ci-no-td ciflow/cuda ciflow/docker Trigger docker-builds to rebuild and push the CI images for this PR CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants