Skip to content

refactor(test-version-utils): Update compat-workspace structure#27234

Open
Abe27342 wants to merge 5 commits intomainfrom
test/absander/pnpm-workspace-feedback
Open

refactor(test-version-utils): Update compat-workspace structure#27234
Abe27342 wants to merge 5 commits intomainfrom
test/absander/pnpm-workspace-feedback

Conversation

@Abe27342
Copy link
Copy Markdown
Contributor

@Abe27342 Abe27342 commented May 5, 2026

Description

Addresses some feedback left on #27186 after completion of the PR related to compat-workspace structure & update script.

  • Moves only-pnpm.cjs to inside the compat-workspaces folder
  • Specify several pnpm settings in .npmrc used for the compat test workspace
  • Pass additional arguments to updateCompatVersions.ts through to pnpm

Test build here.
e2e test run here (note that cache key partial successes on this build are known and should be addressed by #27221).

Abram Sanderson (He/Him) and others added 2 commits May 5, 2026 13:09
…ons to pnpm install

Any arguments passed after `--` are now forwarded verbatim to the
`pnpm install` invocation inside the script, enabling callers to pass
flags such as `--lockfile-only` or `--store-dir` without modifying
the script.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings May 5, 2026 20:23
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 5, 2026

Hi! Thank you for opening this PR. Want me to review it?

Based on the diff (37 lines, 6 files), I've queued these reviewers:

  • Correctness — logic errors, race conditions, lifecycle issues
  • Security — vulnerabilities, secret exposure, injection
  • API Compatibility — breaking changes, release tags, type design
  • Performance — algorithmic regressions, memory leaks
  • Testing — coverage gaps, hollow tests

How this works

  • Adjust the reviewer set by ticking/unticking boxes above. Reviewer toggles alone don't trigger anything.

  • Tick Start review below to dispatch the review fleet.

  • After review finishes, tick Start review again to request another run — it auto-resets after each dispatch.

  • This comment updates as new commits land; your reviewer selections are preserved.

  • Start review

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Updates the compat workspace tooling/config so updateCompatVersions.ts can forward extra CLI args to pnpm install, and the compat workspace install behavior is driven by workspace-local pnpm settings.

Changes:

  • Forward extra CLI args from updateCompatVersions.ts to pnpm install.
  • Add pnpm settings via .npmrc for the compat test workspace.
  • Adjust compat workspace install scripts/paths and packaging ignore rules.

Reviewed changes

Copilot reviewed 5 out of 6 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
packages/test/test-version-utils/scripts/updateCompatVersions.ts Forwards extra script args to pnpm install when regenerating compat lockfile.
packages/test/test-version-utils/package.json Changes postinstall to run pnpm install without explicit --frozen-lockfile.
packages/test/test-version-utils/compat-workspaces/full/package.json Updates preinstall path for only-pnpm script.
packages/test/test-version-utils/compat-workspaces/full/.npmrc Adds pnpm configuration for compat workspace installs.
packages/test/test-version-utils/.npmignore Attempts to ensure compat workspace .npmrc is included in published package.

Comment thread packages/test/test-version-utils/scripts/updateCompatVersions.ts
Comment thread packages/test/test-version-utils/.npmignore Outdated
Comment thread packages/test/test-version-utils/package.json
@Abe27342 Abe27342 changed the title Implement refactor(test-version-utils): Update compat-workspace structure May 6, 2026
Abe27342 and others added 2 commits May 6, 2026 11:47
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Avoids shell-string interpolation of caller-supplied args, which both
allowed shell injection and broke for arguments containing spaces/quotes.
Uses pnpm.cmd + shell: true on Windows to satisfy Node's CVE-2024-27980
restriction on spawning .cmd shims; in that mode Node still escapes
array args for cmd.exe, so arguments remain verbatim.
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