Skip to content

test(hub): run sanitizer-extraction in the isolated perf pass too - #159

Merged
bartrumb merged 1 commit into
mainfrom
fix/isolate-sanitizer-perf
Nov 29, 2026
Merged

bartrumb merged 1 commit into
mainfrom
fix/isolate-sanitizer-perf

Conversation

@bartrumb

Copy link
Copy Markdown
Owner

sanitizer-extraction holds unscaled wall-clock budgets and O(N) scaling ratios, like security-audit, but it still ran in the parallel core pass. On the v2.8.33 release PR (#157), which only changes version strings and the changelog, R7-PI's 2 MiB unclosed-links scan took 221.6ms. Its limit is 16× the 256 KiB sample: 13.8ms × 16 = 220.8ms. The scanner (internal/extract/prompt_injection.go) hasn't changed since #74.

It now runs in the same one-file-at-a-time pass as security-audit (#156), with no other test file competing for CPU. Every test still runs once, and the budgets are unchanged.

Test plan

  • node scripts/run-tests.mjs and --coverage --include-sdk both pass locally: 370 core + 77 isolated = 447 tests, as before. The coverage report still covers both files.

🤖 Generated with Claude Code

sanitizer-extraction holds unscaled wall-clock budgets and O(N) scaling
ratios, like security-audit, but still ran in the parallel core pass. On the
v2.8.33 release PR, which only changes version strings and the changelog,
R7-PI's 2 MiB unclosed-links scan took 221.6ms against a limit of 16x its
256 KiB sample (13.8ms, so 220.8ms). The scanner (internal/extract/
prompt_injection.go) has not changed since #74.

It now runs in the same one-file-at-a-time pass as security-audit, with no
other test file competing for CPU. Every test still runs once and budgets
are unchanged: 370 core + 77 isolated = 447, as before. Coverage still
includes both files.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Brett Bartrum <17114576+bartrumb@users.noreply.github.com>
@bartrumb
bartrumb merged commit cf4fb1c into main Nov 29, 2026
4 checks passed
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.

1 participant