Repository navigation
fix(ci): stop hardcoding the vendored yarn version in docker tests - #1255
Merged
Merged
Conversation
Yarn 4.19.0 updated .yarn/releases and yarnPath, but Linux docker test jobs still invoked the removed yarn-4.18.1.cjs path. Co-authored-by: LongYinan <github@lyn.one>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
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.
What failed on
mainThe latest
mainCI run (#45253122518, after #1254) failed. The same jobs also failed on the previousmainrun after the Yarn 4.19.0 bump (#1251). Builds, lint, benches, Windows/macOS tests, and WASI tests were green.Failing jobs (all Linux docker binding tests):
Root cause
#1251 updated Yarn to 4.19.0 (
.yarn/releases/yarn-4.19.0.cjs,yarnPath,packageManager), but the docker-based Linux test jobs still invoked the old vendored binary:Those slim/alpine images do not have Yarn on
PATH, so they run the checked-in binary vianode. After the bump that file is gone, and every job failed with:Renovate does not rewrite hardcoded paths in the workflow, so this would keep breaking on the next Yarn bump.
Fix
Point the docker test commands at
.yarn/releases/yarn-*.cjs(viash -cso the glob expands). That always picks up the current vendored Yarn binary without pinning a version in CI.