fix(workflows): configure git identity for runner amends - #2911
Conversation
|
🤖 Review · |
PR Summary by QodoConfigure git identity in reusable workflows for runner amend commits
AI Description
Diagram
High-Level Assessment
Files changed (2)
|
Site previewPreview: https://45875a28-site.fullsend-ai.workers.dev Commit: |
Code Review by Qodo
1.
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Post-script amends (post-code.sh:323, :198) run on runner without git config. Workflows resolved BOT_LOGIN/GIT_BOT_EMAIL but never called `git config`. Sandbox has identity via env vars, but post-code.sh runs outside sandbox. Triggered when pre-commit hooks auto-fix files and retry logic (added #2852) attempts `git commit --amend --no-edit`. Fixes #2910 Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> Signed-off-by: Hector Martinez <hemartin@redhat.com>
2fd55e0 to
1329c6d
Compare
|
🤖 Finished Review · ✅ Success · Started 10:06 AM UTC · Completed 10:14 AM UTC |
ReviewFindingsMedium
Labels: PR fixes CI workflow files for code/fix agent runners |
|
🤖 Finished Retro · ✅ Success · Started 1:29 PM UTC · Completed 1:35 PM UTC |
Retro: PR #2911 — fix git identity for runner amendsTimeline: Issue #2910 filed at 09:35 UTC reporting code agent failures when pre-commit auto-fixes triggered Review quality: The fullsend review agent flagged only the mechanical protected-path finding (medium severity, human approval required). The qodo bot raised a scoping concern about Root cause: PR #2852 (merged 2026-07-01) added pre-commit auto-fix retry logic with Existing coverage: Several candidate proposals were filtered because existing open issues already cover them:
One new proposal targets a review quality gap in the original PR #2852 that introduced the regression. Proposals filed
|
Summary
Fixes #2910 — code/fix agent runs failed when pre-commit hooks auto-fixed files because
post-code.shamend operations ran on the runner without git identity configured.Changes
git config user.email/user.nameinreusable-code.ymlafter bot identity resolutiongit config user.email/user.nameinreusable-fix.ymlafter bot identity resolutionRoot cause
The workflows resolved
BOT_LOGINandGIT_BOT_EMAILbut never calledgit configwith them. The sandbox has identity via env vars (GIT_AUTHOR_EMAIL,GIT_COMMITTER_EMAIL) fromcode.yaml, butpost-code.shexecutes outside the sandbox on the runner.When pre-commit hooks auto-fixed files (line 323) or artifacts were stripped (line 198),
git commit --amend --no-editfailed with "Committer identity unknown".Test plan
🤖 Generated with Claude Code