Repository navigation
refactor(test): simplify catalog guards and fix native report fixture - #139496
Conversation
|
🦞👀 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 5, 2026, 9:28 PM ET / September 6, 2026, 01:28 UTC. ClawSweeper reviewWhat this changesSimplifies GMI and Novita catalog assertions and restores real subprocess inspection in the native report test without changing production behavior. Merge readiness✅ Ready for maintainer review The final patch remains useful and has no actionable correctness findings. Current main lacks these changes, and the separately merged fixes address work already removed from this branch. Priority: P3 Review scores
Verification
How this fits togetherProvider registration tests verify the metadata and model catalogs exposed by plugins. The report test exercises the real test runner and relies on managed subprocess cleanup before releasing its temporary files. flowchart TD
A[Provider plugin metadata] --> B[Registration and catalog assertions]
C[Native report fixture] --> D[Test runner subprocess]
D --> E[JSON report assertions]
D --> F[Real process inspection]
F --> G[Verified cleanup and file release]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests -22. Total -22 across 3 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep native process observation real while preserving strict cleanup and the existing catalog behavior assertions. Do we have a high-confidence way to reproduce the issue? Yes, at the source level: the reset process mock intercepts the Linux census used by native cleanup and returns undefined. No tests were executed during this read-only review. Is this the best way to solve the issue? Yes. Restoring the actual observer within the native case repairs the test boundary without weakening cleanup, while the catalog simplification preserves the same positive checks. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against abd18df28d85. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (2 earlier review cycles)
|
2ddfcac to
0293868
Compare
0293868 to
59ff69a
Compare
|
@clawsweeper re-review The final scope now includes the native report fixture's real process-observer passthrough. Controlled Linux before/after, an uninstrumented candidate run, strict lifecycle controls, the changed gate, and independent source review passed. The existing strict cleanup policy and all assertions remain intact. The temporary assistant-failure repair was dropped because main fixed it in #139519. Details and limitations are in the updated PR body. |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
Merged via squash.
|
* commit '047587a542ce205ee78354fbd88ba8ec05c07844': (45 commits) chore(ui): refresh control ui locales (#139481) fix(slack): keep prototype-named emoji shortcodes intact (#136374) fix(gateway): deliver upgrade rejection responses under Bun (#139516) refactor(test): simplify catalog guards and fix native report fixture (#139496) fix(macos): prevent dashboard fixture loopback timeouts (#139556) fix(matrix): preserve selected reply targets inside threads (#139479) test(gateway): preserve held-work close failures (#139593) refactor(exec): share package argument scanning (#139560) fix(audit): preserve sequence range validation before numeric decoding (#139587) fix(transcripts): retain capture ownership through failed cleanup (#139572) refactor(models): share selector reference traversal (#139571) perf(agents): classify allowlists without intermediate sets (#138392) chore(release): update appcast for 2026.9.2 (#139575) fix(ci): synchronize cloud retries and board widget input (#139506) fix(plugins): explain SDK incompatibilities after core updates (#139458) fix(voice-call): retain installed WebSocket behavior under Bun (#139567) test(text): consolidate literal sanitizer cases (#139579) test(gateway): observe native drain without a lint exception (#139576) test(memory): consolidate visibility fixtures without policy defaults (#139569) fix(ui): show shimmer skeletons while loading Control UI (#139525) ...
* origin/main: fix(cli): keep note text with Windows and Unicode line endings (#139512) fix(agents): keep isolated completion context on its admitted generation (#139607) fix: avoid declaration builds during source-server updates (#139392) fix(models): keep discovered models after catalog refresh failures (#139357) fix(gateway): record a transcript notice when a run fails before replying (#139439) refactor(ios): reuse shared integer conversion (#139581) fix(sessions): prevent database lock failures during reclamation (#139469) perf(test): reuse transforms within owned scheduler slots (#139553) test(agents): share sparse transcript input fixtures (#139589) chore(ui): refresh control ui locales (#139481) fix(slack): keep prototype-named emoji shortcodes intact (#136374) fix(gateway): deliver upgrade rejection responses under Bun (#139516) refactor(test): simplify catalog guards and fix native report fixture (#139496) fix(macos): prevent dashboard fixture loopback timeouts (#139556) fix(matrix): preserve selected reply targets inside threads (#139479)
* commit 'refs/openclaw/tasks/pr-135167-main': (2467 commits) refactor(ios): reuse shared integer conversion (#139581) fix(sessions): prevent database lock failures during reclamation (#139469) perf(test): reuse transforms within owned scheduler slots (#139553) test(agents): share sparse transcript input fixtures (#139589) chore(ui): refresh control ui locales (#139481) fix(slack): keep prototype-named emoji shortcodes intact (#136374) fix(gateway): deliver upgrade rejection responses under Bun (#139516) refactor(test): simplify catalog guards and fix native report fixture (#139496) fix(macos): prevent dashboard fixture loopback timeouts (#139556) fix(matrix): preserve selected reply targets inside threads (#139479) test(gateway): preserve held-work close failures (#139593) refactor(exec): share package argument scanning (#139560) fix(audit): preserve sequence range validation before numeric decoding (#139587) fix(transcripts): retain capture ownership through failed cleanup (#139572) refactor(models): share selector reference traversal (#139571) perf(agents): classify allowlists without intermediate sets (#138392) chore(release): update appcast for 2026.9.2 (#139575) fix(ci): synchronize cloud retries and board widget input (#139506) fix(plugins): explain SDK incompatibilities after core updates (#139458) fix(voice-call): retain installed WebSocket behavior under Bun (#139567) ...
…openclaw#139496) * refactor(test): simplify GMI and Novita catalog assertions * test: keep native report process inspection real
What Problem This Solves
GMI and Novita catalog tests duplicate one-use result guards around useful registration assertions. A native report-utility test also leaves its process mock active while verifying real subprocess cleanup, which can turn valid Linux process observations into a cleanup failure.
Why This Change Was Made
Project the catalog-result union inline while keeping the original positive assertions, complete model-array traversal, and credential-free catalog calls. The shared catalog helper would inject an auth resolver and change those inputs.
Restore actual
spawnSyncpassthrough only in the native report case. Its suite-wide mock otherwise returnsundefinedafter reset and intercepts the cleanup owner's Linuxps -Lcensus. The real observer can distinguish exited threads awaiting reaping from surviving workers. The strict process-tree flag, timeout, fixture lifetime, empty childPATH, and every assertion remain unchanged; the mock-only cases still configure their own implementations.User Impact
No production, configuration, model-data or public-contract change. Both catalog cases and all 14 assertions remain, as do all seven report-utility cases. Three test files are +10/-32 lines, net -22; no production code changes.
Evidence
An earlier CI run also exposed a retired assistant retry assertion. Main fixed that independently in #139519; this PR drops its temporary repair and contains no assistant-failure test change. The separate Gateway suppression fix is also already on main in #139576; no Gateway helper change is included here. These are registration and subprocess fixtures, not live provider API tests.