-
Notifications
You must be signed in to change notification settings - Fork 6
Add agentic fix workflow for codegen build failures #101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+1,684
−8
Merged
Changes from 1 commit
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev
Previous commit
Address PR #101 review feedback from copilot-pull-request-reviewer
This commit addresses all 4 review comments from #101 (review) --- ## .github/workflows/codegen-check.yml ### Review comment (line 128): --ref "$BRANCH" will fail for PRs that don't contain the workflow file Copilot said: `gh workflow run` with `--ref "$BRANCH"` requires `codegen-agentic-fix.lock.yml` to exist on the PR branch. Dependabot or codegen-only PRs branched before this workflow was added won't have it, causing "workflow not found". Fix applied: Removed `--ref "$BRANCH"` from the `gh workflow run` call. GitHub now resolves the workflow file from main (default branch). The target branch is already passed via `-f branch="$BRANCH"` input. ### Review comment (line 95): Downstream steps run even when regen push fails Copilot said: `continue-on-error: true` on the push step means downstream steps (mvn verify, agentic fix trigger) run against a branch that doesn't have the regenerated code, so the agent can't reproduce the failure. Fix applied: Added a new step "Fail if regenerated files could not be pushed" that exits with a clear error message and manual fix instructions when the push is rejected (Dependabot read-only token, fork PRs). Gated Java setup, mvn verify, and agentic fix trigger on `steps.push-regen.outcome == 'success'`. ## .github/workflows/update-copilot-dependency.yml ### Review comment (line 211): Same --ref "$BRANCH" issue as codegen-check.yml Copilot said: Same dispatch-from-PR-branch problem. Fix applied: Removed `--ref "$BRANCH"` from the `gh workflow run` call, identical to the codegen-check.yml fix. ## .github/workflows/codegen-agentic-fix.md ### Review comment (line 85): mvn verify output truncated by tail -100 Copilot said: `mvn verify 2>&1 | tail -100` hides root compilation errors that appear early in the log. The agent may loop unproductively without seeing the actual cause. Fix applied: Changed both `mvn verify` invocations (Step 1 reproduce and Step 2 verify) from `tail -100` to `tee /tmp/mvn-verify.log`. Added guidance telling the agent to check the full log file for root causes. Recompiled the lockfile with `gh aw compile`. ## .github/workflows/codegen-agentic-fix.lock.yml Recompiled via `gh aw compile` to reflect the updated .md instructions. Signed-off-by: Ed Burns <edburns@microsoft.com>
- Loading branch information
commit 0c989dc08a2bb4bee59cd70aadc29d90d044fe28
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.