fix(tests): stop git_init from persisting identity into real repos - #2333
Conversation
Fixes #2162. Add scripts/test-git-helpers.sh with git_init_safe (refuses paths inside the current checkout) and git_test_config (per-invocation identity, no config writes). Adopt across the six listed harnesses. Co-authored-by: Kyle Sexton <kyle-sexton@users.noreply.github.com>
|
Bugbot is not enabled for your account, so this pull request was not reviewed. Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs. |
|
Claude finished @kyle-sexton's task in 1m 10s —— View job Security Review
Scope: This PR only touches test harness scripts ( No security issues found. Notes from the review:
Supply-chain/unpinned-action/permissions/trigger-pattern concerns are out of scope for this lane per instructions (zizmor's advisory covers those), and this PR doesn't touch any workflow files anyway. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c3167fff12
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
Claude finished @kyle-sexton's task in 4m 30s —— View job Code review
Reviewed against Note: I was not able to execute the shell test suites or
|
|
Claude has reviewed this PR 1 time. The lane skips further automatic reviews after 5; deleting this comment resets the count. |
|
Claude finished @kyle-sexton's task in 2m 36s —— View job Security Review
Scope: This PR only touches test harness scripts ( Finding 1 —
|
Co-authored-by: Kyle Sexton <kyle-sexton@users.noreply.github.com>
|
Warning Automated security review did not complete — this is an infrastructure failure, not a review verdict. Treat any Claude comment on this PR (including a placeholder like "I'll analyze this and get back to you") as incomplete, not "no findings."
The check is green on purpose, and it is not evidence. It certifies that a security pass ran, and this one did not complete — but the cause is outside this PR's control, so merging is deliberately left unblocked rather than locking every merge for the length of the outage. Nothing was reviewed at this head. Where this check is required, it is satisfied without that evidence; a human should review security-sensitive changes here before merging. Re-run the job to retry the review; a new push also retries it only if the caller's Re-running does NOT help for every class:
|
…rity tests Co-authored-by: Kyle Sexton <kyle-sexton@users.noreply.github.com>
Co-authored-by: Kyle Sexton <kyle-sexton@users.noreply.github.com>
Co-authored-by: Kyle Sexton <kyle-sexton@users.noreply.github.com>
94f38fc to
813a41e
Compare
…2333) Fixes #2162. Adds `scripts/test-git-helpers.sh` with `git_init_safe` (refuses paths inside the current checkout) and `git_test_config` (per-invocation identity). Adopted across the six harnesses named in the issue. ## Related Fixes #2162. Shared git test harness adoption across plugin test scripts. --------- Co-authored-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: Kyle Sexton <kyle-sexton@users.noreply.github.com>
|
Warning Automated review did not complete — this is an infrastructure failure, not a review verdict. Treat any Claude comment on this PR (including a placeholder like "I'll analyze this and get back to you") as incomplete, not "no findings."
Re-run the job to retry the review. A new push re-triggers this lane only if the caller's |
…es fixtures (#2368) Fixes #2358 ## Summary - Set `commit.gpgsign false` repo-locally in `make_repo` so fixture setup does not attempt GPG signing on machines with global `commit.gpgsign=true`. - Matches the pattern already used in `worktree-create-gate.test.sh` and `scripts/test-git-helpers.sh`. ## Test plan - [x] `python3 -m unittest tests.test_prune_babysit_worktrees` (45/0) ## Related - #2309 — same class of defect fixed in shell suites - #2333 — shared `test-git-helpers.sh` contract this mirrors Co-authored-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: Kyle Sexton <kyle-sexton@users.noreply.github.com>
Fixes #2162.
Adds
scripts/test-git-helpers.shwithgit_init_safe(refuses paths inside the current checkout) andgit_test_config(per-invocation identity). Adopted across the six harnesses named in the issue.Related
Fixes #2162. Shared git test harness adoption across plugin test scripts.