Repository navigation
test: route provider integration and wizard recovery tests correctly - #148504
Conversation
…tests Move the existing Radius registration and device-code cancellation flow to the root integration suite so core tests no longer pull the bundled provider into their type graph. Preserve generic auth adapter coverage and all flow assertions. Co-authored-by: Ayaan Zaidi <[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. |
|
Codex review: needs maintainer review before merge. Reviewed September 14, 2026, 4:20 PM ET / 20:20 UTC (Revision 2). ClawSweeper reviewWhat this changesMoves Radius sign-in integration tests out of the core test graph and restores wizard recovery tests to workers that support SQLite. Merge readiness✅ Ready for maintainer review Keep open: both test-routing defects remain on the supplied main revision, and this focused repair preserves regression coverage. No actionable introduced defect was found. Priority: P3 Review scores
Verification
How this fits togetherOpenClaw’s test configuration assigns suites to typechecking projects and execution workers. Provider integration tests need plugin access, while wizard recovery tests need the process-owned SQLite broker. flowchart TD
A[Provider and wizard tests] --> B[Test routing configuration]
B --> C[Generic core adapter tests]
B --> D[Root provider integration tests]
B --> E[Forked wizard recovery tests]
E --> F[SQLite broker]
C --> G[CI regression results]
D --> G
F --> G
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +12. Total +12 across 3 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep provider-specific regression coverage in the root integration suite and use the shared worker registry as the single owner of SQLite-dependent test routing. Do we have a high-confidence way to reproduce the issue? Yes, from source: main’s core test imports a forbidden extension, and the unregistered wizard recovery suite reaches SQLite admission from a thread worker. The author reports before/after execution; this review did not run tests. Is this the best way to solve the issue? Yes. The patch reuses existing integration and worker-routing owners while preserving assertions, fixtures, cancellation cleanup and broker safeguards. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against dcc64f10d5c4. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
Merged via squash.
|
* origin/main: perf(secrets): keep pure helpers out of file writer imports (#148096) perf(models): normalize suppression policy once per compilation (#148428) test: route provider integration and wizard recovery tests correctly (#148504) test: reuse prepared bundled plugins in startup corpus (#148465) fix(agents): attribute tool preparation delays to the correct stages (#148349) refactor: remove redundant Parallels source checks (#148394) fix(test): avoid timeout failures before descendant readiness (#148410) fix: open browser side panel without creating a dashboard (#148471)
* perf(sessions): reduce redundant SQLite scans * style(acp): avoid shadowed query builder names * test(ui): exercise session eviction through the wizard choice button * test(ui): wait for the current publication subscription * test(ci): protect wizard recovery broker routing Retain the routing regression from #148442 while inheriting the canonical registration repair in #148504. Require one infra registration and exclusion from the thread-based wizard project.
…penclaw#148504) * test(plugins): keep registered provider auth coverage in integration tests Move the existing Radius registration and device-code cancellation flow to the root integration suite so core tests no longer pull the bundled provider into their type graph. Preserve generic auth adapter coverage and all flow assertions. Co-authored-by: Ayaan Zaidi <[email protected]> * test: restore database worker routing for wizard recovery --------- Co-authored-by: Ayaan Zaidi <[email protected]>
* perf(sessions): reduce redundant SQLite scans * style(acp): avoid shadowed query builder names * test(ui): exercise session eviction through the wizard choice button * test(ui): wait for the current publication subscription * test(ci): protect wizard recovery broker routing Retain the routing regression from openclaw#148442 while inheriting the canonical registration repair in openclaw#148504. Require one infra registration and exclusion from the thread-based wizard project.
What Problem This Solves
Two test-routing regressions block CI. The registered Radius regression added in #148469 imports a bundled provider from a core test, violating the plugin boundary and pulling extension files into the core type graph. Separately, a stale prerequisite cleanup in #148451 removed the remaining database-worker registration for wizard inference recovery after #148425 had already removed its duplicate. The recovery test then runs in a thread without its required host-owned SQLite broker.
User Impact
CI exercises provider sign-in and wizard recovery through their intended test owners. Production behavior is unchanged.
Why This Change Was Made
Move the two registered Radius cases to the existing root integration suite. They retain real provider registration, the auth adapter, WizardSession, device link/code/expiry assertions, cancellation, and final settlement. The six generic adapter cases remain in core.
Restore exactly one wizard recovery registration in the existing database-worker registry. The original fixture, ordering, recovery assertions, and broker admission guard remain intact.
Evidence
The complete wizard recovery file reproduces the hosted failure before the registration repair (7/8 pass in wizard/threads) and passes all eight cases afterward in infra/forks. Another 75 existing routing, configuration, and CI-planner cases pass. Direct planner checks confirm one registration, one local owner, one CI owner, and exclusion from the thread-based wizard project.
All 21 selected provider, integration, and boundary tests pass. The previously failing core type-graph guard, root-test typecheck, targeted lint, formatting, and diff checks pass. Fresh isolated review through P2 found no actionable findings in either repair. The full changed-source gate and package build were outside this test-only validation scope; hosted CI remains required before landing.
Preserves the regression coverage contributed by @obviyus in #148469.