Skip to content

test(manifest): isolate the offline cdxgen launcher - #1822

Merged
John-David Dalton (jdalton) merged 1 commit into
v1.xfrom
fix/v1-cdxgen-help-ci
Dec 3, 2026
Merged

John-David Dalton (jdalton) merged 1 commit into
v1.xfrom
fix/v1-cdxgen-help-ci

Conversation

@jdalton

Copy link
Copy Markdown
Contributor

The offline cdxgen help test exits with code 1 on Windows and cancels the v1.x CI matrix. Give the fixture its own launcher for the pinned cdxgen package so it can run offline without reusing pnpm’s workspace launcher. Include the command output when a help check fails.

Failing Windows Bash job

@cursor

cursor Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

PR Summary

Low Risk
Changes are limited to test utilities and assertion messages; no production CLI or runtime behavior is modified.

Overview
Fixes failing offline cdxgen help checks on Windows by rebuilding how the temp test fixture wires up @cyclonedx/cdxgen instead of junction-linking the whole pnpm workspace node_modules.

spawnCdxgenHelp now reads the pinned package’s bin entry, writes a minimal package.json, symlinks only @cyclonedx/cdxgen, and uses cmd-shim to create a local node_modules/.bin/cdxgen so offline runs do not depend on pnpm’s workspace-relative launchers. The cdxgen and manifest cdxgen help tests attach stdout/stderr to exit-code assertions when help does not return 0, which makes CI failures easier to diagnose.

Reviewed by Cursor Bugbot for commit d6e124c. Configure here.

@jdalton
John-David Dalton (jdalton) merged commit 356817f into v1.x Dec 3, 2026
23 checks passed
@jdalton
John-David Dalton (jdalton) deleted the fix/v1-cdxgen-help-ci branch December 3, 2026 09:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants