Uh oh!
There was an error while loading. Please reload this page.
Fix CGO/CJS workflow cache key collision causing widespread job failures - #51342
Merged
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
CopilotAI
changed the title
[WIP] Fix workflow failure on main for fuzz jobFix CGO/CJS workflow cache key collision causing widespread job failuresAug 8, 2026
Contributor
PR Triage
Fixes a systemic CI-breaking cache key collision affecting nearly every CGO/CJS job. Small, isolated 2-file diff. CI: unknown/no checks reported yet — recommend expedited human review given blast radius.
|
pelikhan
approved these changes
Aug 8, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Namespaces checkout caches by workflow, preventing CGO/CJS cache reservation collisions that caused issue #51321.
Changes:
- Adds
cgoandcjsidentifiers to all matching cache save/restore keys. - Removes all uses of the previously shared key.
Show a summary per file
| File | Description |
|---|---|
.github/workflows/cgo.yml | Namespaces CGO checkout cache keys. |
.github/workflows/cjs.yml | Namespaces CJS checkout cache keys. |
Review details
Tip
Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
- Files reviewed: 2/2 changed files
- Comments generated: 0
- Review effort level: Balanced
Contributor
🎉 This pull request is included in a new release. Release: |
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 freeto 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.
The
CGOworkflow was failing across nearly every job (build, lint, fuzz, bench, etc.) withFailed to restore cache entry. Exiting as fail-on-cache-miss is set.Root Cause
cgo.ymlandcjs.ymlboth used the identicalactions/cachekeycheckout-${{ github.sha }}for their checkout-cache pattern (save the checkout once, restore it in every downstream job).Unable to reserve cache with key... another job may be creating this cache, leaving the other workflow's downstream jobs unable to restore it and failing hard.Changes
cgo.yml:checkout-${{ github.sha }}→checkout-cgo-${{ github.sha }}(all save/restore steps)cjs.yml:checkout-${{ github.sha }}→checkout-cjs-${{ github.sha }}(all save/restore steps)