CNTRLPLANE-2737: Add pre-commit quality review to jira-agent pipeline#74809
CNTRLPLANE-2737: Add pre-commit quality review to jira-agent pipeline#74809bryan-cox wants to merge 1 commit intoopenshift:mainfrom
Conversation
|
@bryan-cox: This pull request references CNTRLPLANE-2737 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.22.0" version, but no target version was set. DetailsIn response to this:
Instructions 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 openshift-eng/jira-lifecycle-plugin repository. |
|
Skipping CI for Draft Pull Request. |
0d9bd8a to
73af4be
Compare
73af4be to
044f5dd
Compare
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: bryan-cox 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 |
044f5dd to
5fa7c47
Compare
|
/pj-rehearse periodic-ci-openshift-hypershift-main-periodic-jira-agent |
|
@bryan-cox: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel. |
5fa7c47 to
f18c630
Compare
|
/pj-rehearse periodic-ci-openshift-hypershift-main-periodic-jira-agent |
|
@bryan-cox: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel. |
|
@bryan-cox: 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. |
The jira-agent process step now runs a three-phase pipeline per issue: Phase 1 (Solve): Runs /jira-solve to implement, commit, and push changes to the fork branch. PR creation is deferred to Phase 3 so the review can run on the code before the PR exists. Phase 2 (Review): Runs /code-review:pre-commit-quality-review from ai-helpers in a clean Claude session. The review examines the diff against main, fixes any quality issues, and pushes corrections to the same branch. If the skill is unavailable or fails, the pipeline continues to Phase 3. Phase 3 (PR): Creates a draft PR via gh CLI with a structured body referencing the Jira issue and listing commits. Also resets the repo to main between issues to ensure clean state when processing multiple issues per run. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
f18c630 to
1663eeb
Compare
|
[REHEARSALNOTIFIER]
Interacting with pj-rehearseComment: Once you are satisfied with the results of the rehearsals, comment: |
Summary
/code-review:pre-commit-quality-reviewfrom ai-helpers as a second Claude session in the jira-agent prow jobgh pr createinstead of by Claude during jira-solveChanges
The jira-agent process step now runs a three-phase pipeline per issue:
Phase 1 - Solve: Runs
/jira-solveto implement, commit, and push changes to the fork branch. TheFORK_CONTEXTinstructions now tell Claude to skip PR creation so the review can run first.Phase 2 - Review: Runs
/code-review:pre-commit-quality-reviewfrom ai-helpers in a clean Claude session. The review examines the diff against main using Go language and HyperShift profile skills, fixes any quality issues found, and pushes corrections to the same branch. If the skill is unavailable or the review fails, the pipeline continues gracefully.Phase 3 - PR Creation: Creates a draft PR via
gh pr createwith a structured body referencing the Jira issue and listing all commits (including any review fixes).Additional improvements:
Jira
https://issues.redhat.com/browse/CNTRLPLANE-2737
Test plan
Always review AI generated responses prior to use.
🤖 Generated with Claude Code via
/jira:solve [CNTRLPLANE-2737](https://issues.redhat.com//browse/CNTRLPLANE-2737)