Skip to content

test(vscode): pin repo packageManager in isolated E2E recovery sandboxes - #147

Merged
fi3ework merged 1 commit into
mainfrom
fix/e2e-recovery-corepack
Nov 30, 2026
Merged

fi3ework merged 1 commit into
mainfrom
fix/e2e-recovery-corepack

Conversation

@fi3ework

@fi3ework fi3ework commented Nov 30, 2026 •

Copy link
Copy Markdown
Member

Summary

Dependency-recovery E2E suites copy a fixture into the OS tmpdir, outside the repository tree. Under Corepack (rstack-ecosystem-ci), pnpm walks upward from cwd for packageManager; finding none, it queries https://registry.npmjs.org/pnpm/latest and fails on HTTP 429 rate limits (or runs a different pnpm version than setupFixtures.mjs).

 /tmp/<sandbox-root>/
+├── package.json              # { "packageManager": "<repo root packageManager>" }
 └── <workspace>/
     ├── package.json          # untouched fixture manifest
     ├── pnpm-workspace.yaml
     └── pnpm-lock.yaml
  • packages/vscode/e2e/pnpmInstall.ts: adds writeRepoPackageManager(sandboxRoot, extensionDevelopmentPath) to write the repository root's packageManager into a sandbox parent without adding node_modules.
  • packages/vscode/e2e/rstest/runTest.ts & packages/vscode/e2e/lint/runTest.ts: call writeRepoPackageManager when staging the isolated recovery sandboxes.

Evidence

  • Before: rstack-ecosystem-ci run 45981827368 (job 140447384374) failed in Rstest dependency polling recovery > recovers after pnpm install without a restart command:
    Error: Server answered with HTTP 429 when performing the request to https://registry.npmjs.org/pnpm/latest
        at async Engine.getDefaultVersion (corepack.cjs)
        at async Engine.findProjectSpec (corepack.cjs)
    
  • After:
    • pnpm lint && pnpm run fmt:check && pnpm test:unit: passed (41 test files / 423 tests).
    • Real VS Code E2E (VSCODE_CLI=1, VS Code 1.141.1): pnpm test:e2e rstest and RSTACK_LINT_E2E_SUITES="Dependency polling recovery" pnpm test:e2e lint both exited 0.

Merge Danger

Door: two-way

Test-harness only; reverting restores the previous behavior cleanly.

Blast Radius: minimal

Touches only E2E recovery sandbox setup (29 lines across 3 files); no extension source changes.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 30, 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-30T08:08:10.553611Z 536b653 New commits
ℹ️ 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.

@fi3ework
fi3ework force-pushed the fix/e2e-recovery-corepack branch from 629a44f to 536b653 Compare November 30, 2026 08:06
@fi3ework
fi3ework enabled auto-merge (squash) November 30, 2026 08:25
@fi3ework
fi3ework merged commit 3ee7cbd into main Nov 30, 2026
3 checks passed
@fi3ework
fi3ework deleted the fix/e2e-recovery-corepack branch November 30, 2026 08: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.

1 participant