test: disable commit signing in ephemeral test repos - #4301
Conversation
Prevent unit tests and eval fixtures from invoking gitsign when developers have commit.gpgsign enabled globally. Signed-off-by: Barak Korren <bkorren@redhat.com> Co-authored-by: Cursor <cursoragent@cursor.com>
|
🤖 Finished Review · ✅ Success · Started 11:29 AM UTC · Completed 11:36 AM UTC |
PR Summary by QodoDisable commit signing in ephemeral git repos used by tests/fixtures
AI Description
Diagram
High-Level Assessment
Files changed (3)
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Code Review by Qodo
1.
|
|
Looks good to me |
|
How this relates to #3858? There is no signing in place yet, right? |
It happens on my machine because I enabled signing globally |
|
🤖 Finished Retro · ✅ Success · Started 7:52 AM UTC · Completed 8:00 AM UTC |
|
PR #4301 was a well-scoped test infrastructure change that disabled commit signing in ephemeral test repos. The review agent correctly approved it in ~7 minutes with zero findings, and the PR merged with two human approvals. Two improvement opportunities were identified: (1) the review agent re-read changed files 8 times unnecessarily across sub-agent boundaries, wasting ~32% of file reads on duplicates; (2) a human reviewer surfaced a valuable contextual question about the relationship to open PR #3858 (gitsign feature) that the review agent did not identify. Proposals filed
|
Summary
go-testenv safety net so future test git subprocesses skip gitsignRelated Issue
N/A — local developer ergonomics (gitsign rate limits during
make go-test)Changes
testGitEnv()ininternal/gitfetch/gitfetch_test.gowithcommit.gpgsign=falseviaGIT_CONFIG_*and local repo config after initGIT_CONFIGvars inMakefilego-testtargetcommit.gpgsign falseon eval fixture repos ineval/scripts/setup-fixture.shTesting
make go-testpasses (viamise exec)commit.gpgsign=falsewhile worktree still inherits globaltrueChecklist
!for breaking changes)Made with Cursor