Repository navigation
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
PR Analysis Report📚 Storybook PreviewView Storybook for this PR 🧪 Sandbox PreviewView Sandbox for this PR No new or modified components detected. Bundle Size SummaryNo component packages changed. Accessibility AuditStatus: 36 accessibility violation(s) found — 2 critical, 34 serious. Button pattern - 1 issue(s)
ChatComposer - 1 issue(s)
ChatComposerInput - 1 issue(s)
ChatReasoning - 1 issue(s)
ChatToolCalls - 1 issue(s)
Checkbox pattern - 1 issue(s)
CheckboxList - 1 issue(s)
ClickableCard - 1 issue(s)
CodeEditor - 1 issue(s)
CodeEditorPerf - 1 issue(s)
CodeEditorTheme - 1 issue(s)
CodeTheme - 1 issue(s)
DateRangeInput - 1 issue(s)
FileInput - 1 issue(s)
GridMasonry - 1 issue(s)
Heading - 1 issue(s)
Icon - 1 issue(s)
LogStream - 1 issue(s)
MediaTheme Auto - 1 issue(s)
PowerSearch - 1 issue(s)
ProgressBar - 1 issue(s)
Radio group pattern - 1 issue(s)
RadioList - 1 issue(s)
RichTextEditor - 2 issue(s)
SelectableCard - 1 issue(s)
Stepper - 1 issue(s)
TableGroupedRows - 1 issue(s)
TableTree - 1 issue(s)
Text - 1 issue(s)
Theme - 1 issue(s)
PopArt - 1 issue(s)
Thumbnail - 1 issue(s)
Timestamp - 1 issue(s)
Token - 1 issue(s)
Tokenizer - 1 issue(s)
Generated by PR Enrichment workflow | Storybook | Sandbox | View full report |
cixzhang
left a comment
There was a problem hiding this comment.
Windows setup still cannot reach browser measurement: setup-measure.mjs keeps calling spawnSync('pnpm', ['build']), even though run-setup.mjs directs every prepared run there. Node cannot launch pnpm's .cmd shim that way, so Windows records a failed build and skips both browser passes. Please route this call through the same cmd.exe path before landing.
[Reviewed by Robohands]
7882236 to
95d0017
Compare
|
Confirmed and fixed: |
cixzhang
left a comment
There was a problem hiding this comment.
Thanks for fixing the measurement build. The same Windows failure remains twice in setup-canonical.test.ts: the real install at line 2141 and build at line 2165 bypass runPnpm and call spawnSync('pnpm', ...) directly. On Windows those cases fail before testing allowBuilds, so the canonical suite still misses its stated path. Please route both through the helper too. If you’d rather talk it through with someone, we’re in Discord.
[Reviewed by Robohands]
Same fix as the one already applied to fixture-suite.mjs, extended to the other three spots that spawn pnpm directly without shell handling: - scripts/fixture-browser.mjs (spawnSync, fixtures:contrast/screenshots) - setup-test/run-setup.mjs (execFileSync, setup:prepare) - setup-test/setup-canonical.test.ts (execFileSync, its own run() helper — gated behind ASTRYX_CANONICAL_SETUP_BROWSER=1, which is set by the fixture-contrast CI job, but that job runs on a Linux runner so this was silent there) Same reasoning as before: pnpm is a .cmd batch file on Windows, which spawnSync/execFileSync can only run through a shell (bare 'pnpm' fails ENOENT, explicit 'pnpm.cmd' fails EINVAL). Shelling through cmd.exe /c directly avoids Node's shell-argument-escaping deprecation warning that plain shell:true would trigger, since every argument here is a hardcoded literal. Left the cp -al hardlink calls in run-setup.mjs/setup-canonical.test.ts alone - confirmed they're a separate, pre-existing Windows breakage (Unix-only hardlink flag) out of scope for this fix.
….mjs
setup-measure.mjs's build() still called spawnSync('pnpm', ['build'])
directly, the same broken pattern already fixed elsewhere in this PR
(fixture-browser.mjs, run-setup.mjs, setup-canonical.test.ts). Windows
generates pnpm.cmd, which spawnSync can't run without a shell, so the
spawn silently failed and the browser measurement passes never ran.
Verified for real: called the fixed build() logic against an already-
prepared sandbox on Windows and confirmed status: 0, ok: true, where
the unfixed bare spawnSync('pnpm', ...) call reproducibly fails with
status: null, error: ENOENT against the same sandbox.
…hrough cmd.exe too Same Windows pnpm-spawn bug as the rest of this PR, in the two spots that intentionally use spawnSync's non-throwing form (a failing install/build is the assertion under test, not an error) rather than the throwing runPnpm helper. Adds spawnPnpm as the non-throwing counterpart with the same cmd.exe routing, and switches both call sites to it.
95d0017 to
05441d0
Compare
|
Confirmed and fixed both. Both call sites use spawnSync's non-throwing form deliberately (a failing install/build is the assertion under test at those two spots, not an error), so they can't reuse the throwing runPnpm helper. Added a spawnPnpm counterpart with the same cmd.exe routing and switched both to it. Verified for real with ASTRYX_CANONICAL_SETUP_BROWSER=1: both "installs and builds when allowBuilds is in pnpm-workspace.yaml" (exercises both the install and build spawns) and "fails exactly as the measured cell did when the key is in package.json" (exercises the install spawn's failure path) pass on Windows. Fixed in 05441d0. |
* test(cli): run the Core rebuild through cmd.exe on Windows
The node global setup rebuilds a stale Core with execFileSync('pnpm').
On Windows pnpm is a pnpm.cmd batch file, which execFileSync can't start
without a shell, so the setup dies with "spawnSync pnpm ENOENT" and no CLI
test runs whenever Core's sources are newer than its build.
Route the call through cmd.exe /d /s /c on win32, the same way the
vibe-tests helpers do since #5841 and #5843. Every argument is a literal,
so this avoids shell: true and its DEP0190 warning. Other platforms are
unchanged.
* test(cli): keep the Core rebuild to one execFileSync call
doc-loads.test.mjs lists each file's child_process sites, and the
platform branch had made two. Pick the executable and its arguments by
platform and keep the single call.
* chore(changeset): note the Windows Core rebuild in the CLI release
ensure-core-built.mjs ships in the @astryxdesign/cli tarball, so the
change needs a CLI patch changeset, as #8567's did for this helper.
Follow-up to #5841, which fixed the same pnpm-spawn-on-Windows bug in
internal/vibe-tests/src/fixture-suite.mjs. This applies the identical fix to the three other spots that spawnpnpmdirectly without shell handling:scripts/fixture-browser.mjs(spawnSync, used byfixtures:contrast/fixtures:screenshots)setup-test/run-setup.mjs(execFileSync, used bysetup:prepare)setup-test/setup-canonical.test.ts(execFileSync, its own inlinerun()helper)Why this matters even though it's not blocking
check:reposetup-canonical.test.ts's pnpm-spawning tests are gated behindASTRYX_CANONICAL_SETUP_BROWSER=1, which is only set by thefixture-contrastCI job — and that job runs on2-core-ubuntu-arm, so the bug is silent there. It only bites a Windows contributor who runssetup:prepare,fixtures:contrast/fixtures:screenshots, or the canonical setup test suite locally.Fix
Same pattern as #5841: shell out through
cmd.exe /d /s /c pnpm ...onwin32, callpnpmdirectly elsewhere. Every argument at every call site is a hardcoded literal, never user input, so this avoids Node'sDEP0190shell-argument-escaping deprecation warning that plainshell: truewould trigger.What I deliberately left alone
run-setup.mjsandsetup-canonical.test.tsalso both shell out tocp -al(GNU hardlink flag) to link a preparednode_modulesinto each sandbox. That's a separate, pre-existing Windows breakage (no Windows equivalent for the flag, and creating hardlinks this way fails withPermission denied) — confirmed with a real run, out of scope for this PR.Testing
spawnSyncvariant used infixture-browser.mjs, and theexecFileSyncvariant used in the other two) against a realpnpm --versioncall on Windows — both succeed.setup-canonical.test.tswithASTRYX_CANONICAL_SETUP_BROWSER=1for real: it got past bothrunPnpmcalls (pnpm install,pnpm -F @astryxdesign/core build) successfully before hitting the separate, expectedcp -alfailure described above — real evidence the fix works, not just that it compiles.public-artifact-cli.test.mjsfailures seen in the same test run are pre-existing and unrelated: they fail identically against the unfixed baseline (a different bug,.bin/tsxneeding the same treatment — filed as its own follow-up).npx eslint internal/vibe-tests/setup-test/setup-canonical.test.ts— clean. The two.mjsfiles are outside the lintedpackages/cliscope, matching the project's existing.mjslint-ignore convention.