Skip to content

refactor: clear repository lint warnings - #159133

Merged
steipete merged 1 commit into
mainfrom
perf/l93-lint-warnings
Sep 26, 2026
Merged

steipete merged 1 commit into
mainfrom
perf/l93-lint-warnings

Conversation

@steipete

@steipete steipete commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Clears every warning found by the full repository lint census on main at cafb3a4d1ca20380b770a02e5fb31296452d3a92, following the maintainer request to fix warnings too. Related: #159099 and #159102.

File Rule Complete diagnostic
src/gateway/server-methods/requester-cron-authority.integration.test.ts eslint(max-lines) File has too many lines (1002). Maximum allowed is 1000.
src/state/openclaw-state-worker-runtime.ts eslint(max-lines) File has too many lines (705). Maximum allowed is 700.

User Impact

No user-visible behavior change. The lint lanes are warning-free without suppressions, baseline changes, raised limits, or changelog edits. Schemas, database admission, transaction boundaries, and update behavior are unchanged.

Why This Change Was Made

Moves the complete creator-transport describe block into a sibling test file and shares its existing fixtures and transport helpers with the requester-continuation suite. Both files retain database-worker routing. Moves the existing Web Push command predicate to the Web Push executor owner, preserving all 13 command names, their ordering, and when the dispatcher opens the database.

Evidence

  • Full CI-equivalent census and rerun: CI=true GITHUB_ACTIONS=true OPENCLAW_LOCAL_CHECK=0 pnpm lint --threads=8. Before: exactly the two warnings above and zero errors. After: all core/UI/packages, extensions, and scripts semantic/type-aware lint shards report 0 warnings and 0 errors; i18n verification and Stylelint pass.
  • Baseline pnpm tsgo:all passes without diagnostics. Candidate CI type lanes (pnpm tsgo:prod, pnpm check:test-types, pnpm tsgo:scripts) also pass without warnings or errors.
  • Both moved describe blocks and all six helper bodies were compared with the original source; only exports and the explicit hook installer are added around shared helpers. No assertions or test cases changed.
  • Focused tests: 48 passed across the two Cron files, Web Push integration/profile-read coverage, and worker-import boundaries. Both split files also pass standalone with --maxWorkers=1.
  • pnpm check:import-cycles && pnpm check:madge-import-cycles: 0 cycles in both checks.
  • node scripts/check-changed.mjs passes, including strict local lint, ratchets, types, unused-export scans, and boundary guards.
  • Deslop is clean. Independent Codex review before commit and the requested branch-mode review are both scoped-clean through P2.
Test file Before After Standalone command wall
requester-cron-authority.integration.test.ts 15 10 52.51 s before; 77.97 s after
cron-creator-transports.integration.test.ts — 5 29.61 s after
Total 15 15

Timings include worker preparation and imports and were recorded during the repository audit; they are cost measurements, not a performance comparison. The retained integration cases exercise real admitted runs, Cron persistence, and CLI/embedded transport authority; no new cases, timers, or worker pins were added.

Hosted follow-through: CI run 36267170492 used the reviewed head fd2bf6c93c1891025bcded5e49e80256323f532b. All nine hosted lint jobs passed, and every emitted lint summary reports 0 warnings and 0 errors. Hosted lint job walls were 64–349 seconds. GitHub merged immediately when squash auto-merge was requested, before this run completed.

The overall historical run failed on newer main fixtures from #158776 and startup recovery: missing required Cron schedulers caused two typecheck stripes and seven Cron history cases to fail. These were outside this patch and absent from its audited base. The owning maintainer repairs landed as 0830a3fa459ab358e59ce7a5084f3bb5fcad971a and c0e6951d6f02d3eabd4bc13cf8e9fa9e77d290ac. On the latter main snapshot, independent follow-through verified the full lint pipeline at 0 warnings / 0 errors, both exact failed CI type-graph selections (ten graphs) without diagnostics, and all 13 cases across the three repaired fixtures. The old failed merge snapshot was not rerun. CI cancelled remaining test jobs after those fixture failures, so no successful hosted per-file timing is claimed for the moved tests.

Merge verified: a67cf7789b37c564b3db61ecce25bf297d195778 is an ancestor of current origin/main, and all six changed files match the reviewed patch.

Split Cron creator transport and requester continuation coverage with shared fixtures, retaining all 15 tests and database-worker routing. Move Web Push command classification to its executor owner. Preserve behavior without suppressions or limit changes.
@clawsweeper

clawsweeper Bot commented Sep 26, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@openclaw-barnacle openclaw-barnacle Bot added gateway Gateway runtime size: XL labels Sep 26, 2026
@steipete
steipete marked this pull request as ready for review September 26, 2026 19:45
@steipete
steipete merged commit a67cf77 into main Sep 26, 2026
97 checks passed
@steipete
steipete deleted the perf/l93-lint-warnings branch September 26, 2026 19:45
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 27, 2026
Split Cron creator transport and requester continuation coverage with shared fixtures, retaining all 15 tests and database-worker routing. Move Web Push command classification to its executor owner. Preserve behavior without suppressions or limit changes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gateway Gateway runtime size: XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant