Skip to content

test(update): build pnpm store fixtures on native canonical paths - #8672

Merged
lidge-jun merged 1 commit into
devfrom
fix/dev-red2-pnpm-update-windows
Nov 13, 2026
Merged

lidge-jun merged 1 commit into
devfrom
fix/dev-red2-pnpm-update-windows

Conversation

@lidge-jun

@lidge-jun lidge-jun commented Nov 13, 2026 •

Copy link
Copy Markdown
Owner

Summary

Dev batch run 43369456647 failed on Windows in three pnpm/update files, right after #8331 (6788d42242, "verify pnpm global-store installs against the store pnpm names"):

The fixture roots were built with realpathSync, which on the Windows runner keeps the 8.3 short name (C:\Users\RUNNER~1\…). #8331's store proof compares against realpathSync.native (runneradmin) and deliberately refuses a noncanonical spelling. So the product refused, correctly, before the tests reached their own assertions.

The fixture roots now use realpathSync.native. Product code is untouched, and #8331's owner rules hold: the store is still proven by pnpm's own store path --dir=<home> answer, a short-name or otherwise noncanonical spelling is still refused (fail-closed), and the default-store cases keep their assertions. The store-confinement, link and junction assertions are unchanged.

Verification

  • Windows short names simulated on Linux: before, the default-store case fails with "pnpm home is not a canonical path" (0 pass, 1 fail). After, the three files pass under the same injection, 148 pass, 0 fail.
  • Focused run of the three files plus the guard file: 150 pass, 2 skip (the parser-based guard lint cannot start under Bun on POSIX), 0 fail. bun run test:changed: 148 pass, 0 fail. bun run typecheck: exit 0.
  • NOT RUN: a native Windows runner (next dev batch), and the full suite.

Checklist

  • Scope stays focused and avoids unrelated cleanup.
  • Docs or release notes were updated when needed.
  • Security-sensitive changes were reviewed for secrets, auth, and unsafe defaults.

Summary by CodeRabbit

  • Tests
    • Updated temporary test paths to use native path canonicalization across pnpm update and dependency ownership tests.

@lidge-jun
lidge-jun requested a review from Ingwannu as a code owner November 13, 2026 07:56
@github-actions

Copy link
Copy Markdown
Contributor

✅ Deterministic PR hygiene checks passed.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 13, 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-13T07:57:40.749355Z b2741fd 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.

@github-actions github-actions Bot added the chore Maintenance, CI, tests, refactors, or build changes (not a user-facing bug or feature). label Nov 13, 2026
@coderabbitai

coderabbitai Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

Three update test files now use realpathSync.native to canonicalize temporary paths. The existing test cases and assertions remain unchanged.

Changes: Update test path canonicalization

Layer / File(s) Summary
Canonicalize temporary test paths
tests/update/update-pnpm-global-store.test.ts, tests/update/update-pnpm.test.ts, tests/update/update-tree-ownership.test.ts
Test fixtures use realpathSync.native instead of realpathSync to resolve temporary directories and pnpm home paths.

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

Change: Other

Merge Risk: Minimal · up to b2741

This is a test-only fixture change with no runtime impact on users. It carries no actionable merge risk.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names the main change: test fixtures for pnpm store paths now build on native canonical paths (realpathSync.native). The raw summary and objectives confirm that all three test files switch f…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the main change: test fixtures for pnpm store paths now build on native canonical paths (realpathSync.native). The raw summary and objectives confirm that all three test files switch from realpathSync to realpathSync.native for fixture roots. The title is specific, uses the conventional test(update) prefix, and does not mention unrelated work. It is 65 characters, which is within a reasonable length.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 3762722 and b2741fd.

Files selected for processing: 3

  • tests/update/update-pnpm-global-store.test.ts
  • tests/update/update-pnpm.test.ts
  • tests/update/update-tree-ownership.test.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 4 remain after this review.

@lidge-jun

Copy link
Copy Markdown
Owner Author

Maintainer judgment (dev integration, MAINTAINERS.md maintainer-integration exception): merging without a second maintainer approval, as part of the DEV-RED repair for dev batch run 43369456647 (windows 1/14, 13/14, 14/14).

  • Exact head: b2741fdbf74c829722863042822a9b95152f565d. Every required PR check on this head passed.
  • Fresh independent review on this exact head (gpt-6.1-terra, high): VERDICT: PASS, no findings. It confirmed RUNNER~1 vs runneradmin noncanonical-path refusals in the CI logs. Its fresh runs: the three pnpm/update files 148 pass / 0 fail; typecheck, layout, ratchet, structure:check and privacy:scan pass.
  • Classification: test-assumption bug exposed by fix(update): verify pnpm global-store installs against the store pnpm names #8331 (fixture roots not natively canonical). Test-only.
  • fix(update): verify pnpm global-store installs against the store pnpm names #8331's owner rules are kept unchanged in product code: the store is proven by pnpm's own store path --dir=<home> answer, noncanonical or unproven cases still fail closed, and default-store behavior is unchanged.
  • No outstanding change requests. Not yet verified on a native Windows runner; the maintainer's next dev batch covers it.

@lidge-jun
lidge-jun merged commit 57f229f into dev Nov 13, 2026
31 checks passed
@lidge-jun
lidge-jun deleted the fix/dev-red2-pnpm-update-windows branch November 13, 2026 08:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore Maintenance, CI, tests, refactors, or build changes (not a user-facing bug or feature).

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant