Generate autodl JSON for accepted payloads#80219
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository YAML (base), Central YAML (inherited) Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (1)
💤 Files with no reviewable changes (1)
WalkthroughThis PR adds AUTODL JSON artifact generation for accepted payloads. A new ChangesAUTODL Payload Triage Artifact Generation
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Suggested labels
Suggested reviewers
🚥 Pre-merge checks | ✅ 15✅ Passed checks (15 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Hi @not-stbenjam. Thanks for your PR. I'm waiting for a openshift member to verify that this patch is reasonable to test. If it is, they should reply with Tip We noticed you've done this a few times! Consider joining the org to skip this step and gain Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
The payload agent previously only produced autodl JSON when a payload was rejected and analyzed by Claude. This meant accepted payloads had no autodl record, making it impossible to measure success rates in downstream analytics. Add a deterministic bash function that generates the autodl JSON with the canonical schema for accepted payloads — no Claude invocation needed. The function is called from both early-exit paths (all blocking jobs succeeded, and terminal Accepted phase detected). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
0c46501 to
d36861f
Compare
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: not-stbenjam The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
/ok-to-test |
|
@not-stbenjam: all tests passed! Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
Summary
generate_accepted_autodlbash function that writes the autodl JSON using the canonicalpayload_triageschema with empty job/candidate fields andphase: "Accepted". No Claude invocation needed — just jq.Acceptedphase is detected via the release controller API.Test plan
validate.pyfrom ai-helpers locallyperiodic-ci-openshift-release-main-claude-payload-agent-no-slackagainst a known accepted payload to verify the autodl artifact appears in GCS🤖 Generated with Claude Code
Summary by CodeRabbit
This PR enhances the OpenShift payload analysis infrastructure by enabling deterministic generation of analytics records for accepted payloads.
Key Change:
The Claude payload agent previously generated analytics JSON (
autodl) artifacts only when payloads were rejected and required full Claude analysis. Accepted payloads had no analytics record, preventing downstream measurement of success rates.What's being fixed:
Added a new
generate_accepted_autodl()bash function to the payload agent that deterministically generates autodl JSON for accepted payloads without invoking Claude. The function:payload-analysis-${PAYLOAD_TAG}-autodl.jsonconforming to the canonicalpayload_triageBigQuery schemaWhen it runs:
The function is invoked from two early-exit code paths in the polling loop:
Impact on CI Infrastructure:
This change affects the
openshift/claude/payload/agentstep in the Claude payload triage workflow, enabling complete analytics coverage for both accepted and rejected payloads. This allows downstream analytics systems to accurately measure payload acceptance rates and trends.Testing:
validate.py)