fetch-payloads: resolve stale Pending jobs against Prow - #481
openshift-merge-bot[bot] merged 3 commits into
Conversation
…payloads The release controller can leave blocking jobs as Pending after a payload reaches a terminal state (Accepted/Rejected). This causes the analysis skill to skip those jobs even though they actually completed in Prow. When a payload is terminal, cross-check any Pending jobs by fetching their prowjob.json from GCS to get the real state. For example, a job reported as Pending by the release controller but showing failure in Prow will now correctly appear as Failed in the output. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (2)
✅ Files skipped from review due to trivial changes (1)
WalkthroughAdds constants and helpers to fetch and map Prow prowjob.json artifacts, then reconciles blocking job states in payloads by querying Prow for authoritative job statuses when release-controller reports Pending. ChangesProw State Reconciliation
Sequence Diagram(s)sequenceDiagram
participant FetchPayloads
participant ReleaseController
participant ProwGCS
FetchPayloads->>ReleaseController: read tag and job lists (blocking/async)
alt job state Pending
FetchPayloads->>ProwGCS: fetch prowjob.json via GCSWEB_URL for job
ProwGCS-->>FetchPayloads: prowjob.json with status.state
FetchPayloads->>FetchPayloads: map status.state via PROW_STATE_MAP
FetchPayloads->>ReleaseController: log mismatch and resolved state (stderr)
end
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested labels
Suggested reviewers
🚥 Pre-merge checks | ✅ 10✅ Passed checks (10 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: petr-muller, stbenjam The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Summary
Pendingafter a payload reaches a terminal state (Accepted/Rejected), even though the actual Prow job has completedfetch_payloads.pynow cross-checks anyPendingjobs by fetching theirprowjob.jsonfrom GCS to get the real stategcp-ovn-rt-upgrade-4.20-minorin 4.20.0-0.nightly-2026-05-18-050422 was reported as Pending by the release controller but had actually failed in ProwTest plan
gcp-ovn-rt-upgrade-4.20-minorfromPendingtoFailedAccepted/Rejectedpayloads)🤖 Generated with Claude Code
Summary by CodeRabbit
Bug Fixes
Refactor
Chores