Skip to content

fix(workshop): prevent clock skew from failing service CI - #156776

Closed
fuller-stack-dev wants to merge 1 commit into
mainfrom
openclaw/workshop-test-clock-ci-20260923
Closed

fuller-stack-dev wants to merge 1 commit into
mainfrom
openclaw/workshop-test-clock-ci-20260923

Conversation

@fuller-stack-dev

@fuller-stack-dev fuller-stack-dev commented Sep 23, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Fixes Workshop service CI failing when its frozen test date drifts away from the SQLite worker clock. This pre-existing failure blocks update PRs #156748 and #156757.

User Impact

No runtime behavior change. Restores the reject/quarantine test while preserving production lease ownership, expiry, and cancellation.

Why This Change Was Made

The test already sorts results by skill name, so it does not need fake timestamps. Removing Date-only faking keeps the parent and actual worker on the same clock. The whole-file audit also removes a same-input target comparison and assertions against a test-only progress projection; actual cross-workspace, provenance, recovery, and failure-path coverage remains.

The documented red-main direct push was attempted and refused by GitHub rule GH013 (pull request required), so this is the required PR fallback.

Evidence

  • Original actual-worker reproduction failed with a 2,150,228,629 ms timer overflow to 1 ms and OPENCLAW_STATE_LEASE_LOST.
  • Repaired whole file: 49 passed, no skips; pnpm test src/skills/workshop/service.test.ts --maxWorkers=1 took 30.17 s wall (26.69 s Vitest; reject/quarantine 130 ms).
  • Services fixture types, changed-file formatting/lint, and required changed-scope static guards pass.
  • Independent API-only whole-file review: no actionable findings.
  • Original main failure: https://github.com/openclaw/openclaw/actions/runs/35917633217/job/107377912779
  • Exact-head hosted changed tests and boundary checks pass in CI35922427662. The changed-test job took 91 s, including setup and its selected test plan. Remaining required checks are pending.

Remove Date-only freezing from the reject/quarantine flow, whose result is already sorted by skill name. SQLite workers use the real clock; the historical parent date overflowed the lease timer to 1 ms and lost the lease. Production lease ownership, expiry and cancellation are unchanged.

Audit the entire service test file: remove a same-input target comparison and test-only progress projections while retaining real cross-workspace, provenance, recovery and failure-path coverage.

Validation: original real-worker failure reproduced; all 49 retained service tests pass (30.17 s wall), services fixture types, changed-file format/lint and repository guards pass; independent review is clean. Repairs the failure in main CI run 35917633217, job 107377912779.
@clawsweeper

clawsweeper Bot commented Sep 23, 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.

@fuller-stack-dev

Copy link
Copy Markdown
Member Author

Superseded by Peter Steinberger’s landed fix in 764c933, which removes the same obsolete parent-only fake clock without changing production lease behavior.

Verified the commit on main and its actual CI: Workshop job 107400798001 passed all 50 service tests, including reject/quarantine in 52 ms. Main’s remaining compact-small-7 failure is the separate deferred-factory-service disposal test, not this clock failure.

Closing this redundant PR rather than landing its residual test-audit cleanup independently.

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant