Skip to content

CI: cache SwiftShader prebuilt to skip per-run from-source build (#20203)#20203

Merged
1 commit merged into
mainfrom
unknown repository
Jul 4, 2026
Merged

CI: cache SwiftShader prebuilt to skip per-run from-source build (#20203)#20203
1 commit merged into
mainfrom
unknown repository

Conversation

@ghost

@ghost ghost commented Jun 10, 2026

Copy link
Copy Markdown

Summary:

Try a pinned-rev SwiftShader prebuilt from gha-artifacts before building from source (mirrors the torch-wheel download-or-build in .ci/scripts/utils.sh); on a cache miss, fall back to the existing from-source build. The key embeds SWIFTSHADER_REV, so a rev bump auto-invalidates (re-seed S3 once per bump). Follow-up to the Dawn CI diff, addressing review feedback to cache the build.

Reviewed By: SS-JIA

Differential Revision: D108185797

@pytorch-bot

pytorch-bot Bot commented Jun 10, 2026

Copy link
Copy Markdown

🔗 Helpful Links

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

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

❌ 236 Cancelled Jobs, 3 Unrelated Failures, 36 Unclassified Failures

As of commit 69653b8 with merge base 005ae03 (image):

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:

CANCELLED JOBS - The following jobs were cancelled. Please retry:

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.

@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 Jun 10, 2026
@meta-codesync

meta-codesync Bot commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

@JulianCloudNTH has exported this pull request. If you are a Meta employee, you can view the originating Diff in D108185797.

@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.

@SS-JIA SS-JIA left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review automatically exported from Phabricator review in Meta.

)

Summary:

Try a pinned-rev SwiftShader prebuilt from gha-artifacts before building from source (mirrors the torch-wheel download-or-build in .ci/scripts/utils.sh); on a cache miss, fall back to the existing from-source build. The key embeds SWIFTSHADER_REV, so a rev bump auto-invalidates (re-seed S3 once per bump). Follow-up to the Dawn CI diff, addressing review feedback to cache the build.

Reviewed By: SS-JIA

Differential Revision: D108185797
@meta-codesync meta-codesync Bot changed the title CI: cache SwiftShader prebuilt to skip per-run from-source build CI: cache SwiftShader prebuilt to skip per-run from-source build (#20203) Jul 4, 2026
@ghost ghost force-pushed the export-D108185797 branch from 69653b8 to c77bec7 Compare July 4, 2026 22:12
@ghost ghost merged commit 4af91c3 into pytorch:main Jul 4, 2026
323 of 326 checks passed
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants