Repository navigation
refactor: consolidate provider streaming and discovery tests - #114475
Conversation
|
Codex review: needs maintainer review before merge. Reviewed August 3, 2026, 6:12 AM ET / 10:12 UTC. ClawSweeper reviewWhat this changesThis PR consolidates private fixture and invocation helpers across Amazon Bedrock, Google, and Ollama streaming and discovery tests without changing production provider code. Merge readinessThis is a useful test-only cleanup with strong submitted validation, but GitHub reports the branch as merge-conflicted and current main now has 19 additional declarations across the same provider test paths. Keep it open for a rebase that preserves those newer regressions before merge. Priority: P3 Review scores
Verification
How this fits togetherProvider plugins convert model requests into vendor-specific discovery and streaming calls, then return normalized results to OpenClaw’s shared agent runtime. These tests cover the provider boundaries for discovery, authentication, response streams, cancellation, and request handling. flowchart LR
A[Provider test cases] --> B[Private fixture helpers]
B --> C[Bedrock Google and Ollama test harnesses]
C --> D[Mocked discovery and stream responses]
D --> E[Provider behavior assertions]
E --> F[Regression coverage for plugin runtime]
Before merge
Agent review detailsSecurityNone. PR surfaceTests -709. Total -709 across 4 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain the private-helper consolidation, rebase it onto current main, preserve every newer provider regression case, and validate the resolved four-file test surface on the new head. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR refactors existing regression tests rather than addressing a separately reproducible user-facing bug. Is this the best way to solve the issue? Yes, conditionally: consolidating repeated private test setup follows the repository’s test guidance, but the branch must be rebased so the resulting helper structure retains later current-main cases. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 3f3e59b54d1c. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (3 earlier review cycles) |
3cc5485 to
de9f909
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Merged via squash.
|
What Problem This Solves
Bedrock discovery/runtime and Google transport tests repeated equivalent profile, cache, payload, replay, and streaming fixtures. Ollama’s original scope has already been superseded by #118419.
Why This Change Was Made
Rebuild three current provider-owner suites on
main, extend the existing Bedrock summary fixture, and reuse Google helpers landed by #114424. Ordered one-shot responses, cache reset, fresh streams, SSE framing, abort, usage, and tool-order cases remain.User Impact
No provider runtime behavior changes. All 214 current cases remain while tests are 446 lines smaller.
Evidence
node scripts/check-changed.mjspassed extension typecheck, formatting, 245-rule lint and all guards. Testboxtbx_01kzke1kyr4r05acm36n47xjb7; run.git diff --checkpassed.+0/-0, tests+472/-918(net-446). Ollama excluded.