Skip to content

fix: restore core lint for daemon install tests - #145115

Merged
steipete merged 1 commit into
mainfrom
codex/fix-daemon-install-test-lint
Sep 11, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/fix-daemon-install-test-lint

Conversation

@steipete

Copy link
Copy Markdown
Contributor

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 beforeEach already 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

  • Reproduced the exact original eslint(max-lines) failure and verified focused lint passes after the cleanup.
  • Complete daemon-install suite: 42 passing cases before and after, with identical ordered case names and results on Node 24.19.
  • Inverse-source comparison verifies every byte outside the one declaration is unchanged.
  • Full mapped check:changed gate and independent P2 review passed.

@clawsweeper

clawsweeper Bot commented Sep 11, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@steipete
steipete marked this pull request as ready for review September 11, 2026 17:53
@openclaw-barnacle openclaw-barnacle Bot added cli CLI command changes size: XS maintainer Maintainer-authored PR labels Sep 11, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 11, 2026
@clawsweeper

clawsweeper Bot commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 11, 2026, 1:58 PM ET / 17:58 UTC.

ClawSweeper review

What this changes

Removes 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
Reviewed head: b71b777aa847595718bed78097c69e381a15f0d6

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, behavior-preserving cleanup with appropriate reported validation and no actionable findings.
Proof confidence 🌊 off-meta tidepool Not applicable: The supplied repository state identifies maintainer-authored work, and this test-only cleanup changes no production behavior; the reported lint and 42-case comparisons support preservation.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The supplied repository state identifies maintainer-authored work, and this test-only cleanup changes no production behavior; the reported lint and 42-case comparisons support preservation.
Evidence reviewed 6 items Verified introduced change: The pinned merge-base-to-head diff only removes the initial auth-mock implementation; it does not change test cases, assertions, production code, or lint policy.
Defaults remain established before each test: The enclosing beforeEach resets the auth mock and supplies the same token-mode defaults at lines 263–268. Installer execution occurs inside test callbacks after setup.
Existing lint contract: Test files have a 1,000-line limit excluding blank lines and comments; the PR leaves this rule unchanged.
Findings None None.
Security None None.

How this fits together

Daemon-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
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests -7. Total -7 across 1 file.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 1 8 -7
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 1 8 -7

Review metrics

None.

Technical review

Best 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.

Labels

Label changes:

  • add P3: This is a bounded test-fixture cleanup with no production behavior change.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The supplied repository state identifies maintainer-authored work, and this test-only cleanup changes no production behavior; the reported lint and 42-case comparisons support preservation.

Label justifications:

  • P3: This is a bounded test-fixture cleanup with no production behavior change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The supplied repository state identifies maintainer-authored work, and this test-only cleanup changes no production behavior; the reported lint and 42-case comparisons support preservation.

Evidence

What I checked:

  • Verified introduced change: The pinned merge-base-to-head diff only removes the initial auth-mock implementation; it does not change test cases, assertions, production code, or lint policy. (src/cli/daemon-cli/install.test.ts:34, b71b777aa847)
  • Defaults remain established before each test: The enclosing beforeEach resets the auth mock and supplies the same token-mode defaults at lines 263–268. Installer execution occurs inside test callbacks after setup. (src/cli/daemon-cli/install.test.ts:263, b71b777aa847)
  • Existing lint contract: Test files have a 1,000-line limit excluding blank lines and comments; the PR leaves this rule unchanged. (.oxlintrc.json:382, b71b777aa847)
  • Current-main necessity: The supplied current-main revision still contains the duplicated initializer. Other endpoint differences are not attributed to this PR. (src/cli/daemon-cli/install.test.ts:34, 58a6953549d0)
  • Submitted validation and related work: The captured PR body reports focused lint passing, identical results for 42 cases before and after, and a passing changed-file gate. The linked refactor(tests): share Workboard Gateway registration fixtures #145106 concerns separate Workboard fixture consolidation, not a replacement fix. Tests were not executed during this read-only review. (b71b777aa847)
  • Area history and inspection limits: File history identifies prior work by Peter Steinberger and Jason (Json). Missing historical blobs prevented exact source-line attribution and release-file inspection; no introduction or shipped-fix claim is made. (src/cli/daemon-cli/install.test.ts, 58a6953549d0)

Likely related people:

  • Peter Steinberger: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Jason (Json): Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@steipete
steipete merged commit 3ac4215 into main Sep 11, 2026
165 checks passed
@steipete
steipete deleted the codex/fix-daemon-install-test-lint branch September 11, 2026 18:08
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cli CLI command changes maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant