Skip to content

fix(cli): restore lint after restart health growth - #109359

Merged
steipete merged 2 commits into
mainfrom
fix/restart-health-max-lines
Jul 17, 2026
Merged

steipete merged 2 commits into
mainfrom
fix/restart-health-max-lines

Conversation

@steipete

@steipete steipete commented Jul 16, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Resolves a problem where the core check-lint shard on main fails its max-lines rule for restart-health code and tests expanded by #109273, blocking unrelated PRs that lint the core CLI scope.

Why This Change Was Made

Splits managed-service restart health, externally supervised listener verification, and shared gateway probing into cohesive modules while preserving the existing restart-health.ts public exports. The tests follow the same seams and share their mock harness. No behavior, lint baseline, suppression, or changelog changes.

User Impact

Developers can run core lint without the restart-health max-lines failure. Runtime behavior is unchanged.

Evidence

  • node scripts/run-oxlint.mjs --tsconfig tsconfig.json src/cli/daemon-cli/restart-health*.ts — passed with no findings.
  • node scripts/run-vitest.mjs src/cli/daemon-cli/restart-health.test.ts src/cli/daemon-cli/restart-health-probe.test.ts src/cli/daemon-cli/restart-health-wait.test.ts src/cli/daemon-cli/restart-health-external.test.ts — 4 files passed, 48 tests passed.
  • pnpm format <9 touched files> — finished successfully.
  • git diff --check — passed.
  • Largest resulting production file: 381 lines. Largest resulting test file: 344 lines.
  • AI-assisted change; structured autoreview completed with no actionable findings on production and new split files. The legacy test file was scanner-excluded because its base content contains a pre-existing token-shaped fixture, then verified by lint and the full focused test run.

@openclaw-barnacle openclaw-barnacle Bot added cli CLI command changes size: XL maintainer Maintainer-authored PR labels Jul 16, 2026
@steipete
steipete force-pushed the fix/restart-health-max-lines branch from 1a2e9a0 to 55b2c70 Compare July 16, 2026 22:52
@steipete
steipete merged commit dbf3597 into main Jul 17, 2026
123 of 135 checks passed
@steipete
steipete deleted the fix/restart-health-max-lines branch July 17, 2026 00:14
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 17, 2026
* fix(cli): split restart-health over max-lines

* fix(cli): drop dead export from restart-health test helpers
zooqueen pushed a commit to zooqueen/openclaw that referenced this pull request Sep 11, 2026
* fix(cli): split restart-health over max-lines

* fix(cli): drop dead export from restart-health test helpers
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 size: XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant