Skip to content

fix(ci): restore cron fixture typechecks - #159131

Closed
roboclaw-bot wants to merge 1 commit into
mainfrom
fix/cron-scheduler-fixtures-main-l8mgtwqq
Closed

roboclaw-bot wants to merge 1 commit into
mainfrom
fix/cron-scheduler-fixtures-main-l8mgtwqq

Conversation

@roboclaw-bot

Copy link
Copy Markdown
Collaborator

Related: #159099, #158776, #159086, #158582.

What Problem This Solves

Fixes main's core-test typecheck failures and Cron history test crashes after newly added fixtures omitted the required Gateway scheduler.

User Impact

Restores CI coverage without changing production Cron scheduling, authorization, configuration, protocol, or stored data.

Why This Change Was Made

Three test fixtures now supply the existing test scheduler. Disabled history fixtures retain live Date.now() semantics without arming timers. The startup/suspension test shares one fake-timer scheduler between the real service and lazy Gateway proxy and stops it during teardown. No assertions, retries, timeouts, suppressions, or scheduler policy were weakened; no test cases were added.

The repository's red-main workflow requested a direct fix, but GitHub rejected the push with GH013: Changes must be made through a pull request. This is the required fallback PR, not an unrelated test-refactoring sweep.

Evidence

  • Original failure, core-test shard 2 and shard 5: four missing-scheduler TS2741 diagnostics. The tested main base 97b0a7c85009 and later main revisions contain identical failing test and dependency-contract blobs; the Android PR changes none of them.
  • Reproduced all four diagnostics in a fresh main worktree at 8bfe139a13b0. Before repair, seven Cron history runtime cases also failed on missing scheduler.now; the publication sibling's three cases passed. Baseline wrapper: 42.99 s including cold compilation.
  • After repair, both exact failing type graphs pass (3.82 s wall), and 38 tests across four files pass (48.37 s wrapper). History: 7 cases / 18.788 s; publication: 3 / 0.009 s; startup/suspension: 3 / 1.574 s; unchanged lazy-Gateway sibling: 25 / approximately 1 s. Hosted test cost is pending the first CI run.
  • Scoped check:changed --base 8bfe139a13b0 passes (196.10 s), including graph boundaries, typed lint, the relevant type graphs, three Knip scans and shared guards. Formatting and git diff --check pass.
  • Fresh independent AutoReview is scoped-clean at P0-P2; separate parent source review verified the scheduler helper and fixture timer semantics.
  • Rebased over translation-only main changes to cab45a1600d6; all three patched file blobs are identical to the reviewed candidate, and the exact type graphs pass again (services 1.3 s; Gateway methods 1.5 s). Candidate: 03d91f41439c28357f70307353071fd0d8d4a04e.

Commands:

node scripts/run-tsgo-core-test-shards.mjs --ci-graphs-json '["core-test-gateway-methods","core-test-services-cron"]' --concurrency 2
node scripts/run-vitest.mjs src/gateway/server-methods/cron.history.test.ts src/gateway/server-methods/cron.history-publication.test.ts src/cron/service/ops-lifecycle.start-arm.test.ts src/gateway/server-cron-lazy.test.ts

Worked on by

Work sessions


View the OpenClaw team session

Repair the existing main-branch typecheck and runtime failures without changing production scheduling or test assertions.

Co-authored-by: IWhatsskill <[email protected]>
@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.

ClawSweeper review complete

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

View the workflow run.

@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Superseded by the landed main fix c0e6951d6f02, which completes the scheduler wiring for both history fixtures and the startup/lazy-proxy test. Current main also uses the joined manual scheduler clock for suspension and exactly-once delivery. All four original missing-scheduler diagnostics are covered; the history authority checks still use real Date.now independently of fixture bookkeeping. Closing this duplicate without merging it. The Android PR will receive a fresh merge-ref CI run against the repaired main.

wheakerd pushed a commit to wheakerd/clawdbot that referenced this pull request Sep 27, 2026
Forward-merge openclaw#159131 at 03d91f4 without rewriting its author credit. The main-inherited fixtures omitted the required scheduler; canonical Gateway-methods and cron-service test type graphs now pass. The history fixture patch was independently reproduced red/green, tested in isolation and reviewed. No production scheduling or native inference behavior changes.

Co-authored-by: sallyom <[email protected]>
Co-authored-by: steipete <[email protected]>
@RomneyDa
RomneyDa deleted the fix/cron-scheduler-fixtures-main-l8mgtwqq branch October 22, 2026 03:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gateway Gateway runtime size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant