Repository navigation
test(doctor): keep autostart policy independent of process state - #185277
Merged
Merged
Conversation
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
steipete
marked this pull request as ready for review
October 27, 2026 01:02
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. |
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Oct 27, 2026
sectrgt
pushed a commit
to sectrgt/openclaw
that referenced
this pull request
Nov 2, 2026
The openclaw#180356 backport (7065121) refuses Gateway restoration when native autostart policy changes during Doctor repair. The managed doctor-health fixture reported isEnabled as the current running state, so stopping the Gateway looked like a policy change. Main fixed the fixture in openclaw#185277; the release's legacy-update fixture already carried the equivalent adaptation. Release adaptation: applied the managed test-support hunk by hand; the file's structure diverged from main. (cherry picked from commit 217817b, src/flows/doctor-health.managed.test-support.ts hunk only)
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 Doctor health tests that report an autostart-policy change when their fake service merely stops for maintenance. This repairs inherited red reported in CI run 40425367262.
User Impact
No production behavior changes. Doctor's live autostart-policy revalidation remains intact, including refusal to restore a service when its policy changes.
Why This Change Was Made
#180356 (
8346eba79034) correctly captured and rechecked native autostart policy across maintenance. Two service fixtures incorrectly implementedisEnabled()using their mutable process-running flag, sostop()fabricated a policy change. Keep the simulated enabled policy true independently of process state. The shared fixture repair also fixes its managed-health consumers; all assertions are unchanged.The separately reported Gateway failures were traced to #185106's eager agent-job listener import. The shared fixture erased that process-owned listener. #185224 landed the listener-preservation repair during this investigation, so this PR contains only the Doctor fixes. Ancestry checks confirm #185224 was absent from both the original evidence build
90e227861c32and our reproduced baseea7081745b7f.Evidence
ea7081745b7f: legacy-update reproduces 3 failures / 3 passes under both pinned Bun and Node. The managed-settlement sibling also reproduces the same policy refusal under Node (8 failures / 1 pass).git diff --checkpass.dcee79a0f2f72f3c48bf07716a8901ddb0101f8c. No CI reruns requested.