Skip to content

fix(test): split handoff boundary test support under the line cap - #149433

Closed
steipete wants to merge 1 commit into
mainfrom
steipete/fix-handoff-boundary-support-line-cap-20260915
Closed

steipete wants to merge 1 commit into
mainfrom
steipete/fix-handoff-boundary-support-line-cap-20260915

Conversation

@steipete

@steipete steipete commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

main is red on check-lint-core-2 since #149150; this restores the 700-line cap by extraction, no behavior change.

What Problem This Solves

The handoff boundary support file has 713 physical lines (701 counted by eslint(max-lines), maximum 700). This causes check-lint-core-2 to reject merge refs containing #149150, including #149369 (job 104556087628), #149378, and #149372.

User Impact

No user-visible behavior changes. This removes the shared lint blocker so the affected PRs can proceed through CI and maintainer review.

Why This Change Was Made

Move the recovery-health fixture setup into one sibling test-support module and consume it from the existing boundary runner. Database initialization, generated fixture text, and execution order stay unchanged. The lifecycle test imports remain valid; no re-export or compatibility path is added.

Files:

  • src/infra/update-managed-service-handoff-boundary.test-support.ts: 713 → 686 lines.
  • src/infra/update-managed-service-handoff-boundary.recovery.test-support.ts: new, 51 lines.

Risk is limited to the extracted test fixture import/call boundary. No production code, lint settings, suppressions, baselines, or changelog changes.

Evidence

  • Before: node_modules/.bin/oxlint src/infra/update-managed-service-handoff-boundary.test-support.ts exits 1 with File has too many lines (701).

  • After: node_modules/.bin/oxlint src/infra/update-managed-service-handoff-boundary.test-support.ts src/infra/update-managed-service-handoff-boundary.recovery.test-support.ts exits 0.

  • The existing max-lines rule supplies the failing-before/passing-after regression proof; no duplicate line-count test is added.

  • Generated recovery fixture template verified byte-for-byte unchanged.

  • P2 autoreview: scoped-clean, no actionable findings.

  • node scripts/run-vitest.mjs src/infra/update-managed-service-handoff-lifecycle.test.ts: 181 tests passed, 1 file; every test importing either support module is covered.

  • node scripts/check-changed.mjs: passed (core test types, changed-file lint, and selected guards).

  • node_modules/.bin/oxfmt --check src/infra/update-managed-service-handoff-boundary.test-support.ts src/infra/update-managed-service-handoff-boundary.recovery.test-support.ts: passed.

  • git diff --check: passed.

  • Exact-head check-lint-core-2: passed.

  • node scripts/watch-pr-ci.mjs 149433 088f28a7c46c6de2810b421b6f0c0f5a588515af --completion ci-run: watching CI run 35024241635; remaining jobs are queued, with no failures observed.

Landing remains with the coordinating maintainer.

Restore the 700-line lint cap blocking main and dependent merge refs by extracting recovery-health fixture setup into a sibling test-support owner. Preserve generated fixture text and managed-service behavior.
@clawsweeper

clawsweeper Bot commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review in progress

ClawSweeper is reviewing this revision. This supersedes any previous blocked status.

View the workflow run.

@steipete
steipete marked this pull request as ready for review September 15, 2026 21:12
@openclaw-barnacle openclaw-barnacle Bot added size: S maintainer Maintainer-authored PR labels Sep 15, 2026
roboclaw-bot pushed a commit that referenced this pull request Sep 15, 2026
Reuse the reviewed correction from #149433 unchanged to unblock PR #149240 against current main. This only extracts recovery-health test fixture setup; production updater behavior and lint limit remain unchanged.

(cherry picked from commit 088f28a)

Co-authored-by: RomneyDa <[email protected]>
Co-authored-by: Dallin Romney <[email protected]>
@vincentkoc

Copy link
Copy Markdown
Member

I am coordinating native landing of this source-reviewed fixture extraction as the canonical prerequisite for #148962, #149079, and #149085. The exact-head lint check passes; remaining qualification and review still need to clear. I will preserve this contributor branch and land this PR as-is through the native workflow once qualified. Please flag any active landing owner or conflicting in-flight work here before branch or merge changes.

@steipete

Copy link
Copy Markdown
Contributor Author

Superseded: main was unblocked by #149423 (merged as 6c28739), which brings the fixture file under the 700-line cap a different way. Closing this duplicate extraction; no other changes were intended here.

@steipete steipete closed this Sep 15, 2026
@steipete
steipete deleted the steipete/fix-handoff-boundary-support-line-cap-20260915 branch September 15, 2026 21:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants