Repository navigation
test(daemon): deduplicate service fixtures - #129296
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 25, 2026, 8:04 AM ET / 12:04 UTC. ClawSweeper reviewWhat this changesThe PR consolidates repeated launchd and systemd test setup into typed, platform-local fixture helpers while preserving explicit platform-specific cases. Merge readinessKeep open for normal maintainer review: this is an active, maintainer-labeled test-only refactor, and no blocking regression was found in the fixture changes. Priority: P3 Review scores
Verification
Live VerificationCommand: Result: PASS (completed) Assertions:
How this fits togetherDaemon installation selects launchd on macOS and systemd on Linux, then installs and controls the gateway service. These two suites exercise the platform service commands, generated definitions, environment handling, and lifecycle failures. flowchart LR
A[Gateway install command] --> B[Daemon service registry]
B --> C[Launchd installer]
B --> D[Systemd installer]
C --> E[Launchd test fixtures]
D --> F[Systemd test fixtures]
E --> G[Lifecycle assertions]
F --> G
Before merge
Agent review detailsSecurityNone. PR surfaceTests -382. Total -382 across 2 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep fixture helpers local to each platform suite and preserve the explicit command, environment, rollback, and lifecycle assertions they support. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR refactors test fixtures rather than reporting a user-facing defect. Is this the best way to solve the issue? Yes: typed, platform-local fixtures remove repeated mechanics without creating a production seam or hiding the platform-specific assertions. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 05a3b2ac82b0. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
* test(daemon): deduplicate service fixtures * test(daemon): type launchd uninstall fixtures
What Problem This Solves
Removes duplicated launchd and systemd fixtures that repeated service definitions, environment setup, and assertions across the daemon test suites.
Why This Change Was Made
Both platform suites now use typed, owner-local builders for their mechanical service setup while keeping platform-specific commands, paths, permissions, environment values, and failure cases explicit at each test.
Production LOC: +0/-0 (net 0) | Tests: +768/-1150 (net -382)
User Impact
There is no user-visible behavior change. Daemon installation and lifecycle coverage remains intact while the platform suites are easier to review and extend.
Evidence