Repository navigation
test: reuse publish workflow repository fixtures - #133438
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 30, 2026, 2:27 PM ET / 18:27 UTC. ClawSweeper reviewWhat this changesThe branch caches separate copied Git-repository fixtures for base and publish performance-workflow test cases so publish setup is not rebuilt for each case. Merge readinessKeep open: this maintainer-owned test-only PR has a coherent, isolated fixture optimization and no source-supported correctness finding. Exact-head CI remains in progress, and the latest filtered ClawSweeper comment should be checked for any rank-up move before landing. Priority: P3 Review scores
Verification
How this fits togetherThe performance workflow tests construct temporary OpenClaw and reports Git repositories, then execute real workflow shell steps against isolated copies. This change only alters the reusable test-fixture setup that supplies those scenarios. flowchart LR
A[Test case options] --> B[Fixture builder]
B --> C{Base or publish mode}
C --> D[Cached repository snapshot]
D --> E[Per-case copied workspace]
E --> F[Performance workflow commands]
F --> G[Assertions and cleanup]
Before merge
Agent review detailsSecurityNone. PR surfaceTests +5. Total +5 across 1 file. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Land only after exact-head CI is green and the final review comment confirms no unresolved rank-up move; retain the separate immutable base and publish snapshots. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR changes test-fixture construction rather than reporting a user-facing defect. Is this the best way to solve the issue? Yes: separating immutable base and publish snapshots preserves the existing per-case copy boundary while avoiding repeated publish-repository setup. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 32edafc91e2e. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
What Problem This Solves
Performance-workflow fixtures already reuse a copied base repository, but publish-mode cases still rebuild their reports repository for every case. That repeats repository initialization, remote setup, fetch, checkout, configuration and commit work before exercising the real workflow.
Why This Change Was Made
Keep two immutable fixture snapshots, one for base cases and one for publish cases, using the existing temporary-directory tracker and copy mechanism. Construct the reports repository before capturing the publish snapshot, then copy complete repositories into each case's workspace. Per-case inputs and race mutations happen only after copying. Specialized baseline and duplicate variants retain fresh construction.
Use a relative local fetch source during setup so FETCH_HEAD's source description remains valid in the copied workspace. Its object ID and the configured public origin URL retain their meanings. Both destination SHA reads, transport routing, inspection closures and all production workflow commands remain per-case.
User Impact
Test execution only. Seven setup Git launches are removed per warm publish fixture, from nine to two. No product code, dependencies, sharding, concurrency, selection, assertions, command deadlines, real process lifecycle or persistence coverage change. Production/tooling: +0/-0. Test support: +19/-14, net five lines.
Evidence
Remaining Coverage
All workflow command traces, destination-specific paths, real repositories, persistence, race creation, cancellation and cleanup assertions remain. The cache stores only completed setup state before scenario mutation. No live process, mutable Git state or transport closure is shared between cases.