Repository navigation
fix: restore core lint for daemon install tests - #145115
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 11, 2026, 1:58 PM ET / 17:58 UTC. ClawSweeper reviewWhat this changesRemoves duplicated auth-mock defaults from daemon-install tests so the file fits the existing lint limit while retaining per-test setup. Merge readiness✅ Ready for maintainer review Keep open: this is a useful, focused cleanup with no actionable correctness findings. Current main retains the redundant initializer, and the maintainer label protects this PR from automated closure. Priority: P3 Review scores
Verification
How this fits togetherDaemon-install tests exercise how OpenClaw prepares and installs its managed Gateway service. Mocked configuration, authentication, and service responses feed the installer, whose results and side effects are checked by assertions. flowchart LR
A[Test scenarios] --> B[Per-test mock setup]
B --> C[Gateway service installer]
C --> D[Mock service operations]
C --> E[Results and warnings]
D --> F[Existing assertions]
E --> F
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests -7. Total -7 across 1 file. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep auth defaults owned by the existing per-test setup while preserving all installer assertions and the lint limit. Do we have a high-confidence way to reproduce the issue? Not applicable to a product defect: this cleanup addresses a reported lint failure, and source inspection verifies the redundant defaults without executing tests. Is this the best way to solve the issue? Yes. Removing the unused initial implementation preserves the existing setup owner and avoids weakening lint policy or restructuring unrelated tests. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 58a6953549d0. 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.
|
Related: #145106
What Problem This Solves
Resolves a problem where core lint rejects otherwise unrelated PRs because the daemon-install test exceeds its existing 1,000-line limit by one line.
Why This Change Was Made
Remove the duplicated initial auth-mock implementation. The suite's
beforeEachalready resets the mock and supplies the same defaults before every case. All test scenarios and assertions remain unchanged; the test falls from 1,001 to 994 counted lines without changing the lint policy.User Impact
Restores the affected CI gate. No production behavior changes.
Evidence
eslint(max-lines)failure and verified focused lint passes after the cleanup.check:changedgate and independent P2 review passed.