Repository navigation
test(ai,gateway,cli): remove low-value tests (batch d153) - #174040
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review blockedAutomated review did not run, so no review verdict was produced. Reason: The input-safety check rejected material in this revision. No detected value, path, or scanner output is reproduced here. Automatic review is on hold, including after source changes. Request a fresh re-review after resolving the failure; maintainers can also release the hold through an intentional scanner-policy update. Next step: If this is a genuine credential, remove and rotate it. If it is an intentional test fixture, a maintainer must review and qualify it. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
…74040) * test(ai): deslop x7034 tests * test(gateway): deslop x7035 tests * test(gateway): deslop x7035 tests * test(gateway): deslop x7035 tests * test(gateway): deslop x7038 tests * test(gateway): deslop x7038 tests * test(gateway): deslop x7038 tests * test(cli): deslop x7037 tests * test(cli): deslop x7037 tests * test: repair rebased d153 fixture contracts
What Problem This Solves
Repeated setup and assertion scaffolding make the AI provider, chat metadata, session-file, and plugin CLI tests harder to maintain. This replays the bounded d153 campaign batch onto main, preserving newer regression coverage.
User Impact
No production behavior, public API, configuration, or dependency changes. Test/support code changes only: +4,332 / -6,498 lines (net -2,166). Production: +0 / -0. Test files: +4,251 / -6,403; shared test support: +81 / -95.
Why This Change Was Made
Consolidate repeated fixtures, RPC calls, lifecycle setup, and equivalent assertion tables. The source reports retain the expanded behavior cases rather than forcing their 25%-per-file reduction target.
Applied source commits:
2f23d6bc0d43,ca340cda7611,f06f81661352,aa7d32035a40,0a33fc896201,f6955654a8a9,c5f0cee5fd41,24eb77867036, andaeea4e2b6276(the last with the marketplace-file hunk omitted).Skipped
0e8862940a9b(x7036): all five subagent files conflict with current main. The commit depends on earlier campaign-only helpers (childFixture,withRecovery, compact SQLite helpers) outside this batch. Kept current main's lifecycle, absent-child, and storage tests rather than importing those omitted refactors.Replay decisions:
plugins-cli.marketplace-entries.test.tshunk because its broad suite restructuring overlaps newer pinned-refresh fallback coverage. The preceding commit's small cleanup remains, along with main's assertions and both checksum forms.existingandlookup-failedreceipt-state cases in the GitHub publication rejection table. Both must suppress an unverified selection-rejection fact.Evidence
CI-only validation per maintainer instruction: changed-file
oxfmt --write, plainoxlint -c .oxlintrc.json, andgit diff --check. No Vitest, check-changed, tsgo, coverage, builds, or Testbox/Crabbox runs. Requiredopenclaw/ci-gateis the runtime proof and merge gate; independent review runs during CI.The first CI run found a stale
listFilescall in a newer pending-checkout test, missingworkspaceScopein three Doctor fixtures, a missing install-policy warningreason, an unused max-lines suppression, an overly broad SDK type on the Responses replay fixture, and widened role-scope literals in a GitHub fixture. All were repaired at the fixture/caller boundary without weakening assertions. Evidence: https://github.com/openclaw/openclaw/actions/runs/38875989340. Auto-merge was disabled for repair and is re-armed only on the corrected head; no failed run was retried merely for green.Independent review completed all 16 full-batch passes. It confirmed the six CI defects were fixed in the working tree and identified two receipt-state cases to restore. Its aggregate status was incomplete because it also reviewed the old index and rejected one source anchor; that is not presented as a clean verdict. After staging every fix and restoring both cases, an exact-source five-file follow-up with complete owning contract modules returned
scoped-clean, with no P0-P2 findings. The follow-up files were byte-compared against the landing worktree. Formatting, plain lint, and whitespace checks passed after all corrections.The host's Node 26 installation lost its
libsimdutf.36.dylibdependency during the task. Final checks used the already-installed, supported Node 24.22.0 via a process-local PATH override; no host installation or dependency files changed.Base:
0b47dd05c63a4f90c9f9ce31fbc1007b57348296. Two origin fetches raced another shared-ref updater; the second reported thatorigin/mainalready equaled the fetched commit above, which was pinned for this replay.Shard totals
LOC and lexical
it/testdeclaration counts below are measured against the pinned current-main base, not the older campaign base. Declaration reductions are fixture/table consolidation, not an expanded-case count.Files by shard