← Back to Pull requests

chore: fix the labels and workflow for infra allocation kep #1049

Open
jaiakash opened this pull request with 223 lines diff across 4 files
View on GitHub
jaiakash jaiakash commented on Nov 25, 2026 17:18 UTC
Author

What this PR does

Follow-up to #1022. It fixes the infrastructure request labels so admins can apply them with Prow, fixes the infra-activity workflow so it actually updates requests, and updates KEP-939 to match. Related https://github.com/kubeflow/community/issues/1035#issuecomment-5956376070

Changes

Labels

  • Renamed the tracking labels from infra/ to area/infra- (area/infra-needs-allocation, area/infra-allocated, area/infra-timeline-{120d,90d,60d,30d,expired}). Prow's /label command can't apply infra/ labels, but /area can apply area/ ones, e.g. /area infra-allocated.

  • The issue template now applies area/infra-needs-allocation on new requests.

  • Reworded the template's two compliance checkboxes: requesters acknowledge the tagging policy rather than promising to tag resources themselves, and decommissioning is no longer described as automatic.
  • Workflow

  • The workflow now uses the area/infra- labels. Before this, the daily job filtered on infra/allocated and never found any request, so it never made a change.

  • Fixed the lease countdown. It now measures from the last timeline label an admin applied (at provisioning or renewal), not from its own downgrades, so a late run can no longer extend a lease. It also never moves a request to a longer bucket.

  • The daily job deletes the old infra/ labels, which also removes them from existing requests such as #1035. Once the labels are gone, this step does nothing.
  • KEP-939

  • Updated the label names throughout, explained why the labels use the area/ prefix, and added the Prow commands admins use.

  • Updated the description of the lease countdown and added an implementation-history entry.
  • _Used Claude for this PR_

    Diff: 223 lines (+144 / -79) across 4 files Reviewer: jaiakash Review duration: 11691m
    All Vouch review confidence checks passed
    Residual risk 0.13 = Change Risk (0.77) × (1 − Review Confidence (0.83)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.77 · 223 lines diff across 4 files
    0.77
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.89 · 4 substantive comment(s)
    0.89
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 50%
    83%
    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.324
    Self Review self_review
    0.140
    Sensitive Paths sensitive_paths
    0.077
    Real PR Conversation Timeline
    6 items
    google-oss-prow[bot] google-oss-prow[bot] commented on Nov 25, 2026 17:18 UTC
    Bot

    [APPROVALNOTIFIER] This PR is NOT APPROVED

    This pull-request has been approved by:
    Once this PR has been reviewed and has the lgtm label, please assign juliusvonkohout for approval. For more information see the Kubernetes Code Review Process.

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

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

  • OWNERS
  • 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":["juliusvonkohout"]} -->

    copilot-pull-request-reviewer[bot] copilot-pull-request-reviewer[bot] commented on Nov 25, 2026 17:18 UTC
    Reviewer

    Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

    jaiakash jaiakash commented on code on Nov 25, 2026 17:20 UTC
    Code Review
    .github/ISSUE_TEMPLATE/infrastructure-request.yml:1
    @@ -1,7 +1,7 @@
     name: Infrastructure Request
     description: Request resources in the Kubeflow Oracle Cloud Infrastructure (OCI) Tenancy.
     title: "[Request(Infra)]: <Short Summary>"
    -labels: ["area/infrastructure", "infra/needs-allocation"]
    +labels: ["area/infrastructure", "area/infra-needs-allocation"]

    Fixed labels to correct ones

    jaiakash jaiakash commented on code on Nov 25, 2026 17:20 UTC
    Code Review
    .github/scripts/infra-activity.js:1
    @@ -1,9 +1,9 @@
     // Label automation for Infrastructure Request issues (KEP-939).
     // Invoked from .github/workflows/infra-activity.yml via actions/github-script.
     
    -const NEEDS_ALLOCATION = 'infra/needs-allocation';
    -const ALLOCATED = 'infra/allocated';
    -const TIMELINE_PREFIX = 'infra/timeline-';
    +const NEEDS_ALLOCATION = 'area/infra-needs-allocation';
    +const ALLOCATED = 'area/infra-allocated';

    Same here

    jaiakash jaiakash commented on Nov 25, 2026 17:21 UTC
    Author

    PTAL @chasecadet @andreyvelich @SanthoshToorpu @kmr-rohit for review

    Reviewers
    Assignees
    jaiakash jaiakash
    Labels
    risk: low confidence: 83.1% reviewed sensitive_module
    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: 76.9% (HIGH) · Higher = larger blast radius
    76.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: 83.1% · Lower = rushed or shallow review
    83.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: 13% · Safe to merge
    13%