Repository navigation
fix: align approval cleanup test with native timer cancellation - #174154
Merged
Merged
Conversation
The approval handoff test manually invoked a cancelled host callback after arming its replacement. 53a452a (#173597) intentionally removed the scheduler's second generation fence: "native timer cancellation is the owner." This stale fixture consequently armed a second synthetic host timer. Assert that handoff cancels the old 16000ms wake and that its final release arms a live 17000ms wake. Keep the approval live at the original deadline and verify cleanup at the replacement deadline. No production scheduling, approval authority, timeout, retry, or skip behavior changes. Proof: the original current-main file reproduced the hourly failure (44 passed, 1 failed). The repair passes 88 tests across approval manager, approval expiry, and Gateway scheduler suites with --maxWorkers=1. Gateway-root test types, scoped lint, formatting, and whitespace pass. Fresh isolated P2 autoreview: no actionable findings.
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
steipete
marked this pull request as ready for review
October 16, 2026 11:16
Contributor
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Contributor
Author
|
Merged via squash auto-merge.
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Oct 17, 2026
…4154) The approval handoff test manually invoked a cancelled host callback after arming its replacement. 02b90e5 (openclaw#173597) intentionally removed the scheduler's second generation fence: "native timer cancellation is the owner." This stale fixture consequently armed a second synthetic host timer. Assert that handoff cancels the old 16000ms wake and that its final release arms a live 17000ms wake. Keep the approval live at the original deadline and verify cleanup at the replacement deadline. No production scheduling, approval authority, timeout, retry, or skip behavior changes. Proof: the original current-main file reproduced the hourly failure (44 passed, 1 failed). The repair passes 88 tests across approval manager, approval expiry, and Gateway scheduler suites with --maxWorkers=1. Gateway-root test types, scoped lint, formatting, and whitespace pass. Fresh isolated P2 autoreview: no actionable findings.
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 the approval-manager CI test after the scheduler's native timer cancellation contract changed.
User Impact
No user-visible change. Approval expiry, handoff retention, and decision authority are unchanged.
Why This Change Was Made
#173597 deliberately removed the extra scheduler generation fence: “An injected clock that manually calls an already cancelled callback no longer gets a second generation fence; normal job cancellation and shutdown settlement remain.”
The handoff test still manually invoked that cancelled host callback. It now asserts cancellation of the original wake, the replacement's restarted deadline, retention at the original deadline, and cleanup at the replacement deadline. The one-live-host-timer guard remains unchanged.
Evidence
Current main reproduced hourly 38887900861's exact error: 44 passed, one failed with
Gateway armed more than one host timer.The repair passes 88 tests across the approval manager, approval expiry, and Gateway scheduler suites with
--maxWorkers=1. Gateway-root test typecheck, scoped lint, formatting, whitespace, and fresh P2 autoreview pass. No production changes, retries, timeout increases, or disabled tests.Three direct main pushes were rejected as non-fast-forward while unrelated changes landed. The patch is unchanged across those rebases; this PR provides a stable landing head.