Repository navigation
fix: prevent sibling installs from breaking test runs - #154096
Conversation
|
🦞👀 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. Reviewed September 20, 2026, 6:05 PM ET / 22:05 UTC (Revision 2). ClawSweeper reviewWhat this changesThe PR makes fresh dependency installs clone or copy package files, documents existing-install limitations, and adds a real pnpm regression covering sibling checkout isolation. Merge readiness✅ Ready for maintainer review The fix remains useful: pinned main and the latest release lack install isolation. No introduced correctness or security defect was found, and the latest fixture repair preserves the original assertions. Priority: P2 Review scores
Verification
How this fits togetherOpenClaw’s source test runner checks compiled inputs for content and metadata changes. Dependency installation determines whether separate checkouts share file metadata that can accidentally trip those checks. flowchart TD
A[Shared package store] --> B[Clone or copy installation]
B --> C[First checkout dependencies]
B --> D[Sibling checkout dependencies]
C --> E[Compiler input verification]
E --> F[Test run result]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +127, Config +2. Total +129 across 3 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep dependency isolation at pnpm’s installation boundary while preserving compiler integrity checks and explicit guidance for older hardlinked installs. Do we have a high-confidence way to reproduce the issue? Yes, source establishes the mechanism: Linux pnpm imports share hardlinked inodes, while compiler verification rejects changed ctime. The PR reports a failing original two-install scenario; this review did not execute it. Is this the best way to solve the issue? Yes. Selecting pnpm’s existing isolation mode fixes the producer of shared metadata and retains meaningful edit-and-restore detection. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 2275c485045a. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
Merged via squash.
|
* fix(test): isolate dependency files across source checkouts * test: preserve Corepack cache in install isolation fixture
What Problem This Solves
Fixes compiler-input verification failing when another source checkout installs dependencies during a test run.
User Impact
Fresh source installs keep dependency file metadata independent across checkouts. Existing hardlinked installs require a fresh task-owned install; an up-to-date install does not migrate them. Filesystems without clone support use copies, which can use more disk space.
Why This Change Was Made
pnpm's Linux hardlink imports let a sibling install change an active input's ctime without changing its bytes. Selecting pnpm's existing
clone-or-copymethod fixes that at installation while preserving artifact hashes and the ctime check that detects source edits followed by restoration.Evidence
pnpm test test/scripts/pnpm-install-isolation.test.ts --maxWorkers=1on Node 24.20.0 and pnpm 12.4.0; The repaired fixture takes 230ms in a local reproduction of CI's direct-Node launcher.0c9732e408752207a19feecadc94ac4194fb2ae6is green: 149 passed, 15 skipped, none pending or failing. Full lint and both core lint jobs passed. The repaired fixture passed in 132ms inside its original 26-file, 603-test hosted shard. CI run.The first hosted run exposed a fixture setup defect: its nested empty HOME hid CI's provisioned pnpm because the child environment dropped
COREPACK_HOME. Reproducing the actual CI launcher failed offline before either install (77ms test / 3.032s wall). Passing the existing test-home owner's resolved cache location fixed it (230ms / 2.784s); all 66 runner, test-home, and artifact-verifier sibling tests passed through the same launcher in 37.264s. The final two-line fixture repair also passed root-test types, typed lint, formatting, and fresh independent P2 review. No network access, retry, timeout, or integrity assertion was relaxed.