Repository navigation
chore(deps): take script-utils 0.1.17 and start test processes portably - #139
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
@cosyte/script-utilsfrom^0.1.16to^0.1.17and regenerate the lockfile.test/docs-content.test.ts: runpnpm buildwithshell: process.platform === "win32", so Windows reaches pnpm's.cmdlauncher. The command and its argument are fixed strings.test/pipe-close.test.ts: start each bin withprocess.execPathand the entrytsxdeclares in its ownpackage.json, in place ofnode_modules/.bin/tsx.vitest.config.ts: runtest/pipe-close.test.tson Windows again, and drop the barepnpm buildfrom the reasontest/docs-content.test.tsstays out there (its shell samples still need bash).Why
0.1.17 is the current release of the shared gates. A bare
pnpmand a.binshim both need a shell on Windows, where each is a.cmdlauncher, so the two tests could not start their process there.Proof
pnpm install --frozen-lockfile: OK after the bump.pnpm typecheck,pnpm lint,pnpm format:check: pass.pnpm phi-scan,pnpm check:no-emdash,pnpm check:no-internal-refs,pnpm check:claude-card,pnpm check:readme,pnpm check:catalog,pnpm check:docs-content: all pass under 0.1.17, with no new finding.pnpm test: 46 files, 825 tests pass on Linux, Node 26.TMPDIRset to a symbolic link to a directory, every test file exceptpipe-closepasses (45 files, 807 tests), so no test here needs its temp directory resolved.pipe-closecannot run that way locally for an unrelated reason: the long link path pushes tsx's IPC socket path past the Unix socket length limit.verifyjobs on this pull request are the proof forpipe-close, which now runs there.Choices
test/pipe-close.test.tsback on Windows, since the reason it was left out no longer holds. If it fails there for a platform reason, the right step is to restore the exclusion with a new reason.createRequire(...).resolve("tsx/package.json"), which tsx exports, rather than a hard-codednode_modulespath.scripts/release-install-gate.mjsspawning barepnpmandnpm: it is a script, not a test, and runs on Linux in the release workflow.