Repository navigation
test(qa-lab,openshell,slack,reef,team-reports): remove low-value tests (batch d064) - #159607
Conversation
|
🦞👀 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: blocked before merge. Reviewed September 27, 2026, 7:17 AM ET / 11:17 UTC. ClawSweeper reviewWhat this changesThe branch consolidates fixtures and removes redundant test cases across QA Lab, OpenShell, Slack, Reef, and Team reports without changing production code. Merge readiness⛔ Blocked before merge - 1 item remains Current main still contains the test cases this PR prunes, so the cleanup remains distinct work. The retained boundary tests cover the principal safety and recovery cases I checked, and I found no concrete blocking defect. Priority: P3 Review scores
Verification
How this fits togetherThese tests feed fixture scenarios into bundled plugin and QA Lab behavior, then assert the results used by CI. They cover filesystem operations, channel delivery, evidence handling, and report session visibility. flowchart LR
A[Scenario fixtures] --> B[Plugin and QA tests]
B --> C[Runtime boundaries]
C --> D[Behavior assertions]
D --> E[CI results]
Before merge
Agent review detailsSecurityNone. PR surfaceTests -1133. Total -1133 across 27 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep the smaller test suite while preserving one strong boundary test for each distinct safety, recovery, privacy, and evidence contract. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR addresses duplicate test maintenance rather than a reported product failure. Is this the best way to solve the issue? Yes, the branch removes repeated cases and fixtures while retaining the principal boundary assertions checked in source. I found no narrower repair needed before ordinary review. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 7f43b3511499. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
* commit '69809d7a94277d01be964bd1cbbb7aa0ebc58c9b': (219 commits) perf(agents): serialize large model requests once (#159574) refactor(cli): share capability agent-selection test cases (#159616) fix(workers): restore installation type checks (#159629) test(channels,qa,providers): remove low-value tests (batch d065) (#159627) test(doctor): run isolated migration cases concurrently (#159609) feat(apple): show agent identities in native chat (#159528) chore(i18n): refresh native locales (#159635) fix(gateway): keep node provisioning's installation contract after overlapped preparation fix(models): keep shared catalog requests alive for remaining callers (#157191) feat: let agents query online people and device activity (#159117) perf(gateway): first cloud dispatch prepares worker artifacts one after another (#159520) refactor(android): deslop Android app third pass (#159589) test(qa-lab,openshell,slack,reef,team-reports): remove low-value tests (batch d064) (#159607) fix: align process liveness checks (#151107) thanks @ekinnee fix: sessions model default does not clear the override (#159587) fix(ios): preserve typing during reentrant SwiftUI updates fix(ci): frozen 2026.8.33 validation fails on inherited test clock (#159594) perf(gateway): avoid duplicate recipient row lookup (#159595) refactor(gateway): deslop gateway fourth pass (#158786) test(agents): split subagent task-settlement test support under the line cap (#159584) ...
* commit '69809d7a94277d01be964bd1cbbb7aa0ebc58c9b': (219 commits) perf(agents): serialize large model requests once (#159574) refactor(cli): share capability agent-selection test cases (#159616) fix(workers): restore installation type checks (#159629) test(channels,qa,providers): remove low-value tests (batch d065) (#159627) test(doctor): run isolated migration cases concurrently (#159609) feat(apple): show agent identities in native chat (#159528) chore(i18n): refresh native locales (#159635) fix(gateway): keep node provisioning's installation contract after overlapped preparation fix(models): keep shared catalog requests alive for remaining callers (#157191) feat: let agents query online people and device activity (#159117) perf(gateway): first cloud dispatch prepares worker artifacts one after another (#159520) refactor(android): deslop Android app third pass (#159589) test(qa-lab,openshell,slack,reef,team-reports): remove low-value tests (batch d064) (#159607) fix: align process liveness checks (#151107) thanks @ekinnee fix: sessions model default does not clear the override (#159587) fix(ios): preserve typing during reentrant SwiftUI updates fix(ci): frozen 2026.8.33 validation fails on inherited test clock (#159594) perf(gateway): avoid duplicate recipient row lookup (#159595) refactor(gateway): deslop gateway fourth pass (#158786) test(agents): split subagent task-settlement test support under the line cap (#159584) ...
…s (batch d064) (openclaw#159607) * test(openshell): deslop s517 tests * test(qa-lab): deslop s521 tests * test(qa-lab): deslop s527 tests * test(qa-lab): deslop s522 tests * test(qa-lab): deslop s523 tests * test(qa-lab): deslop s528 tests * test(qa): deslop s530 tests * test(slack): deslop s538 tests * test(team-reports): deslop s541 tests * test(reef): deslop s535 tests * test(qa-lab): retain missing failure receipt coverage
What Problem This Solves
Duplicate test cases, repeated fixture setup, and unused fixture branches add maintenance and CI work across OpenShell, QA Lab, Slack, Team reports, and Reef.
User Impact
No user-visible behavior changes. This batch changes 27 test files only; production and separate test-support LOC are unchanged.
Why This Change Was Made
Remove redundant matrix rows and owner-boundary replays, consolidate repeated local fixtures, and remove unused fixture responses. Retain the distinct filesystem safety, provider correlation, cancellation, evidence integrity, privacy, live authority, and persisted recovery contracts.
Replayed all ten campaign commits in order, then restored the distinct missing-failure-output case after review, onto main at
f27997f86c95d9acfc3ba17c2d46b6b24e50248c. No commits skipped, no manual conflicts, and no hunks dropped. Current-main behavior is retained. No baseline edits and no CODEOWNERS-matched paths are touched.Evidence
oxfmt --write,git diff --check, and plainoxlint -c .oxlintrc.jsonpassed.OPENCLAW_TESTBOX=1 CRABBOX_PROVIDER=blacksmith-testbox node scripts/check-changed.mjs -- <all 27 changed paths>passed on Blacksmith Testboxtbx_01m3h6sx7gq4gjtp2h6hkj31xh(run); remote command 8m28s, lease stopped.CI=1 pnpm install --frozen-lockfile --prefer-offline && CI=1 pnpm test <all 27 changed files>passed across six Vitest shards in 99.58s ontbx_01m3h7f33fpvzrdgayjwa665pt(run). This includes the restored missing-failure-output row.CI=1 OPENCLAW_CHECK_CHANGED_REMOTE_CHILD=1 OPENCLAW_CHANGED_LANES_RAW_SYNC=1 node scripts/check-changed.mjs -- extensions/qa-lab/src/runtime-tool-fixture.known-gap.test.tspassed on the same final lease. Combined focused tests plus follow-up gate completed with exit 0 in 7m48s; lease stopped.tbx_01m3h555br601e2pegms4mj1gmstopped before candidate execution: source verification's shallow base fetch returned Git exit 128 after 10m37s. That lease was stopped; the fresh final run above completed the previously blocked proof.Review retained one additional s523 case (four lines) for the missing failure receipt, so the final reduction is 65 executed cases across the original shard scopes and 1,133 test lines. The table below preserves the original measured campaign numbers.
The original in-shard coverage gates passed with covered statement and branch losses below 1% per shard. These are the original campaign measurements, not a fresh coverage run of the combined rebased batch. Syntactic declarations count each parameterized
it/testcall once; executed cases include expanded tables and unchanged files owned by each shard.Final replay diff: tests +1,145/-2,278 (net -1,133); production +0/-0; separate test support +0/-0.
Shard files and original coverage totals
Paths below are relative to each named directory.
s517 —
extensions/openshell/src/:openshell-mirror-fs-bridge.test.tscovered statements 177 -> 177 (0); branches 126 -> 126 (0); functions 43 -> 43 (0)s521 —
extensions/qa-lab/src/:code-mode-model-matrix.admission.test.ts,code-mode-model-matrix.runtime-identity.test.ts,crabline-transport-lifecycle.test.ts,crabline-transport-provider-identity.test.tscovered statements 808 -> 807 (-1); branches 494 -> 493 (-1); functions 156 -> 156 (0)The final-only preview rejection remains covered in
qa-transport.test.ts.s527 —
extensions/qa-lab/src/live-transports/discord/:channel-e2e.test.tscovered statements 319 -> 319 (0); branches 245 -> 245 (0); functions 50 -> 50 (0)s522 —
extensions/qa-lab/src/:crabline-transport-response.test.ts,crabline-transport-thread-routing.test.ts,evidence-containment.test.ts,evidence-invocation.test.ts,fixture-utils.fetch.test.tsstatements 2092 → 2083 (-9); branches 1141 → 1134 (-7); functions 437 → 437 (0)Statement and branch losses were 0.43% and 0.61%. The sibling Matrix config/target test covers the eight-statement provider-target drop; one statement was in
qa-transport.ts.s523 —
extensions/qa-lab/src/:gateway-child-env.test.ts,runtime-tool-fixture.known-gap.test.ts,runtime-tool-fixture.nested.test.ts,scenario-catalog.delegation.test.tscovered statements 949 -> 946 (-3); branches 757 -> 750 (-7); functions 209 -> 209 (0)s528 —
extensions/qa-lab/src/live-transports/matrix/scenarios/:scenario-runtime-e2ee-cli-shared.test.ts,scenario-runtime-tool-progress.test.tscovered statements 312 -> 312 (0); branches 197 -> 197 (0); functions 69 -> 69 (0)s530 —
extensions/qa-lab/src/live-transports/whatsapp/:participant-identity-flow.test.ts,scenario-environment.test.tscovered statements 1020 -> 1016 (-4); branches 583 -> 583 (0); functions 184 -> 182 (-2)s538 —
extensions/slack/src/:errors.causes.test.ts,monitor.history-policy.test.ts,progress-blocks.command-output.test.ts,send.direct-authority.test.tscovered statements 3744 -> 3742 (-2); branches 2613 -> 2609 (-4); functions 671 -> 671 (0)Circular-object serialization remains covered by
errors.test.ts. Retained direct-delivery boundary proof still asserts revocation after the first chunk and one HTTP write.s541 —
extensions/team-reports/src/:work-sessions.test.tscovered statements 282 -> 282 (0); branches 117 -> 116 (-1); functions 62 -> 62 (0)The ambiguity branch remains covered by
http.test.ts; Gateway tests retain real ownership/visibility proof.s535 —
extensions/reef/:protocol/encoding.test.ts,src/inbox-cursor.test.ts,src/transport-capacity-recovery.test.tscovered statements 773 -> 773 (0); branches 482 -> 481 (-1); functions 153 -> 153 (0)Only a test-helper default-capacity branch lost coverage; production coverage was unchanged. Actual post-ingress restart recovery and persisted-marker suppression remain.
Review decisions
The independent review raised three P2 coverage concerns. Accepted the missing-failure-output portion and restored its original row in
runtime-tool-fixture.known-gap.test.ts, protecting the separate failure-receipt guard and known-gap skip classification.Rejected the Telegram concern: the retained
does not deliver a rejected %s final and preserves accepted recoverytable still exercises real HTTP 400 responses for both send and edit, asserts that rejected text is absent, and checks the exact accepted recovery sequence.Rejected the delegation concern: retained sender/provider cases keep the coding grant intact while asserting non-owner denial. Global deny precedence remains covered by assembled-tool tests in
src/agents/agent-tools-agent-config.test.tsand explicitopenclawdeny cases insrc/agents/tool-catalog.test.ts; the QA path uses that shared policy pipeline.The other runtime-tool portions remain covered: missing call and missing happy output share the same guard and failure classifier, while
runtime-tool-fixture.test.tsretains direct failed-happy-result rejection. No production behavior changed. The isolated review of the four-line restoration finished scoped-clean at P2 with no accepted/actionable findings.