Repository navigation
test(system-agent): reuse setup fixtures - #118636
Conversation
|
Codex review: needs maintainer review before merge. Reviewed August 3, 2026, 7:13 AM ET / 11:13 UTC. ClawSweeper reviewWhat this changesThe branch replaces repeated system-agent CLI backend and plugin-metadata setup with shared fixtures so mocked setup tests avoid unnecessary runtime discovery. Merge readinessKeep this PR open for normal maintainer landing: it is a focused test-performance cleanup that reuses the established system-agent fixture pattern and preserves the dedicated real metadata-resolver lifecycle test. No concrete patch defect was found, but the protected Priority: P3 Review scores
Verification
How this fits togetherSystem-agent setup tests exercise inference route selection and plugin lifecycle behavior using mocked configuration, CLI backend, and plugin metadata dependencies. The shared fixtures feed those tests while the production activation path continues to obtain metadata after a Codex runtime install and registry refresh. flowchart LR
A[System-agent test suites] --> B[Shared CLI backend fixture]
A --> C[Prepared plugin metadata fixture]
B --> D[Mocked setup activation]
C --> D
D --> E[Route and lifecycle assertions]
E --> F[Faster unit-test feedback]
Before merge
Agent review detailsSecurityNone. PR surfaceTests +17. Total +17 across 4 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep one shared fixture path for mocked system-agent tests, retain real resolver injection for registry-refresh lifecycle coverage, and merge once exact-head CI and the repository-local Codex review gate are complete. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR changes test-fixture setup rather than repairing a reported operator-visible defect. The body provides focused test and timing results for the affected test behavior. Is this the best way to solve the issue? Yes, with pending validation: the shared helper is the established owner for this mocked CLI backend contract, and the branch preserves the real resolver where plugin-install lifecycle behavior is specifically asserted. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 5b7272f9b55d. 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
|
|
Merged via squash.
|
|
ClawSweeper status: review started. I am starting a fresh review of this pull request: test(system-agent): reuse setup fixtures This is item 3/3 in the current shard. Shard 5/25. This placeholder means the worker is alive and reading the current context. I will edit this same comment with the actual review when the claws are done clicking. Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted. |
Co-authored-by: Peter Steinberger <[email protected]>
What Problem This Solves
System-agent unit tests repeatedly performed real CLI backend discovery and plugin metadata scans while exercising mocked routing and persistence behavior. This kept the compact large-8 test job on the critical path despite the tests not owning backend discovery.
Why This Change Was Made
The affected suites now reuse the existing contract-level Claude CLI fixture. Ordinary mocked Codex activations also reuse the suite's frozen plugin metadata snapshot, while the dedicated plugin-lifecycle test continues to inject the real resolver and prove the forced refresh path.
User Impact
No user-visible behavior changes. Maintainers get faster system-agent test feedback without changing test counts, workers, sharding, or lifecycle coverage.
Evidence