Repository navigation
fix(workshop): prevent clock skew from failing service CI - #156776
Closed
fuller-stack-dev wants to merge 1 commit into
Closed
fuller-stack-dev wants to merge 1 commit into
fuller-stack-dev wants to merge 1 commit into
Conversation
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.
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
fuller-stack-dev
marked this pull request as ready for review
September 23, 2026 21:26
This was referenced Sep 23, 2026
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. |
fuller-stack-dev
deleted the
openclaw/workshop-test-clock-ci-20260923
branch
September 23, 2026 22:18
This was referenced Sep 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
OPENCLAW_STATE_LEASE_LOST.pnpm test src/skills/workshop/service.test.ts --maxWorkers=1took 30.17 s wall (26.69 s Vitest; reject/quarantine 130 ms).