Repository navigation
refactor(cli): consolidate security-sensitive regression fixtures - #114411
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed August 2, 2026, 3:51 AM ET / 07:51 UTC. ClawSweeper reviewWhat this changesThis branch consolidates repeated mock and setup fixtures across five CLI and model-picker regression test suites while keeping the tested CLI behavior unchanged. Merge readiness⛔ Blocked until real behavior proof from a real setup is added - 5 items remain Keep this PR open for human review rather than closing it: it is a test-only cleanup with no concrete patch defect found, but the supplied PR state is currently dirty against Priority: P3 Review scores
Verification
How this fits togetherThese test suites drive OpenClaw CLI entry points with mocked gateway, plugin, update, and model-selection dependencies, then assert command output and failure behavior. Their fixtures determine whether each test begins from isolated state before exercising the production CLI paths. flowchart LR
A[CLI test cases] --> B[Shared mock fixtures]
B --> C[CLI command entry points]
C --> D[Gateway, plugin, update, and model adapters]
D --> E[Assertions on output and exits]
B --> F[Per-test reset and cleanup]
Decision needed
Why: The branch is currently dirty and current main has later changes across every touched test file; choosing whether the remaining consolidation is worth preserving requires owner judgment rather than an automated code repair. Before merge
Agent review detailsSecurityNone. PR surfaceTests -813. Total -813 across 5 files. View PR surface stats
Review metricsNone. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Rebase the focused fixture cleanup onto current Do we have a high-confidence way to reproduce the issue? Not applicable: this PR refactors test fixtures rather than reporting a user-facing defect. Exact-head test execution was not independently reproducible in this checkout because the partial clone could not fetch the PR tree. Is this the best way to solve the issue? Unclear: the supplied fixture extractions appear behavior-preserving, but the branch must first be reconciled with the later current-main rewrites before this can be judged the best remaining cleanup. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 9fd56e6d6529. 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) |
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Merged via squash.
|
…r-117788-empty-startup-race * commit '9517b10778ba69b94471cb1f122a5f1e19aa22a4': fix(hooks): show eventless status consistently (openclaw#116127) refactor(cli): consolidate security-sensitive regression fixtures (openclaw#114411) perf(plugins): list from installed metadata (openclaw#117900) fix(memory): remove interrupted Dreaming sessions after Gateway restart (openclaw#117885) test(gateway): reuse startup plugin metadata snapshot (openclaw#117897)
…enclaw#114411) * refactor(cli): consolidate security-sensitive regression fixtures * refactor(cli): refresh fixture cleanup against main
What Problem This Solves
Maintainers spend unnecessary time reviewing repeated capability, gateway, update, and model-provider fixtures across security-sensitive CLI regression suites.
Why This Change Was Made
Consolidate only equivalent fixtures in the four owning test suites while preserving every current named case and assertion contract. The conflict repair keeps the original branch history with one fast-forward commit, drops the superseded plugin-test cleanup by making that blob identical to current
main, and retains newer stopped-service, npm-channel, and bundled-sidecar coverage.User Impact
No production or public CLI behavior changes. The same regression coverage is 714 test lines smaller and easier to review.
Evidence
d42f6919382c870e9110fa042c85455f3594c221, a single direct child of original head7ba2172c1f288c4acd7d818a8c6c3219132c5fab; no rebase or force-push.main86a95b459c94ff7d03b5279d5166b03a39ba1473: exactly four test files, +504/-1,218, net -714; production delta 0.src/cli/plugins-cli.install.test.tsis byte-identical tomainand absent from the merged diff..eachtables and payloads are equivalent; 30 newer current-main declarations remain. Assertion behavior and timer usage are preserved.tbx_01kz0ptbrbdbt07v4cyjardect: 613/613 focused cases passed across all four suites (run).tbx_01kz0qt9bza2q2k5qpvsx6abch: fullpnpm check:changedpassed on the regenerated merge after current-main fix fix: remove duplicate plugin CLI registry mock #117894 (run).commands_wave11_arch_reviewandcommands_wave11_semantic_review.ee0247f95a6fe2b094ba2253d82cae2a2b4c2dff:codex-rs/model-provider-info/src/lib.rs:35,:244,codex-rs/protocol/src/auth.rs:38,codex-rs/models-manager/src/manager.rs:123,codex-rs/protocol/src/openai_models.rs:687, andcodex-rs/app-server/src/models.rs:13.