Repository navigation
test(git): isolate nested repository fixtures - #190085
Conversation
Co-authored-by: RomneyDa <[email protected]>
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesThe PR clears additional inherited Git routing and counted configuration variables and disables global configuration for temporary repository fixtures. Example: A test process inherits GIT_CONFIG_COUNT=1, GIT_CONFIG_KEY_0=openclaw.fixture, and GIT_CONFIG_VALUE_0=caller-value.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored PR makes a focused repair to nested Git fixture isolation; no introduced correctness or security defect was found. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe shared test helper turns the parent process environment into an environment for Git subprocesses in temporary repositories; callers can then overlay intentional fixture settings. flowchart LR
A[Parent process environment] --> B[Shared fixture environment helper]
B --> C[Remove inherited Git context]
C --> D[Caller fixture overrides]
D --> E[Git subprocess in temporary repository]
Technical reviewBest possible solution: Keep the isolation repair in the existing shared helper while preserving explicit caller overrides. Do we have a high-confidence way to reproduce the issue? Source shows inherited counted and global configuration surviving the main helper; the added regression exercises that environment contract, but no tests were executed during this read-only review. Is this the best way to solve the issue? The patch repairs the existing environment owner directly, adds no parallel mechanism, and leaves post-helper overrides effective. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 03aec1b175a6. Provenance checked
TestingProof path: unit tests only. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests +41. Total +41 across 2 files. Added test files: 1. View PR surface stats
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 1, 2026, 12:41 AM ET / 04:41 UTC. |
Co-authored-by: roboclaw-bot <[email protected]> Co-authored-by: RomneyDa <[email protected]>
Problem
RRI-56: nested fresh-checkout tests can inherit the release controller or outer process Git context.
createNestedGitEnv()already removed several repository-routing variables, but retained countedGIT_CONFIG_KEY_n/GIT_CONFIG_VALUE_nentries and the caller global Git config. That can redirect or contaminate Git operations intended for an isolated fixture.Solution
createNestedGitEnv().Evidence
git diff --checkpassed.