Repository navigation
test(transpiler): kill scanSource byte-boundary mutants [W6-14] - #968
Conversation
Add TestScanSourceByteBoundaries pinning the non-ASCII byte threshold (0x7f/0x80/0x81) so the >0x80, >=0x81 and >=0x7f mutants die. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DnbRnTFErhoMJdAjVEeCg2
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
|
Claude finished @ajitpratap0's task in 18s —— View job Review of PR #968:
|
Perf gate: REGRESSION (shadow mode: report only, this check never fails)Base Runner CPU:
Rules: each arm runs 20 randomized code layouts ( Gated suite (GOGC=off, GOMAXPROCS=1)
A/A' control (base revision, disjoint layout seeds): 0 of 65 benchmarks moved more than 3%; 0 would have been flagged by the time rule; suite geomean -0.07%, p 0.640. Low power6 benchmark(s) have under 80% estimated power to be flagged on their own for a +5% slowdown (their spread across layouts is too wide for 20 layouts at the Benjamini-Hochberg level alpha/m = 0.000154). A slowdown below the last column usually goes unflagged there; instructions/op, allocs/op and the suite geomean still guard them.
Power is estimated with the normal approximation for the U test (Noether): power = Phi(ln(1+shift)/s * sqrt(K/2) * sqrt(3/pi) - z(1 - alpha/(2m))), with s the spread and K the layouts per arm. Instructions per operation (cmd/perfdriver)
Secondary metric: default GC, GOMAXPROCS=1 (informational)
Environmentbenchstat (primary metric, samples pooled across layouts: informational, the verdict uses the per-layout test) |
|
Claude finished @ajitpratap0's task in 14s —— View job Review of PR #968:
|
Summary
Test-only. Adds
TestScanSourceByteBoundariesinpkg/transpiler/prefilter_test.go, pinning the non-ASCII byte boundary (\x7f,\x80,\x81) ofscanSource. Kills the 3 surviving mutants (>0x80,>=0x81,>=0x7f). A 15-mutantgo test -overlaypass leaves only M12 (equivalent mutant in the requoteIdentifiers gate, since FormatASTChecked restyles data types itself); M12 is handed to W7-05. No production code changes, no perf claim, no CHANGELOG fragment (test-only).Test Plan
task check: fmt, vet, lint pass; the only failure wasscripts/perf/gatetiming out at 2m under load, and it passes alone (go test -race ./scripts/perf/gate, 23s).task test:cbinding,go test -count=1 ./pkg/compatibility/..., staticcheck on./pkg/transpiler/: pass.Breaking Changes
None.
🤖 Generated with Claude Code
https://claude.ai/code/session_01DnbRnTFErhoMJdAjVEeCg2
Final gate before merge (merge train)
The perf gate ran on the final head
b477daae5b18merged with current main: REGRESSION on one flag only,LintParallel/rulesallocs/op 68933 -> 68934 (+1 of 68933; time +0.03%, p 0.925). This PR changes onlypkg/transpiler/prefilter_test.go, which no gated benchmark runs, and that parallel benchmark's allocation count varies by one or two with pool timing. Judged noise and merged. Report #968 (comment).