Skip to content

chore: Address scanner-version-testing review feedback#163

Merged
tembleking merged 2 commits into
mainfrom
chore/scanner-version-review-feedback
Jul 9, 2026
Merged

chore: Address scanner-version-testing review feedback#163
tembleking merged 2 commits into
mainfrom
chore/scanner-version-review-feedback

Conversation

@tembleking

@tembleking tembleking commented Jul 9, 2026

Copy link
Copy Markdown
Collaborator

Follow-up to #162.

Make the newest and oldest fixture parse tests symmetric. Both fixtures are checked in, so the oldest test no longer skips via assumeTrue while the newest hard-fails — a missing fixture is a genuine failure for both, and the dead oldestScannerFixtureAvailable() helper is gone.

Provide the tooling the scanner justfile recipes depend on via the Nix devshell — GNU sed/date/grep, curl, jq and gzip — instead of just assuming it is present (notably GNU sed/date on macOS, where the system defaults are BSD).

Document in CONTRIBUTING that regenerating the checked-in fixtures — and therefore just update — needs network access and SECURE_API_TOKEN, whereas a normal build and the test suite run against the committed fixtures without either.

Make the newest and oldest fixture parse tests symmetric: both fixtures are
committed, so the oldest test no longer skips via assumeTrue while the newest
hard-fails — a missing fixture is a real failure for both. Document that the
scanner recipes assume GNU sed/date and that regenerating fixtures (and thus
`just update`) needs network access and SECURE_API_TOKEN, while normal builds
and the test suite run against the committed fixtures without either.
The justfile `scanner` recipes need GNU sed/date/grep plus curl, jq and gzip;
rather than just documenting the assumption, add them to the devShell so they
are available out of the box (notably GNU sed/date on macOS, where the system
defaults are BSD).

@mateobur mateobur left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Nice cleanup. Documenting the scanner tooling and wiring it into the Nix devshell closes the gap, and dropping the silent skip means a missing oldest fixture now fails loudly with a clear pointer to regenerate it. Looks good to merge.

@tembleking tembleking changed the title Address scanner-version-testing review feedback chore: Address scanner-version-testing review feedback Jul 9, 2026
@tembleking
tembleking enabled auto-merge (squash) July 9, 2026 11:23
@tembleking
tembleking merged commit f1d5538 into main Jul 9, 2026
21 checks passed
@tembleking
tembleking deleted the chore/scanner-version-review-feedback branch July 9, 2026 11:24
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