Commit 0c989dc
committed
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>1 parent d5721ae commit 0c989dc
3 files changed
Lines changed: 16 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
| 85 | + | |
86 | 86 | | |
87 | 87 | | |
| 88 | + | |
| 89 | + | |
88 | 90 | | |
89 | 91 | | |
90 | 92 | | |
| |||
111 | 113 | | |
112 | 114 | | |
113 | 115 | | |
114 | | - | |
| 116 | + | |
115 | 117 | | |
116 | 118 | | |
| 119 | + | |
| 120 | + | |
117 | 121 | | |
118 | 122 | | |
119 | 123 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
88 | 95 | | |
89 | | - | |
| 96 | + | |
90 | 97 | | |
91 | 98 | | |
92 | 99 | | |
93 | 100 | | |
94 | 101 | | |
95 | 102 | | |
96 | 103 | | |
97 | | - | |
| 104 | + | |
98 | 105 | | |
99 | 106 | | |
100 | 107 | | |
| |||
113 | 120 | | |
114 | 121 | | |
115 | 122 | | |
116 | | - | |
| 123 | + | |
117 | 124 | | |
118 | 125 | | |
119 | 126 | | |
| |||
122 | 129 | | |
123 | 130 | | |
124 | 131 | | |
125 | | - | |
126 | 132 | | |
127 | 133 | | |
128 | 134 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
205 | 205 | | |
206 | 206 | | |
207 | 207 | | |
208 | | - | |
209 | 208 | | |
210 | 209 | | |
211 | 210 | | |
| |||
0 commit comments