Repository navigation
fix: restore Doctor deletion recovery CI coverage - #181964
Merged
Merged
Conversation
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
Contributor
Author
|
Fixed: Doctor deletion-recovery CI now runs through the required host-broker route and validates its refreshed migration handoff. |
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Oct 24, 2026
Restores the Doctor deletion-recovery regression to the host-broker infra route and verifies the refreshed migration handoff.
RomneyDa
added a commit
that referenced
this pull request
Oct 26, 2026
#181356 resolves an API-key-only ChatGPT catalog row to the Platform contract, so the Codex PDF case seeds the OAuth login as main does. #181923 lets the K3 policy name hosted-catalog K3.1 rows the bundled manifest lacks. #181804 restores configured stores after journal loss, so Doctor refuses the legacy schema instead of holding them; the test takes main's expectations and its host-broker project (#181964). The Control UI locale artifacts are regenerated for the dropped restart summary string.
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 Doctor deletion-recovery regression being scheduled in a generic Worker lane, where the real shared-state SQLite owner correctly refuses access because the host broker is unavailable.
Once the file reaches its proper owner, its first case also needs to assert the current test-harness contract: Doctor refreshes the supplied stale discovery and hands both configured database targets to the existing mocked migration owner before that deliberately isolated harness reports its expected incomplete-migration refusal.
User Impact
There is no production behavior change. CI now executes both existing Doctor deletion-recovery cases with the required host-owned broker, preserving the schema-19 fixtures, byte-for-byte database checks, cleanup, timeouts, and the unchanged quarantine case.
The corrected first case observes the real same-invocation handoff instead of inferring success from a later registry, hold-list, count, or log postcondition.
Why This Change Was Made
databaseWorkerCoreTestFilesalready owns tests that require physical admission and descriptor custody from the application host. The infra Vitest project consumes that registry with forked processes, while generic projects exclude its entries. Adding this exact file reuses that established routing mechanism.The initial discovery intentionally knows only
main. A case-local spy wraps the already mocked config-flow owner without replacing its implementation, then verifies Doctor calls it once with configuredmainand newly addedlatetargets. A stale handoff has no active targets, so it cannot satisfy the assertion. The spy is restored in the existing cleanup path.Evidence
Shared-state admission requires the host brokerin the first case before this routing repair.vitest.infra.config.ts, excluded it from the prior generic Worker lane, and passed the existing routing/planner consumers: 424 tests.src/flows/doctor-health.deletion-recovery.test.tsfile passed both cases under infra forks.Hosted PR CI and the required ClawSweeper review continue on this published head.