Skip to content

fix(ci): stop hardcoding the vendored yarn version in docker tests - #1255

Merged
Brooooooklyn merged 1 commit into
mainfrom
cursor/fix-ci-yarn-path-f703
Nov 24, 2026
Merged

Brooooooklyn merged 1 commit into
mainfrom
cursor/fix-ci-yarn-path-f703

Conversation

@Brooooooklyn

Copy link
Copy Markdown
Member

What failed on main

The latest main CI run (#45253122518, after #1254) failed. The same jobs also failed on the previous main run 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):

  • Test bindings on Linux-x64-gnu – node@22 / node@24
  • Test bindings on x86_64-unknown-linux-musl – node@22 / node@24
  • Test bindings on aarch64-unknown-linux-gnu – node@22 / node@24
  • Test bindings on aarch64-unknown-linux-musl – node@22 / node@24
  • Test bindings on armv7-unknown-linux-gnueabihf – node@22

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:

node .yarn/releases/yarn-4.18.1.cjs test -s

Those slim/alpine images do not have Yarn on PATH, so they run the checked-in binary via node. After the bump that file is gone, and every job failed with:

Error: Cannot find module '/build/.yarn/releases/yarn-4.18.1.cjs'

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 (via sh -c so the glob expands). That always picks up the current vendored Yarn binary without pinning a version in CI.

Open in Web Open in Cursor 

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>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-24T09:56:39.907378Z 38297b4 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@Brooooooklyn
Brooooooklyn merged commit b6aa33b into main Nov 24, 2026
18 checks passed
@Brooooooklyn
Brooooooklyn deleted the cursor/fix-ci-yarn-path-f703 branch November 24, 2026 09:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants