Repository navigation
test(agents,browser,config): remove low-value tests (batch d277) - #177135
Conversation
Consolidate cap cases around the live-protection race; retain inline and protected-only coverage in the maintenance cadence/read/kick suites. Keep postimage publication coverage in the entry-writes suite and preserve the distinct participant-detachment regression here. Static formatting, diff and plain oxlint gates only; runtime proof remains with hosted CI.
|
🦞👀 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 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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 911029b9da
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| const fullLookup = vi.spyOn(sessionAccessor, "listSessionEntriesCore"); | ||
| const transcripts = [ | ||
| vi.spyOn(sessionAccessor, "readSessionTranscriptWatermark"), | ||
| vi.spyOn(sessionAccessor, "readSessionTranscriptMessageEventPage"), | ||
| vi.spyOn(sessionAccessor, "loadTranscriptEvents"), |
There was a problem hiding this comment.
Preserve the warmed inventory's no-SQL assertion
If a warmed inventory request starts issuing SQLite through a new accessor or directly through StatementSync, this test will now remain green: the previous version observed every all/get/iterate/run operation and listSessionEntriesReadOnly, while the replacement watches only listSessionEntriesCore and three transcript helpers. Restore a generic SQL observer around the real tool-to-Gateway request so this large-inventory test continues protecting the clean resident-snapshot contract.
AGENTS.md reference: src/gateway/AGENTS.md:L43-L43
Useful? React with 👍 / 👎.
|
Codex review: needs changes before merge. What this changesThis PR consolidates repeated test fixtures and assertions across agent tools, configuration, Gateway, browser UI, projects, and plugins. Example: Resolve ${MISSING:-60} and ${EMPTY:-} with EMPTY set to an empty string.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 2 items remain Keep this maintainer-authored PR open; the cleanup is useful, but it removes a distinct strict-mode config regression assertion. Priority: P3 Before merge
Findings
Provenance
Agent review detailsHow this fits togetherVitest suites exercise production owners using synthetic configuration, storage, transport, and UI fixtures, then assert their observable contracts. flowchart LR
A[Synthetic inputs] --> B[Shared test fixtures]
B --> C[Production owners]
C --> D[Observed results]
D --> E[Contract assertions]
E --> F[Hosted CI]
Technical reviewBest possible solution: Keep the fixture consolidation and restore the small strict-mode fallback assertion in the existing config test. Do we have a high-confidence way to reproduce the issue? Source comparison confirms removal of strict-mode fallback coverage; no target code or tests were executed during this read-only review. Is this the best way to solve the issue? Shared fixtures and equivalent tables fit the maintenance goal, but warning-callback coverage cannot replace the explicitly retained strict-mode contract. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 7d9c4a7d85e0. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceAcceptance criteria:
What I checked:
PR surfaceTests -2379, Other -3. Total -2382 across 42 files. Added test files: 1. View PR surface stats
Review metrics
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 19, 2026, 5:07 AM ET / 09:07 UTC. |
…nclaw#177135) * test(agents): deslop x8330 tests * test(agents): deslop x8330 tests * test(agents): deslop x8330 tests * test(browser): deslop x8336 tests * test(browser): deslop x8336 tests * test(browser): deslop x8336 tests * test(memory): deslop x8339 tests * test(memory): deslop x8339 tests * test(config): deslop x8338 tests * test(config): deslop x8338 tests * test(gateway): deslop x8341 tests * test(gateway): compact x8341 fixtures and assertions * test(gateway): simplify x8341 test fixtures * test(sessions): deslop x8340 tests * test(sessions): deslop x8340 tests * test(sessions): deslop x8340 tests Consolidate cap cases around the live-protection race; retain inline and protected-only coverage in the maintenance cadence/read/kick suites. Keep postimage publication coverage in the entry-writes suite and preserve the distinct participant-detachment regression here. Static formatting, diff and plain oxlint gates only; runtime proof remains with hosted CI. * test(projects): deslop x8343 tests * test(projects): deslop x8343 tests * test(projects): deslop x8343 tests * test(agents): deslop x8342 tests * test(agents): deslop x8342 tests * test(test-utils): deslop x8345 tests * test(test-utils): deslop x8345 tests * test(test-utils): deslop x8345 tests * test(ollama): deslop x8346 tests * test(ollama): deslop x8346 tests * test(tlon): deslop x8344 tests * test(tlon): deslop x8344 tests * test(tlon): deslop x8344 tests * test: preserve coverage and repair batch d277 CI * test: prune documented mock isolation baselines
What Problem This Solves
Repeated fixtures and assertion scaffolding make these tests harder to maintain. This batch consolidates that scaffolding across agent tools, browser UI, memory UI, configuration, Gateway, sessions, projects, test utilities, Ollama, and Tlon.
User Impact
No production behavior, runtime configuration, dependencies, or public API changes. The retained changes affect only tests, test support, and three obsolete test-baseline rows. No production LOC changed; test/support LOC is +5,661 / -8,040, net -2,379 across 41 files, plus three deleted baseline rows, against base
cf0ad5cad99bdb339d0cb2239fec9b256c79d82f.Why This Change Was Made
Replay campaign batch d277 onto current main, retaining current-main behavior and new regression cases wherever the older cleanup overlaps them. Fixtures and table-compatible assertions are consolidated; this is not a runtime optimization claim.
29 of 30 supplied commits were retained (some partially). Skipped
cdd30d07b6921a96b20e37af178a0f6d032b542a: current main substantially rewrote compaction fixtures and expanded cases. Kept main's entire file rather than reconstructing the old cleanup.Conflict resolution also kept main unchanged for
ui/src/pages/agents/memory/view.test.ts,src/config/group-policy.test.ts,src/config/group-scope-tree.test.ts,ui/src/pages/agents/model-config.test.ts,ui/src/pages/agents/panels-tools-skills.browser.test.ts, andextensions/ollama/src/tool-name-aliases.test.ts. The follow-up7001025fd36changes toextensions/ollama/src/stream.test.tswere dropped, and the initial stream consolidation was subsequently restored after CI. These exclusions preserve main's new UI state, group policy, model fallback, tool alias, and stream regression coverage. Other clean hunks were retained, subject to the additional review/CI restorations below. Baseline changes are limited to the three shrink-only rows listed by CI. No changed path matches CODEOWNERS.Evidence
pnpm install --frozen-lockfile --prefer-offlinepassed. Directnode_modules/.bin/oxfmt --write <41 changed files>passed. Directnode_modules/.bin/oxlint -c .oxlintrc.json <41 changed files>exited 0.git diff --check cf0ad5cad99bdb339d0cb2239fec9b256c79d82fpassed.The first CI run found missing helper references, type-aware lint/type errors, a test-support filename misclassified by the i18n scanner, and two behavior-sensitive fixture regressions. Corrected the simple helper/type/mock issues and renamed the browser helper to
browser-panel-stream.test-support.ts. Restored main's complete Ollama stream, SQLite owner, Gateway state-owner, and Tlon outbound loopback/media-authority files rather than rebuilding their fixtures. The next run cleared those failures and requested removal of the exact three obsolete mock-export baseline rows corresponding to the newly documented isolation boundaries; removed only those rows. Failed runs are not claimed as green or pre-existing; the repaired head requires fresh hosted CI.Independent review identified lost cap-maintenance cases, lost replacement-publication boundary assertions, and a temp-home acquisition case that could hit the wrong failure. Restored those three complete files to main. Declined one proposed extra settlement cleanup: the project-registry cancellation callback already resolves its retained deferred before throwing in every table case. Independent review of the corrections found no actionable P0–P2 issues. The two additional Tlon file restorations only remove changes from the candidate.
Under the operator's CI-only compute budget, no local Vitest, check-changed, typecheck, coverage, or Testbox ran. Hosted
openclaw/ci-gateis the execution/merge gate; independent review runs in parallel after publication. Local test wall time and coverage totals are unavailable, not claimed as passing. Every source shard report explicitly says tests and coverage were not run in CI-only mode; there is no in-shard coverage totals line to report. The original reports describe preserved expanded cases; the figures below are the actual replay's lexical test-declaration counts, not executed case counts.src/agents/: openclaw-tools media-workspace, sessions-resume support, sessions-steering, sessions-spawn lifecycle and plan, tts-config, web-search; package-metadataui/src/components/browser/: browser-panel paste, route, stream-startup, stream, new stream.test-supportsrc/config/: env-substitution, includesui/src/pages/agents/memory/dreaming.test.tssrc/config/sessions/session-accessor.sqlite-: maintenance-admission, provenance, reclamation-admission-race, reclamation-preparation, worker-coordinationsrc/gateway/: device-pair-setup.trusted-proxy, health, private-completion.metadata-overlap support, sessions.agent-inventory, sessions.create.clone-identity, sessions.face, sessions.store-paths.projectionui/src/pages/agents/: panels-overview, view.identity-avatarsrc/projects/: project-environment, project-registry.authority, project-registry, project-source-envextensions/tlon/src/: core, security, tlon-apisrc/test-utils/: npm-spec-install-test-helpers, openclaw-test-state, portsextensions/ollama/src/thinking-discovery.test.ts