← Back to Pull requests

Add --label and --notes options to post_results.py #358

Merged
misiugodfrey merged 1 files (38 lines) on Jul 08, 2026 18:36 UTC
View on GitHub
misiugodfrey misiugodfrey commented on Jun 08, 2026 23:03 UTC
Author

Summary

  • Adds --label (repeatable) and --notes CLI options to post_results.py, wiring them through to the labels and notes fields in the benchmark submission API payload

  • Fields are omitted from the payload when not provided, matching the API's optional semantics
  • Test plan

  • --dry-run with --label foo --label bar --notes "some note" to confirm fields appear in printed payload

  • Live post to verify labels and notes are recorded on the benchmark run
  • Diff: 38 lines (+37 / -1) across 1 files Reviewer: Avinash-Raj Review duration: 42932m
    All Vouch review confidence checks passed
    Residual risk 0.06 = Change Risk (0.25) × (1 − Review Confidence (0.78)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.25 · 38 lines diff across 1 files
    0.25
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.67 · 4 substantive comment(s)
    0.67
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    77%
    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.219
    Real PR Conversation Timeline
    6 items
    copy-pr-bot[bot] copy-pr-bot[bot] commented on Jun 08, 2026 23:03 UTC
    Bot

    This pull request requires additional validation before any workflows can run on NVIDIA's runners.

    Pull request vetters can view their responsibilities here.

    Contributors can view more details about this message here.

    Avinash-Raj Avinash-Raj commented on code on Jul 08, 2026 04:18 UTC
    Code Review
    benchmark_reporting_tools/post_results.py:1
    @@ -366,6 +389,8 @@ def _build_submission_payload(
         velox_repo: str | None = None,
         presto_branch: str | None = None,
         presto_repo: str | None = None,
    +    labels: list[str] | None = None,
    +    notes: str | None = None,

    nit, Instead of passing multiple function arguments, we could use a dataclass to encapsulate them, making it easier to serialize and deserialize the arguments when needed.

    Avinash-Raj Avinash-Raj commented on Jul 08, 2026 04:25 UTC
    Contributor

    LGTM:-)

    Avinash-Raj Avinash-Raj approved these changes on Jul 08, 2026 04:26 UTC
    Approved Reviewer

    Approved these changes.

    misiugodfrey misiugodfrey commented on Jul 08, 2026 18:36 UTC
    Author

    /merge

    Reviewers
    Assignees
    misiugodfrey misiugodfrey
    Labels
    risk: low confidence: 77.8% 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: 24.9% (LOW) · Higher = larger blast radius
    24.9%
    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: 77.8% · Lower = rushed or shallow review
    77.8%
    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: 5.5% · Safe to merge
    5.5%