Repository navigation
test(tooling): deduplicate updater deployment fixtures - #124304
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 15, 2026, 7:45 PM ET / 23:45 UTC. ClawSweeper reviewWhat this changesThe PR replaces repeated managed-LaunchAgent setup in three live-updater recovery tests with one file-local fixture factory. Merge readinessNo blocking findings: this is a coherent test-only consolidation that preserves the three distinct updater recovery scenarios. It should remain open for normal maintainer handling. Priority: P3 Review scores
Verification
How this fits togetherThe live-updater test suite supplies isolated checkout and LaunchAgent fixtures to the updater’s maintenance flow, then verifies lock retention, service recovery, and fail-closed cleanup outcomes. This PR changes only that test setup layer; the updater runtime remains unchanged. flowchart LR
A[Isolated updater test] --> B[LaunchAgent fixture]
B --> C[Updater maintenance flow]
C --> D[Recovery or fail-closed path]
D --> E[Lock and service assertions]
Before merge
Agent review detailsSecurityNone. PR surfaceTests -17. Total -17 across 1 file. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep the fixture factory local to this test module and merge it once normal exact-head checks complete. Do we have a high-confidence way to reproduce the issue? Not applicable: the PR changes test fixture structure rather than reporting a user-facing failure; the retained tests cover the affected recovery paths. Is this the best way to solve the issue? Yes: one local factory removes repeated setup while returning fresh mutable fixture data for each independent recovery case. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against bf4ec4b58af0. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Land-ready proof for
A recovery review started only because the PR comment publisher failed; the first durable exact-head artifact is complete and finding-free. Test delta: -17 lines. One file-local helper now owns the identical lock, plist, and deployment setup; successful recovery, live process-group lock retention, and Windows manual-recovery outcomes remain separate with all assertions intact. Production is unchanged. No behavior, docs, changelog, schema, protocol, migration, or operator-state change. |
|
Merged via squash.
|
What Problem This Solves
Three adjacent live-updater tests repeated the same maintenance lock path, LaunchAgent plist creation and mode, and managed gateway deployment object. The tests protect distinct recovery outcomes, but their deployment setup was maintenance-only duplication.
Why This Change Was Made
A file-local
createManagedLaunchAgentFixturenow creates a fresh deployment object and plist for each test. The successful post-timeout recovery, live POSIX process-group fail-closed path, and Windows indeterminate-cleanup manual-recovery path remain separate and retain all outcome, ordering, process, and lock assertions.User Impact
None. This is test-only fixture deduplication; updater behavior and production code are unchanged.
Evidence
git diff --checkand structured autoreview — clean.