← Back to Pull requests

test(parquet): add realistic inspection fixtures #45

Closed
unknown closed this pull request without merging on Nov 02, 2026 16:46 UTC
View on GitHub
unknown unknown commented on Oct 28, 2026 16:59 UTC
Author

Summary

Add a reusable Parquet fixture for testing the inspection metadata workflow.

Related Issue

Closes #21

---

Changes

  • Add a representative Parquet fixture with multiple columns and row groups.

  • Add metadata inspection tests for row count, column count, row-group count, schema, and compression codecs.

  • Keep fixture data and tests isolated from production code.
  • ---

    Technical Details

    The test reads the checked-in fixture using parquet.ReadMetadata and verifies the metadata returned by the existing footer reader. The fixture uses Snappy compression and contains six rows across three row groups.

    No production code or user-facing inspection output has been changed.

    ---

    Testing

  • go build ./...

  • go vet ./...

  • go test ./...

  • gofmt applied
  • Test Coverage

    Verifies row count, column count, row-group count, schema names, and compression codecs using the reusable Parquet fixture.

    ---

    Documentation

  • No documentation changes required
  • ---

    Checklist

  • The PR addresses a single focused change

  • Code follows the existing project structure

  • Tests have been added or updated where appropriate

  • No unrelated changes are included

  • Error handling has been considered

  • Public APIs are documented where appropriate

  • CI checks pass
  • ---

    Additional Context

    This PR addresses issue #21. It adds reusable test data and metadata assertions without changing production behavior.

    Diff: 185 lines (+138 / -47) across 2 files Reviewer: AnuragRaut08 Review duration: 7187m
    All Vouch review confidence checks passed
    Residual risk 0.14 = Change Risk (0.36) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.36 · 185 lines diff across 2 files
    0.36
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    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.313
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #45"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% 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: 35.7% (MEDIUM) · Higher = larger blast radius
    35.7%
    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: 60.5% · Lower = rushed or shallow review
    60.5%
    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: 14.1% · Safe to merge
    14.1%