Repository navigation
fix(ci): reuse Bun executable caches without PR writes - #3848
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Bun setup currently disables both cache restoration and automatic saving, so jobs without the pinned executable must download it again and can fail before validation starts when the release download returns 504. Restore the pinned Bun executable before setup and save it separately under the existing trust rules, reducing unnecessary downloads while keeping PR runs read-only.
Fixes #3830
Type and Areas
Type: bug fix / CI
Areas: GitHub Actions, Desktop and Linux packaging
Motivation / Impact
mainpopulate missing entries; reusable Nightly/Linux producers retain theircache_writegate and reject PR events. Desktop release/manual producers may save missing entries.setup-bunautomatic caching disabled. It still checks the restored executable and installs the pinned1.3.14version on a miss.No direct product behavior change. Cold-cache downloads can still fail if the upstream download service remains unavailable.
Verification
AI-assisted; targeted local checks completed:
pnpm run check:github-config: YAML validation passed; 58 tests passed, 1 skipped because localpwshis unavailable. New coverage checks platform/version/CPU isolation, actual workflow save conditions, PR write rejection, cache misses/hits, CLI outputs, and older-source compatibility.pnpm run check:repo-hygiene: passed.git diff --check: passed.Actual GitHub cache restore/save and native runner execution are left to CI. Remote Workspace, Remote Control, Peer Device Mode and Detached Dispatch runtime scenarios were not exercised; this change only affects CI tool preparation.
Reviewer Notes
The original PR cache-write prohibition remains enforced rather than removing
no-cache: true. This is download-failure mitigation, not a guarantee against upstream 504s. No cache contents or user data are removed.Checklist