Repository navigation
test(core,qa-lab,tooling): remove low-value tests (batch d086) - #160480
Conversation
|
Codex review: blocked before merge. Reviewed September 28, 2026, 1:34 PM ET / 17:34 UTC (Revision 2). ClawSweeper reviewWhat this changesThe branch consolidates tests across agent model selection, Gateway chat, heartbeats, Windows updates, cron, config, and QA Lab, and updates CI’s protected-test inventory and a line-count baseline. Merge readiness⛔ Blocked before merge - 2 items remain Keep open. Current main has not adopted this cleanup, and the current head restores both boundary checks identified in the prior review. Focused inspection found no remaining discrete patch defect. Priority: P2 Review scores
Verification
How this fits togetherThese tests exercise OpenClaw runtime, delivery, recovery, and simulated provider behavior. CI selects the relevant suites and reports their results for PR review. flowchart LR
A[Runtime and delivery paths] --> C[Focused test cases]
B[QA Lab mock requests] --> C
C --> D[Protected test inventory]
D --> E[CI checks]
E --> F[Review evidence]
Before merge
Agent review detailsSecurityNone. PR surfacePR surface statistics unavailable: the file list is incomplete. Review metricsNone. Stored data modelPersistent data-model change detected: Technical reviewBest possible solution: Keep compact assertions at the protocol, routing, authorization, and recovery boundaries while removing duplicate setup and cases. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR addresses test maintenance rather than a reported runtime bug. Pinned source comparisons establish which suites are consolidated or removed. Is this the best way to solve the issue? Yes for the inspected boundaries: the current head keeps distinct delivery, streaming, and authorization assertions while consolidating overlapping cases. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against fb1ca633ecce. LabelsLabel changes: No label changes. Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
CI investigation for head The sole failed test job was checks-node-compact-small-14-2, plus the aggregate
The batch diff touches neither this test nor its runner, fixture, or build-prerequisite owner. I ran the complete unchanged file with
The failing hosted job tested merge Following the requested all-four-pass route: rerun only the failed jobs once and pin normal squash auto-merge to the unchanged head. No admin exception is being used: current clean main did not reproduce the failure. No timeouts, assertions, or skips were changed. Testbox lease cleanup can mark the linked hydration run cancelled; the command results above are the actual test evidence. Final outcome: not merged; auto-merge disabled. Failed-job rerun attempt 2 again failed only Classification: a reproducible regression in the older main revision used by the CI merge, already fixed on current main; the four passing replays do not establish a random flake. The campaign's documented branch-update recovery was attempted once, but GitHub refused it with Both |
Port shard 044e24ef93954c7b340e1f6901f47bfb4a718386 onto the campaign lane. Preserve the lane-added opaque retention child-owner regression and all three assertions verbatim. Validation: Testbox passed all 222 tests in one file with zero skips (73.73s shard wall time). Targeted oxlint, oxfmt --check, git diff --check, and independent review passed.
Retain distinct wire, routing, authentication, ownership, and recovery cases identified during review of batch d086. Preserve the surrounding reductions. Capture heartbeat awareness observations inside the transport-completion callback and assert them after the run, preserving ordering without racing startup against a separate five-second deadline. Validation: focused Testbox suites, changed-file gates, targeted formatting and plain lint, and independent review passed.
17dd841 to
4c79cda
Compare
…law#160480) * test(heartbeat): deslop t0066 tests * test(tooling): deslop t0084 tests Port shard 044e24ef93954c7b340e1f6901f47bfb4a718386 onto the campaign lane. Preserve the lane-added opaque retention child-owner regression and all three assertions verbatim. Validation: Testbox passed all 222 tests in one file with zero skips (73.73s shard wall time). Targeted oxlint, oxfmt --check, git diff --check, and independent review passed. * test(agents): deslop t0076 tests * test(cli): deslop t0083 tests * test(agents): deslop t0075 tests * test(cron): deslop t0086 tests * test(config): deslop t0064 tests * test(qa-lab): deslop t0090 tests * test(agents): deslop t0078 tests * test(gateway): deslop t0085 tests * test: retain boundary coverage and stabilize heartbeat proof Retain distinct wire, routing, authentication, ownership, and recovery cases identified during review of batch d086. Preserve the surrounding reductions. Capture heartbeat awareness observations inside the transport-completion callback and assert them after the run, preserving ordering without racing startup against a separate five-second deadline. Validation: focused Testbox suites, changed-file gates, targeted formatting and plain lint, and independent review passed.
What Problem This Solves
The test suite carries repeated fixtures, overlapping case matrices, and implementation-mirroring assertions across heartbeat, tooling, model selection, Windows updates, cron, config, QA Lab, and Gateway chat.
User Impact
No application runtime behavior changes. This maintainer-requested batch removes low-value test repetition while retaining distinct wire, routing, authorization, ownership, and recovery contracts.
Why This Change Was Made
Batch d086 applies all ten supplied campaign commits. The final diff adds 8,665 lines and removes 32,788 (net −24,123): tests and exclusive support +8,665/−32,773 (net −24,108), test inventory/tooling +0/−12, and shrink-only baseline +0/−3. Application production LOC is +0/−0. Source test declarations drop from 1,535 to 858; parameterized declarations count once.
The replay base is
013a04798b000e6f91c3b32b45a37f36207546ce. The only content conflict was intest/scripts/test-projects.test.ts: all five newer TUI prerequisite/exclusion cases from main were kept while the intended redundant older rows were removed. No commits were skipped. No changed paths match the CODEOWNERS entries at this base.Review restored compact cases for twelve actionable findings: buffered Anthropic failure and successful tool-result streaming; replacement config writes retaining SecretRefs; special native runtime keys; idle Gateway owner eviction; embedded/CLI fast-mode forwarding; ordinary and best-effort delivery failure; mixed-owner abort isolation; replayable and quiet final settlement; recipient/account/topic discrimination; both inbound hook boundaries; and shared-session topic drift. Direct config-write coverage already existed, so its existing table was extended for replacement writes. The generic compatibility/migration checklist did not apply: no runtime config contract or stored-data schema changes.
Hosted CI also exposed a five-second startup race in the heartbeat mirror fixture. The test now captures the real awareness/preflight observations inside the existing awaited transport-completion callback, after delivery confirmation and before transport returns, and asserts them afterward. The ordering and negative assertions remain intact; no retry or longer timeout was added.
Evidence
tbx_01m3m06rev7tmdrja6b8ac2y3d.tbx_01m3m53tjxjryfgx1jy7dm7qpm.Testbox source SHA/tree identity was verified by the wrapper; command exit status is the proof, independent of the Actions lease-cleanup state. An earlier changed-gate allocation stayed queued without a runner and was stopped; the complete gate was subsequently recovered on the owned lease above. The first hosted head failed the heartbeat fixture's custom deadline; the correction and its focused proof are described above.
Historical per-shard coverage is retained below. Every original shard passed its <=1% covered-statement and covered-branch loss gate without excluded groups. These totals are the original shard measurements, not a fresh aggregate coverage claim for this replay. The LOC/declaration columns reflect the final tree including review restorations.
Per-shard changes and coverage
t0066
Test/support LOC: 5,011 -> 2,579 (-2,432); declarations: 92 -> 57 (-35).
Coverage:
covered statements 6981 -> 6971 (-10); branches 4491 -> 4478 (-13); functions 1307 -> 1300 (-7).Files touched:
scripts/lib/ci-proof-test-inventory.mtssrc/infra/heartbeat-runner.ack-token-heartbeat-acks.test.tssrc/infra/heartbeat-runner.broadcast-outcomes.test.tssrc/infra/heartbeat-runner.clears-pending-final-delivery.test.tssrc/infra/heartbeat-runner.committed-work.test.tssrc/infra/heartbeat-runner.event-routing.test.tssrc/infra/heartbeat-runner.failure-delivery.test.tssrc/infra/heartbeat-runner.first-isolated-outcome.test.tssrc/infra/heartbeat-runner.ghost-reminder.test.tssrc/infra/heartbeat-runner.identity.test.tssrc/infra/heartbeat-runner.inbound-hooks.test.tssrc/infra/heartbeat-runner.isolated-key-stability.test.tssrc/infra/heartbeat-runner.isolated-session-mirror.test.tst0084
Test/support LOC: 6,680 -> 3,352 (-3,328); declarations: 286 -> 126 (-160).
Coverage:
statements 590 -> 589 (-0.17%); branches 363 -> 363; functions 134 -> 134.Files touched:
test/scripts/test-projects.test.tst0076
Test/support LOC: 7,432 -> 3,694 (-3,738); declarations: 199 -> 88 (-111).
Coverage:
covered statements 2922 -> 2921 (-1); branches 2292 -> 2272 (-20); functions 585 -> 585 (0).Files touched:
src/agents/embedded-agent-runner/model.skip-agent-discovery-hooks.test.tssrc/agents/embedded-agent-runner/model.static-catalog.prepared.test.tssrc/agents/embedded-agent-runner/model.static-catalog.provider-alias.test.tssrc/agents/embedded-agent-runner/model.static-catalog.snapshot-cache.test.tssrc/agents/embedded-agent-runner/model.static-catalog.test.tssrc/agents/embedded-agent-runner/model.test.tst0083
Test/support LOC: 1,106 -> 864 (-242); declarations: 15 -> 13 (-2).
Coverage:
covered statements 4156 -> 4155 (-1); branches 3373 -> 3373 (0); functions 652 -> 652 (0).Files touched:
scripts/lib/ci-proof-test-inventory.mtssrc/cli/update-cli.windows-lifecycle.test.tssrc/cli/update-cli.windows-recovery.test.tstest/vitest/vitest.database-worker-core-paths.mjst0075
Test/support LOC: 4,182 -> 2,984 (-1,198); declarations: 74 -> 42 (-32).
Coverage:
statements 4933 -> 4927 (-0.12%); branches 3298 -> 3276 (-0.67%); functions 944 -> 945.Files touched:
src/agents/embedded-agent-runner/model.auth-read-race.test.tssrc/agents/embedded-agent-runner/model.auth-refresh-settlement.test.tssrc/agents/embedded-agent-runner/model.compat-route.test.tssrc/agents/embedded-agent-runner/model.configured-catalog-index.test.tssrc/agents/embedded-agent-runner/model.configured-pricing.test-support.tssrc/agents/embedded-agent-runner/model.configured-pricing.test.tssrc/agents/embedded-agent-runner/model.forward-compat.errors-and-overrides.test.tssrc/agents/embedded-agent-runner/model.forward-compat.test.tssrc/agents/embedded-agent-runner/model.generation-scope.test.tssrc/agents/embedded-agent-runner/model.inline-provider.test.tssrc/agents/embedded-agent-runner/model.provider-hooks.test.tssrc/agents/embedded-agent-runner/model.provider-hooks.timeout.test.tst0086
Test/support LOC: 5,779 -> 2,824 (-2,955); declarations: 130 -> 70 (-60).
Coverage:
statements 2217 -> 2216 (-1); branches 1860 -> 1854 (-6); functions 357 -> 357.Files touched:
config/max-lines-baseline.txtscripts/lib/ci-proof-test-inventory.mtssrc/cron/isolated-agent/run.auth-profile-cold-path.test.tssrc/cron/isolated-agent/run.cron-model-override-forwarding.test.tssrc/cron/isolated-agent/run.cron-model-override.test.tssrc/cron/isolated-agent/run.cron-runtime-model-thinking.test.tssrc/cron/isolated-agent/run.diagnostic-events.test.tssrc/cron/isolated-agent/run.fast-mode.test.tssrc/cron/isolated-agent/run.interim-retry.test.tssrc/cron/isolated-agent/run.live-session-model-switch.test.tssrc/cron/isolated-agent/run.message-tool-policy.test.tssrc/cron/isolated-agent/run.meta-error-status.test.tst0064
Test/support LOC: 9,440 -> 6,787 (-2,653); declarations: 137 -> 84 (-53).
Coverage:
covered statements 6967 -> 6944 (-23); branches 4749 -> 4718 (-31); functions 1261 -> 1257 (-4).Files touched:
config/max-lines-baseline.txtsrc/config/io.observe-recovery.test.tssrc/config/io.owner-display-secret.test.tssrc/config/io.read-helpers.test.tssrc/config/io.runtime-snapshot-write.test.tssrc/config/io.scalar-root.test.tssrc/config/io.shell-env-fallback.test.tssrc/config/io.snapshot.recovery.test.tssrc/config/io.snapshot.test.tssrc/config/io.state.test.tssrc/config/io.write-config.test.tssrc/config/io.write-prepare.test.tssrc/config/io.write-publication.test-support.tst0090
Test/support LOC: 10,011 -> 6,550 (-3,461); declarations: 253 -> 146 (-107).
Coverage:
statements 2250 -> 2248 (-2); branches 2201 -> 2196 (-5); functions unchanged.Files touched:
extensions/qa-lab/src/providers/mock-openai/server.a2a.test.tsextensions/qa-lab/src/providers/mock-openai/server.anthropic-failure.test.tsextensions/qa-lab/src/providers/mock-openai/server.http.test.tsextensions/qa-lab/src/providers/mock-openai/server.memory-ranking-proof.test.tsextensions/qa-lab/src/providers/mock-openai/server.progress.test.tsextensions/qa-lab/src/providers/mock-openai/server.responses-contract.test.tsextensions/qa-lab/src/providers/mock-openai/server.responses-input.test.tsextensions/qa-lab/src/providers/mock-openai/server.session-identity.test.tsextensions/qa-lab/src/providers/mock-openai/server.subagent-handoff.test.tsextensions/qa-lab/src/providers/mock-openai/server.test.tst0078
Test/support LOC: 4,635 -> 3,208 (-1,427); declarations: 98 -> 61 (-37).
Coverage:
covered statements 7830 -> 7812 (-18); branches 3937 -> 3911 (-26); functions 1295 -> 1290 (-5).Files touched:
scripts/lib/ci-proof-test-inventory.mtssrc/agents/prepared-model-runtime.discovery-lifetime.test.tssrc/agents/prepared-model-runtime.gateway-leases.test.tssrc/agents/prepared-model-runtime.hot-reload-dispatch.test.tssrc/agents/prepared-model-runtime.inbound-registry.test.tssrc/agents/prepared-model-runtime.inline-defaults.test.tssrc/agents/prepared-model-runtime.lifecycle.test.tssrc/agents/prepared-model-runtime.native-picker-failures.test.tssrc/agents/prepared-model-runtime.owner-selection.test.tssrc/agents/prepared-model-runtime.plugin-context.test.tst0085
Test/support LOC: 12,093 -> 9,419 (-2,674); declarations: 251 -> 171 (-80).
Coverage:
statements 20684 -> 20668 (-0.08%); branches 12624 -> 12601 (-0.18%); functions 3858 -> 3858.Files touched:
src/gateway/server-methods/chat.abort-authorization.test.tssrc/gateway/server-methods/chat.abort-errors.test.tssrc/gateway/server-methods/chat.abort-persistence.test.tssrc/gateway/server-methods/chat.directive-tags.test.tssrc/gateway/server-methods/chat.error-broadcast.test.tssrc/gateway/server-methods/chat.inject.parentid.test.tssrc/gateway/server-methods/chat.stop-cascade.test.ts