Skip to content

ci: fall back to the classic virtual store for the windows Rust test install - #13010

Closed
eagarwal-notion wants to merge 1 commit into
pnpm:mainfrom
eagarwal-notion:fix/windows-rust-ci-install
Closed

eagarwal-notion wants to merge 1 commit into
pnpm:mainfrom
eagarwal-notion:fix/windows-rust-ci-install

Conversation

@eagarwal-notion

@eagarwal-notion eagarwal-notion commented Jul 14, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Rust CI / Test / windows fails on every run — on main and on every PR — in its "Install dependencies" step, which installs the repo's dependencies with the released packageManager binary. The repo dogfoods enableGlobalVirtualStore: true, and the global virtual store's Windows symlink layout is still being stabilized in-tree, so each fix only reaches this step one alpha release later. Latest example: [email protected] fixed the mixed-separator paths (#12976) but still fails with Failed to create symlink … The directory name is invalid (os error 267); the fix for that (#12991) is merged but unreleased, so Windows Rust CI stays red until the next alpha ships.

This PR overrides enableGlobalVirtualStore to false for the Windows leg of that one install step (via the PNPM_CONFIG_ENABLE_GLOBAL_VIRTUAL_STORE env override, which takes precedence over pnpm-workspace.yaml), so the job uses the classic per-project virtual store and is no longer coupled to the release lag. Linux and macOS keep dogfooding the global virtual store. Verified against the released 12.0.0-alpha.10 binary that the override falls back to the classic node_modules/.pnpm layout.

Related to #12991.

Squash Commit Body

The Rust test job's dependency install runs with the released
packageManager, so an in-tree fix to the global virtual store's Windows
symlink layout only reaches the step one alpha release later —
pnpm/pnpm#12991 is the latest example: merged, but every Windows run
keeps failing on 'Failed to create symlink ... The directory name is
invalid (os error 267)' until it is published. Override
enableGlobalVirtualStore to false for the Windows leg of the install so
the job is not coupled to that release lag; Linux and macOS keep
dogfooding the global virtual store. Verified against the released
12.0.0-alpha.10 binary that the env override falls back to the classic
node_modules/.pnpm layout.

Checklist

  • The change is implemented in both the TypeScript CLI and the Rust
    pnpm/ port, or the description notes what still needs porting. (CI-only
    change; no product code.)

Written by an agent (Claude Code, claude-fable-5).


View with Codesmith Autofix with Codesmith
Need help on this PR? Tag /codesmith with what you need. Autofix is disabled.

Summary by CodeRabbit

  • Chores
    • Improved Windows CI dependency installation reliability by using a compatible virtual store configuration.
    • Added documentation explaining the platform-specific installation behavior.

…install

The Rust test job's dependency install runs with the released
packageManager, so an in-tree fix to the global virtual store's Windows
symlink layout only reaches the step one alpha release later —
pnpm#12991 is the latest example: merged, but every Windows run
keeps failing on 'Failed to create symlink ... The directory name is
invalid (os error 267)' until it is published. Override
enableGlobalVirtualStore to false for the Windows leg of the install so
the job is not coupled to that release lag; Linux and macOS keep
dogfooding the global virtual store. Verified against the released
12.0.0-alpha.10 binary that the env override falls back to the classic
node_modules/.pnpm layout.

Co-Authored-By: Claude Fable 5 <[email protected]>
@eagarwal-notion
eagarwal-notion requested a review from zkochan as a code owner July 14, 2026 22:35
@qodo-code-review

Copy link
Copy Markdown

Qodo reviews are paused for this user.

Troubleshooting steps vary by plan Learn more →

On a Teams plan?
Reviews resume once this user has a paid seat and their Git account is linked in Qodo.
Link Git account →

Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center?
These require an Enterprise plan - Contact us
Contact us →

@coderabbitai

coderabbitai Bot commented Jul 14, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: ca58c224-907f-4594-8bd6-010bce3eb0fa

📥 Commits

Reviewing files that changed from the base of the PR and between 30a59d0 and 18600c6.

📒 Files selected for processing (1)
  • .github/workflows/pacquet-ci.yml

📝 Walkthrough

Walkthrough

The Rust CI dependency installation step now sets pnpm’s global virtual store configuration per operating system, disabling it on Windows and enabling it on other runners. Comments document the Windows-specific symlink layout constraint.

Changes

CI install configuration

Layer / File(s) Summary
Configure OS-specific install environment
.github/workflows/pacquet-ci.yml
The Rust CI install step sets PNPM_CONFIG_ENABLE_GLOBAL_VIRTUAL_STORE to false on Windows and true on other operating systems, with comments explaining the fallback.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Possibly related PRs

  • pnpm/pnpm#11657: Updates GitHub Actions pnpm installation behavior for the related install workflow.
  • pnpm/pnpm#12494: Addresses stale hoisted symlinks when toggling the global virtual store setting.

Suggested labels: product: pacquet

Suggested reviewers: zkochan

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@greptile-apps

greptile-apps Bot commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5

Safe to merge — a minimal, well-scoped CI workaround with no impact on product code or other workflow jobs.

The change adds one env var to one workflow step, with a clear comment. The GitHub Actions ternary expression is correct, the override is step-scoped, and the PR author verified the behaviour against the affected binary.

No files require special attention.

Reviews (1): Last reviewed commit: "ci: fall back to the classic virtual sto..." | Re-trigger Greptile

@zkochan

zkochan commented Jul 15, 2026

Copy link
Copy Markdown
Member

This was fixed

@zkochan zkochan closed this Jul 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

product: pacquet reviewed: coderabbit CodeRabbit submitted an approving review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants