← Back to Pull requests

Split perflens into subfiles #4243

Merged
serathius merged 5 files (1363 lines) on Jul 27, 2026 16:24 UTC
View on GitHub
serathius serathius commented on Jul 27, 2026 16:13 UTC
Author

/kind cleanup

/cc @michaelasp

Diff: 1363 lines (+736 / -627) across 5 files Reviewer: michaelasp Review duration: 10m
All Vouch review confidence checks passed
Residual risk 0.21 = Change Risk (0.49) × (1 − Review Confidence (0.57)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.49 · 1363 lines diff across 5 files
0.49
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.64 · 2 substantive comment(s)
0.64
Model 3 · Review Timing & Attention
Session adequacy: 31% · Reviewer familiarity: 35%
57%
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.400
Real PR Conversation Timeline
4 items
michaelasp michaelasp commented on code on Jul 27, 2026 16:14 UTC
Code Review
perflens/cmd/ingest/main.go:1
@@ -133,7 +39,7 @@ type options struct {
 }
 
 func parseFlags() options {
-	buildID := flag.String("build-id", "", "Prow Build ID or run identifier")
+	buildID := flag.String("build-id", "", "Prow Build ID, run identifier, or run directory path")

This feels like we are starting to overload what a build id is.

michaelasp michaelasp commented on Jul 27, 2026 16:16 UTC
Reviewer

/lgtm

Non-blocking comment since this is mostly a cleanup PR, but wondering for future improvements.

kubernetes-prow[bot] kubernetes-prow[bot] commented on Jul 27, 2026 16:16 UTC
Bot

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: <a href="https://github.com/kubernetes/perf-tests/pull/4243#pullrequestreview-4789148537" title="LGTM">michaelasp</a>, <a href="https://github.com/kubernetes/perf-tests/pull/4243#" title="Author self-approved">serathius</a>

The full list of commands accepted by this bot can be found here.

The pull request process is described here

<details >
Needs approval from an approver in each of these files:

  • ~~OWNERS~~ [serathius]
  • Approvers can indicate their approval by writing /approve in a comment
    Approvers can cancel approval by writing /approve cancel in a comment
    </details>
    <!-- META={"approvers":[]} -->

    Reviewers
    Assignees
    serathius serathius
    Labels
    risk: low confidence: 57.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: 48.9% (MEDIUM) · Higher = larger blast radius
    48.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: 57.5% · Lower = rushed or shallow review
    57.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: 20.8% · Safe to merge
    20.8%