Skip to content

test(scripts): restore pnpm test as the full gate - #2376

Merged
fengmk2 merged 10 commits into
voidzero-dev:mainfrom
jong-kyung:test-script-full-gate
Aug 10, 2026
Merged

test(scripts): restore pnpm test as the full gate#2376
fengmk2 merged 10 commits into
voidzero-dev:mainfrom
jong-kyung:test-script-full-gate

Conversation

@jong-kyung

@jong-kyung jong-kyung commented Aug 7, 2026

Copy link
Copy Markdown
Collaborator

Summary

pnpm test and pnpm test:unit have been identical (vp test run) since #2146 removed the legacy JS snapshot infrastructure and trimmed the snapshot half off the test script. Instead of deleting one of the duplicate scripts, this PR makes pnpm test a single convenient command that runs the whole test surface.

  • pnpm test now runs vp test run && just snapshot-test (unit tests, then the PTY snapshot suite).
  • pnpm test:unit stays unit-only.

This also makes the pre-merge guidance in CONTRIBUTING.md and AGENTS.md (pnpm bootstrap-cli && pnpm test && git status, described as full validation) match what the command actually covers.

CI adjustments

  • Alpine musl E2E job (ci.yml): switched to pnpm test:unit because the container has no just or cargo to run the PTY suite. That coverage stays with the dedicated cli-snapshot-test jobs.
  • upgrade-deps final validation (upgrade-deps.yml): step 2 now runs pnpm test:unit, keeping just snapshot-test as a separate step so a snapshot re-record does not re-run the unit tests.

…uite

voidzero-dev#2146 removed the legacy snapshot infrastructure and trimmed the test
script down to `vp test run`, leaving it identical to test:unit. Restore
the historical two-tier semantics with the current PTY suite: pnpm test
now runs the unit tests followed by `just snapshot-test`, while
test:unit stays unit-only.

The Alpine musl E2E job switches to pnpm test:unit because its container
has no just or cargo (the legacy `pnpm -r snap-test` was node-only,
which is why pnpm test used to work there). The upgrade-deps final
validation folds its separate `just snapshot-test` step into the
`pnpm test` step so the suite is not run twice.
Use pnpm test:unit in the final-validation gate instead of folding the
snapshot suite into pnpm test. The agent re-records snapshot drift with
UPDATE_SNAPSHOTS=1 just snapshot-test and re-runs only that step, so a
combined gate would re-run the unit tests on every snapshot iteration
and blur which suite failed.
@netlify

netlify Bot commented Aug 7, 2026

Copy link
Copy Markdown

Deploy Preview for viteplus-preview ready!

Name Link
🔨 Latest commit 47ef871
🔍 Latest deploy log https://app.netlify.com/projects/viteplus-preview/deploys/6a79393ecbd00900083c1323
😎 Deploy Preview https://deploy-preview-2376--viteplus-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@jong-kyung

Copy link
Copy Markdown
Collaborator Author

@codex review

@jong-kyung jong-kyung self-assigned this Aug 7, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: aaacade507

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread package.json Outdated
The vitest_browser_mode case launches Chromium with
PLAYWRIGHT_BROWSERS_PATH=0, which only the dedicated CI snapshot jobs
provisioned. Now that pnpm test reaches the suite on a fresh checkout,
snapshot-test installs the browser itself (idempotent, per-platform
helper because the Windows shell is PowerShell).
@jong-kyung

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🎉

Reviewed commit: 2665d8a7eb

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@jong-kyung
jong-kyung marked this pull request as ready for review August 9, 2026 12:35
@jong-kyung
jong-kyung marked this pull request as draft August 9, 2026 12:35
@jong-kyung
jong-kyung marked this pull request as ready for review August 9, 2026 12:41
@jong-kyung
jong-kyung requested a review from fengmk2 August 9, 2026 12:41
Comment thread package.json Outdated
@fengmk2
fengmk2 merged commit 2c8c72d into voidzero-dev:main Aug 10, 2026
65 of 67 checks passed
@jong-kyung
jong-kyung deleted the test-script-full-gate branch August 10, 2026 04:35
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