Skip to content

chore: audit quality pass — silence bench prints on green runs; dedup isSensitivePath#605

Merged
justrach merged 2 commits into
release/0.2.5825from
chore/audit-quality-pass
Jun 11, 2026
Merged

chore: audit quality pass — silence bench prints on green runs; dedup isSensitivePath#605
justrach merged 2 commits into
release/0.2.5825from
chore/audit-quality-pass

Conversation

@justrach

Copy link
Copy Markdown
Owner

What

Two small cleanups out of today's audit sweep:

  1. test_bench perf prints gated behind CODEDB_BENCH_VERBOSE. The two unconditional std.debug.print calls wrote to stderr mid test-protocol, which made zig build test echo a failed command: ... banner on fully green runs (the long-standing cosmetic annoyance in the session notes). Verified gone after gating; set CODEDB_BENCH_VERBOSE=1 to get the numbers back.

  2. watcher.isSensitivePath now delegates to snapshot.isSensitivePath instead of carrying a byte-identical 44-line copy. watcher/snapshot: isSensitivePath misses OpenSSH default key names id_ecdsa, id_dsa, and *_sk FIDO variants #589 had to patch both copies in lockstep; now there is one implementation. The issue-528: isSensitivePath parity test still runs against both pub fns, and no import cycle is introduced (snapshot.zig does not import watcher.zig).

No behavior change in either filter or bench.

Test plan

  • zig build test — 23/23 steps, 807/807 tests passed
  • zig build test 2>&1 | grep -c "failed command" → 0 (was 1)

🤖 Generated with Claude Code

justrach and others added 2 commits June 11, 2026 12:11
Unconditional stderr output mid test-protocol made zig build echo a
'failed command' banner on green runs.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
One implementation for the security filter; #589 had to patch both
copies in lockstep. The issue-528 parity test keeps guarding the API.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

Benchmark Regression Report

Thresholds: 10.00% and 50,000 ns absolute delta

NOISE means the percentage threshold was exceeded, but the absolute delta was too small to fail CI.

Tool Base (ns) Head (ns) Delta Abs Delta (ns) Status
codedb_bundle 73071 79009 +8.13% +5938 OK
codedb_changes 6159 6645 +7.89% +486 OK
codedb_context 933320 942477 +0.98% +9157 OK
codedb_deps 292 347 +18.84% +55 NOISE
codedb_edit 28772 29552 +2.71% +780 OK
codedb_find 4940 5904 +19.51% +964 NOISE
codedb_hot 14863 14842 -0.14% -21 OK
codedb_outline 27782 27961 +0.64% +179 OK
codedb_read 12948 13068 +0.93% +120 OK
codedb_search 26589 27274 +2.58% +685 OK
codedb_snapshot 69425 69633 +0.30% +208 OK
codedb_status 4870 5119 +5.11% +249 OK
codedb_symbol 36515 38136 +4.44% +1621 OK
codedb_tree 12080 12316 +1.95% +236 OK
codedb_word 7964 7360 -7.58% -604 OK

@justrach justrach merged commit b07851d into release/0.2.5825 Jun 11, 2026
2 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