Make payload agent harness configurable - #82663
Conversation
|
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. |
|
[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 |
WalkthroughThe payload agent now supports Claude Code and Codex selection, validates harness-specific prerequisites, invokes the selected model through ChangesPayload agent harness support
Estimated code review effort: 3 (Moderate) | ~20 minutes Suggested reviewers: Sequence Diagram(s)sequenceDiagram
participant PayloadAgent
participant AgenticCI
participant SelectedHarness
participant Slack
PayloadAgent->>AgenticCI: Run payload analysis with selected harness and model
AgenticCI->>SelectedHarness: Execute analysis command
SelectedHarness-->>PayloadAgent: Return analysis output and exit status
PayloadAgent->>SelectedHarness: Request Slack-ready summary
SelectedHarness-->>PayloadAgent: Return summary JSON
PayloadAgent->>Slack: Send harness/model contextualized summary
🚥 Pre-merge checks | ✅ 15✅ Passed checks (15 passed)
✨ 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 |
|
[REHEARSALNOTIFIER]
Prior to this PR being merged, you will need to either run and acknowledge or opt to skip these rehearsals. Interacting with pj-rehearseComment: Once you are satisfied with the results of the rehearsals, comment: |
What changed
AGENT_HARNESSto the payload-agent step, defaulting toclaude-codeand acceptingcodex.CLAUDE_MODELand newCODEX_MODELparameters.Why
agentic-ci #292 adds the Codex harness, and ai-helpers #657 adds the Codex binary and installs ai-helpers as agent skills in the payload-agent image. This change lets payload-agent jobs select that harness while keeping the current Claude behavior as the default.
Codex credentials are intentionally not mounted here. A job selecting
codexmust provideCODEX_API_KEY,CODEX_ACCESS_TOKEN,OPENAI_API_KEY, or an existing$CODEX_HOME/auth.jsonthrough its execution environment.Validation
bash -non the payload-agent commandshellcheck -S warningon the payload-agent commandmake registry-metadatamake ci-operator-checkconfigagentic-ci run --backend local --harness codexsmoke test with OTEL enabled: Codex returnedpayload harness smoke test passed, exit code 0, one API request, and a populated token summarymake validate-step-registrycurrently fails before validation because the repository target passes the removed--prow-configflag to the latest validator image. The registry and configs successfully loaded throughmake ci-operator-checkconfig.Summary by CodeRabbit
payload-agentharness selection viaAGENT_HARNESS, defaulting to Claude Code and supporting Codex.--prow-configflag.