Repository navigation
fix(models): prevent rejected probe tests from disabling later providers - #157487
Conversation
Join owned work and continue settled cleanup when a probe or release rejects, preserving original and independent cleanup errors. Exercise the real fixture on rejection and partial acquisition, then inspect real provider alias and admission owners. The original hosted 100 ms inspection overrun remains unexplained; production guards and both existing budgets are unchanged. Co-authored-by: vincentkoc <[email protected]>
|
🦞👀 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. |
|
@clawsweeper re-review Same-head review-publication recovery only. Head remains e718128; no source push or CI rerun requested. Review generation 36042794829/1 succeeded at 18:45 UTC, but direct publication was deferred with github_rate_limit (retry_at 18:45:48.679Z) and queued. The durable review is still absent after the retry window; only the completed/finalizing progress notice and old lease are visible. Please produce the normal current-head durable review; all normal leases and landing gates remain in force. |
|
🦞👀 Re-review progress:
|
|
Codex review: needs maintainer review before merge. Reviewed September 24, 2026, 3:55 PM ET / 19:55 UTC. ClawSweeper reviewWhat this changesThe branch makes model-probe tests settle pending work and restore fixture state after failures, then adds regressions for rejected probes, cleanup failures, and incomplete initialization. Merge readiness✅ Ready for maintainer review Current main still skips fixture teardown when a probe rejects. This PR is a focused repair with no identified blocking defect. The original hosted lock-inspection overrun remains unexplained, and the PR clearly separates it from the cleanup failure. Priority: P2 Review scores
Verification
How this fits togetherModel-probe tests create temporary agent and plugin state, run a probe, and release that state. Later provider tests may reuse the worker, so leaked environment settings can change their results. flowchart LR
A[Probe test] --> B[Temporary agent and plugin state]
B --> C[Model probe and lock inspection]
C --> D{Success or rejection}
D --> E[Settle work and release resources]
E --> F[Restored provider discovery]
F --> G[Later provider checks]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +153. Total +153 across 1 file. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep fixture teardown responsible for settling probe work, preserving the original failure, and restoring shared provider state; leave production probe and lock policies unchanged. Do we have a high-confidence way to reproduce the issue? Yes, current-main source gives a focused failure path: rejecting the probe makes the first await in finally skip later teardown. This read-only review did not execute the test. Is this the best way to solve the issue? Yes. The fixture owns the temporary environment and registry state, and its teardown is the narrow place to settle work and restore both after failure. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 510d72b2efec. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
…7487) Join owned work and continue settled cleanup when a probe or release rejects, preserving original and independent cleanup errors. Exercise the real fixture on rejection and partial acquisition, then inspect real provider alias and admission owners. The original hosted 100 ms inspection overrun remains unexplained; production guards and both existing budgets are unchanged. Co-authored-by: vincentkoc <[email protected]>
What Problem This Solves
Fixes: a rejected model-probe test can skip teardown and leave bundled providers disabled for later tests in its reused worker.
User Impact
Test-only repair in one fixture file. Failed probes retain their original errors while owned work settles and fixture state is restored. Production provider admission, aliases, broker authority, the 100 ms lock-inspection guard, and the 25 ms cleanup budget are unchanged.
The initial hosted 100 ms overrun remains unexplained. This repairs demonstrated failure-path cleanup, not that original timing trigger.
Why This Change Was Made
The fixture awaited its possibly rejected operation at the start of a finally block. Rejection skipped resource release, registry resets and direct-environment restoration. That can leave bundled-plugin discovery disabled; an explicit bundled-directory override cannot override this flag.
The same fixture now owns initialization through teardown, releases gates and joins pending work before retiring resources, and continues settled cleanup after errors. A single original error is rethrown unchanged; independent cleanup/child errors are retained together. The existing six cases and assertions remain, with three regressions for operation rejection, cleanup rejection and incomplete initialization. No new production seam or generic cleanup framework is introduced.
Contributor credit: requested by and co-authored with @vincentkoc.
Work sessions
Evidence
The full original job envelope is not claimed green: its unmodified local Gateway prefix hit 54 HTTP-502 assertions before models. The configured remote route verified source but supplied Node 24.19.0; the explicit 24.21.0 prerequisite stopped it before tests. No proxy, runtime guard, provider, timeout or assertion was weakened. Both owned remote leases are completed; the third original group was not executed. Exact-head CI 36042583941, attempt 1 completed successfully on e718128; both enforced CI-gate results passed. The durable same-head ClawSweeper review recovered at 19:55 UTC with no actionable findings. The unchanged head landed as fd0b79614de5 at 20:03:39 UTC; main containment, the human co-author trailer and native closeout were verified. The native guard reported relevant mainline input drift and proceeded under its unchanged default policy; this is not a claim of full merged-main CI recovery.
View the OpenClaw team session