← Back to Pull requests

test(shred-stream): no output from passing unit tests #1645

Merged
dnut merged 1 files (254 lines) on Jul 08, 2026 14:41 UTC
View on GitHub
dnut dnut commented on Jun 30, 2026 11:53 UTC
Author

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.

Diff: 254 lines (+144 / -110) across 1 files Reviewer: prestonsn Review duration: 11687m
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
0.36
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.64 · 1 substantive comment(s)
0.64
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 50%
78%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
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[bot] codecov[bot] commented on Jun 30, 2026 12:15 UTC
Bot

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>

  • :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

  • </details>

    prestonsn prestonsn approved these changes on Jul 02, 2026 21:20 UTC
    Approved Reviewer

    Great changes! Thank you for cleaning the logging up 🫡

    yewman yewman approved these changes on Jul 08, 2026 10:42 UTC
    Approved Reviewer

    Approved these changes.

    Reviewers
    Assignees
    dnut dnut
    Labels
    risk: low confidence: 78.1% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 36.1% (MEDIUM) · Higher = larger blast radius
    36.1%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 78.1% · Lower = rushed or shallow review
    78.1%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 7.9% · Safe to merge
    7.9%
    Repository