test(shred-stream): no output from passing unit tests #1645
All Vouch review confidence checks passed
Residual risk 0.08 = Change Risk (0.36) × (1 − Review Confidence (0.78)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.36 · 254 lines diff across 1 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.64 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 50%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.332
Real PR Conversation Timeline
4 items
Codecov Report
:x: Patch coverage is
86.73469% with 13 lines in your changes missing coverage. Please review.| Files with missing lines | Patch % | Lines |
|---|---|---|
| v2/scripts/shred\_stream.zig | 86.73% | 13 Missing :warning: |
| Files with missing lines | Coverage Δ | |
|---|---|---|
| v2/scripts/shred\_stream.zig | 94.22% <86.73%> (+0.80%) | :arrow_up: |
... and 2 files with indirect coverage changes
<details><summary> :rocket: New features to boost your workflow: </summary>
</details>
Approved
Great changes! Thank you for cleaning the logging up 🫡
Approved
Approved these changes.
prestonsn
dnut
The shred-stream unit tests print a bunch of output when running the tests. This clutters the logs and makes it hard to understand what's going on when the tests run - especially when a test fails. Passing tests should never print anything. Printing is reserved for failing tests.
The shred-stream tool was already using a stdout writer in a few places. I propagated the pattern further until it encompassed all messages printed by the tests. The tests use a discarding writer. If they need to make assertions about the error message, this can also now be added easily by giving each test its own writer, but that's not in scope for this PR.