← Back to Pull requests

kueue: skip more paths, raise unscheduled timeout #38181

Closed
unknown closed this pull request without merging on Oct 28, 2026 15:53 UTC
View on GitHub
unknown unknown commented on Oct 28, 2026 15:39 UTC
Author

What this PR does / why we need it:

Kueue presubmits run on the shared EKS build cluster and hit pod_unscheduled_timeout when many PRs start jobs at the same time, for example dependabot runs, cherry-pick waves and /ok-to-test sweeps. A default Kueue PR starts 51 presubmits (55 in the issue thread, before the 1.34 jobs were dropped), most of them heavy, even when it only bumps a kueueviz dependency that most of them don't test.

This PR adds cmd/kueueviz/, test/e2e/kueueviz/, hack/debugpod/, hack/releasing/ and the hack/testing/{cypress,depcheck,linkchecker,shellcheck,skillsaw}/ tool directories to skip_if_only_changed on 144 presubmits on main, release-0.19 and release-0.20. verify, build-image and e2e-kueueviz keep their trigger, since they test these paths or no job does. It also raises pod_unscheduled_timeout to 18m on all Kueue jobs, periodics included since they share the cluster. That is from 14m, and from 10m on pull-kueue-test-e2e-was-main-1-37 and pull-kueue-test-e2e-was-release-0-20-1-37.

Which issue(s) this PR fixes:

Part of kubernetes-sigs/kueue#16958

Special notes for your reviewer:

  • I checked the triggers with Prow's ShouldRun on the file lists of 1,574 PRs to main, release-0.19 and release-0.20 (all dependabot and cherry-pick PRs since Jul 1, other PRs since Oct 1). 211 PRs start fewer jobs, and none start new ones. A kueueviz-only bump goes from 51 jobs to 3, and dependabot PRs start 45% fewer jobs.

  • 18m follows the replay in kubernetes-sigs/kueue#16958, which includes the new dependabot days from kubernetes-sigs/kueue#17632. With these filters it leaves up to 5 of the 294 past timeouts (2%) in the worst run. It is above the 15m pod_pending_timeout, but the unscheduled timeout runs from Pod creation and the pending timeout from Pod start, so they don't conflict.

  • This PR was written in part with the assistance of generative AI.
  • Diff: 241 lines (+180 / -61) across 3 files Reviewer: mimowo Review duration: 13m
    All Vouch review confidence checks passed
    Residual risk 0.17 = Change Risk (0.44) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.44 · 241 lines diff across 3 files
    0.44
    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.328
    Shallow Review Depth shallow_review_depth
    0.289
    Ai Authored ai_authored
    0.050
    Real PR Conversation Timeline
    1 comments
    "Review active on #38181"
    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: 43.8% (MEDIUM) · Higher = larger blast radius
    43.8%
    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: 17.3% · Safe to merge
    17.3%