Skip to content

test: remove redundant suites with explicit coverage keepers - #198756

Closed
vincentkoc wants to merge 29 commits into
test/consolidate-script-coverage-tranche-1-20261114from
test/consolidate-gateway-coverage-tranche-2-20261114
Closed

vincentkoc wants to merge 29 commits into
test/consolidate-script-coverage-tranche-1-20261114from
test/consolidate-gateway-coverage-tranche-2-20261114

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Nov 14, 2026 •

Copy link
Copy Markdown
Member

Removes overlapping test files and repeated cases while preserving named coverage in existing suites. Production LOC delta: 0.

Net deletion

Current head c0200f2f44228de4fe05e9675725d4a901c16e32, stacked on repaired parent 75bf338afc0740e270e0a161a0387ab2d1d106d9, removes 56,962 net repository lines: 62,749 deleted / 5,787 added across 408 paths. Test/support changes remove 59,541 net lines (+3,130/-62,671, 366 paths); 33 manifest files add 2,657 lines; nine existing inventory/baseline files remove 78 lines. Production delta is 0.

The original published tranche checkpoint was d7471e2a111da0b0017f91c5402554f69476ffbe. This revision preserves that deletion scope, imports repaired parent ancestry, restores the original 16-line support-guidance test, and corrects three keeper claims. It adds no new deletion wave. The requested 50–100k tranche range is met.

Expansion remains stopped at published descendant 03d2d8b55adeacafeff6ac45b279832096c9f7c4 (historical campaign net 511,292 against 06bfea7). That is the frozen historical accounting, not a recomputed current-main total after ancestry repairs. Later local commits and partial edits remain unpublished. The 1M campaign goal remains unmet.

Coverage

Exact removed-file/case to keeper mappings are in test/scripts/coverage-consolidation/, including the delete-*.tsv manifests. largest-first.tsv records the committed rank decisions and their existing keepers; later in-progress decisions are not part of this published checkpoint. The LOC ranking is frozen at origin/main 159df507ba665110e28f1f28859d60360ced6082. Retirements cover gateway, agents, plugins, app tests and redundant workflow assertions. The earlier case-level work names precise keepers. New whole-file batches use bounded file-level owner/keeper review under the approved consolidation policy; they do not claim exhaustive per-case preservation proof. Test inventories and mock baselines drop only obsolete deleted-file entries.

The original src/agents/system-prompt-support.test.ts is restored byte-for-byte (16 lines), retaining Documentation/support guidance assertions; its stale row is removed from test/scripts/coverage-consolidation/delete-agents-n-z.tsv. delete-gateway-methods.tsv now identifies the surviving projects-identity keepers with area-level wording, and largest-first.tsv corrects the rank-40 Room outbox keeper that was later deleted at rank 304. The exact 1,202-line manifest-registry suite and 136-line cold-history benchmark are restored from main 18892937f80232a5f7159092e264fb9e44ad6a10; rank 322 is retained and two obsolete cold-history deletion claims are removed. The archived worker test file also matches that main revision byte-for-byte. Remaining whole-deletion keeper references resolve.

Independent review caught and restored cold-history truncation, dirty-parent pagination, atomic multiword arguments, distinct credentials, cold cache concurrency, persisted registry invalidation, From-only transcript delivery, UI geometry/transition checks, workflow artifact bindings and runner branches.

Validation

Current repair automatic CI has an Android test failure; remaining queued/running jobs are not passes. The Android third-party job completed 3,551 tests: 3,550 passed and TalkModeManagerTest.removedSpeechInterruptionSettingDoesNotKeepInterruptingPlayback failed with a 5,000 ms TimeoutCancellationException in withStartedTalk at TalkModeManagerTest.kt:3280. It checked out merge 21af1635918cd6e6348bfd7841152d68a9a3e6f2 of current c0200f2f into parent 75bf338afc0740e270e0a161a0387ab2d1d106d9. Independent source review confirms that the failing case, complete helper, GatewaySession.kt and TalkModeManager.kt are unchanged from that parent. The timeout is waiting for the real WebSocket connected callback, before manager.enable and the test behavior/assertions execute. Runtime cause remains unproven: source parity does not establish an executed pre-existing failure or a flaky result. No fixture, timeout, assertion or production change is authorized from this evidence. This failure is separate from the earlier JPEG fixture repair. A single-method focused native retry (run 53372) subsequently passed on exact head c0200f2f44228de4fe05e9675725d4a901c16e32, with the head and lock hash 6448ef7cc009ea886e320eab8e78594202f6f9549d8fc24ea5c0200eed148891 verified before and after execution. Its JUnit XML contains exactly one test, zero skipped, zero failures and zero errors: ai.openclaw.app.voice.TalkModeManagerTest.removedSpeechInterruptionSettingDoesNotKeepInterruptingPlayback, 1.316 seconds. Runtime: Temurin 21.0.12.1+1 / Gradle 9.8.2 (launcher Node 24.22.1 / pnpm 12.15.0); native command exited 0. The proof archive SHA-256 is 9681eeac5f5421ce8d434889cd76e446f51ef29b918c67ee48a4d8392a29c0ce. Workflow 43603663493 provisioned the runner only; it is not the test-result evidence. The original 3,551-test CI job remains FAILED and was not rerun; this isolated pass does not validate the full suite or explain the original handshake timeout. Runtime cause remains unproven. No source change or CI-status override was made.

Prior-head bundle job exposed a wrong Anthropic denial-order expectation and two QA metadata assertions. Repair c0200f2f corrects the existing full-argv expectation to the producer's sorted order without changing its three rows, and adds only secondary coverage metadata for the existing cloud-worker-admission scenario. The QA omission was already present on the parent; its scenario execution and assertions are unchanged. Production delta remains zero. The earlier native-control job remains raw red for the four cases independently reproduced on main. Earlier head 3d7b8c398b6260583db8b3d51dcd18d4fed14636 changed the existing Kysely fixture selector from core stripe 1/5 to 2/5. Copying the required src/infra fixture changed sorted roots, so the src/state consumer moved to stripe 2; both assertions are unchanged. This corrects the two actual failures in compact-small-11, which executed 237 tests: 235 passed and two failed. Syntax, formatter and diff checks passed. Earlier-head compact-small-11 passed all 10 run-oxlint-kysely.test.ts cases, including both previously failing striped rows. The job log checked out cc4796293dedfd7570066f6789e740e055dbe2b0, merging this head into parent 75bf338afc0740e270e0a161a0387ab2d1d106d9; this is scoped runtime proof, not overall CI success. The superseded bfd run passed baseline ratchets, but also had 17 runner-admission failures that executed zero tests. The provider reported its 10,080 sandbox starts per rolling 24 hours exhausted and new-start eligibility at 12:41 UTC on November 14. A single job-specific retry was refused because the workflow remained running; no retry was dispatched. No billing/capacity changes or full manual rerun were made. The superseded bfd run was cancelled after preserving its failures; unfinished jobs count as cancelled, not passed. Those setup failures are separate from the Kysely assertions and the main-reproduced native failure described below.

  • Remove 63 stale entries for deleted tests from the max-lines, timeout-race and mock-export baselines. Restore the manifest-registry test and its original max-lines allowance; the planner's existing file-presence guard and selection assertions remain intact.
  • Restore the original archived-history worker test and cold-history benchmark instead of retaining an invalid transferred RPC request (sessionId without the required message anchor). This also removes the two introduced shadowed bindings. Independent byte comparison confirms both restored files equal main 18892937.
  • Correct four test-only lint violations in PR wrapper, timing, Crabbox wrapper and fallback-classifier tests. Apply Android formatting and the previously reviewed small-JPEG fixture: the large photo exceeds the Inline decoder budget. Keep the zero-before/two-after image assertions, geometry checks and screenshots.
  • Copy src/infra/directory-walk.ts into the existing declaration fixture, because the copied emitter imports it. This closes both declaration/preparation test failures. The same fixture omission exists in frozen main source; no runtime-main reproduction is claimed for this separate failure.

The remaining native-control failure is independently reproduced on current main, not fixed by weakening tests: exact main 18892937f80232a5f7159092e264fb9e44ad6a10, Bun 1.4.4-canary.1+191755ec1, the same one-file gateway database-worker group, 14 executed cases, 10 passed and the identical four cancellation cases failed at client-native-control.test.ts:474. Expected completion text was replaced by the verification fallback in both executions. The native receipt was independently checked against the original CI failure; this proves those four failures are pre-existing on main, not whole-main CI success. PR198739 retains the detailed privacy-safe receipt. Its raw CI gate remains red/baseline-equivalent, not green.

The bde run passed the previously failing documentation-format and CI partition checks. Parent PR198752 selected CI completed successfully: 35 successful jobs and 30 skipped. Skipped jobs are not validation.

Static evidence: signed commits, exact restored-file comparisons, scoped syntax/format/diff checks and keeper-reference checks passed. Historical checkpoints parsed 51 JS/TS, 19 Swift and one Python file, then 27 JS/TS and four Swift files; ranks 821–1600 added 51 JS/TS and seven Swift parses. These are static checks, not runtime passes. Code-only managed checkouts had no local dependency-backed tests; affected commits used the documented one-command hook exception only where the installed oxlint version mismatched, after formatter/security checks. No dependencies were installed.

Historical CI at original d7471e2 and earlier campaign checkpoints does not validate this repaired head. Earlier type, mock-isolation, model-fixture ownership and MiniMax repairs remain included. The older inventory/Knip reports documented in prior revisions remain separate from these introduced failures; no aggregate main-green claim is made. Automatic PR CI is the validation route; no new full manual matrix was dispatched.

Refs #198737

Translation CI baseline

Observed main proof is available at 159df507ba665110e28f1f28859d60360ced6082: main CI run ran both parity checks. Native job passed source verification and failed generated parity with exactly 2,100 missing translations across 21 locales; its final missing IDs native.apple.6f73c7c2b31483d9, native.apple.b8bf8b21be904233, and native.apple.a303aad9d02911cb match this campaign. Native checker, artifact and production-source inputs are unchanged between that main revision and this checkpoint; only excluded iOS test files differ. This is an observed pre-existing native parity failure.

Control UI job passed source verification and locale parity on that main revision. The campaign's UI fallback drift is present in its older frozen base; main contains locale refresh 2e77b6be8b673742f5849e6a386829203f2a1fd2. It is not an observed current-main UI failure. The earlier main run at adb8a2b skipped native generated parity and supplied no parity proof. Latest-main strict parity remains UNKNOWN until its own comparable job completes; no full-main green claim is made.

Ordered Validation Cutoff

Queue position 3/10. This is a ready validation packet after PR198752's selected CI passed. The authorized serial READY rotation continues through existing descendants; runner queues are nonblocking, while new untriaged failures pause further promotions. No merge is authorized; Vincent owns review and merge. Pending/skipped jobs are not passes.

  • Current PR net: 56,962 lines (+5,787/-62,749, 408 paths).
  • Manifest: test/scripts/coverage-consolidation/largest-first.tsv, existing delete-*.tsv and tranche-2 JSON packets in that directory. Corrected rows are in delete-agents-n-z.tsv, delete-gateway-methods.tsv, and largest-first.tsv.
  • Keeper policy: earlier case-level mappings retain named failure detection; later whole-file batches use bounded area/keeper review and do not claim exhaustive per-case transfer. The support-guidance, manifest-registry and cold-history suites are retained, and keeper-chain claims are corrected.
  • Changed inventory/baseline files: config/max-lines-baseline.txt, config/test-mock-exports-baseline.txt, config/test-timeout-race-baseline.txt, scripts/lib/ci-proof-test-inventory.mts, scripts/lib/ci-test-native-bun-qualification.json, test/vitest/vitest.database-worker-core-paths.mjs, test/vitest/vitest.gateway-server-paths.mjs, test/vitest/vitest.cli-process-paths.mjs, and test/vitest/vitest.commands-light-paths.mjs (78 net stale lines removed; no broad runtime/inventory policy change).

@vincentkoc vincentkoc self-assigned this Nov 14, 2026
@clawsweeper

clawsweeper Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review blocked

Automated 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.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added app: android App: android app: ios App: ios app: macos App: macos app: web-ui App: web-ui extensions: memory-core Extension: memory-core cli CLI command changes scripts Repository scripts docker Docker and sandbox tooling agents Agent runtime and tooling extensions: anthropic extensions: minimax extensions: oc-path labels Nov 14, 2026
@vincentkoc vincentkoc changed the title test: consolidate gateway coverage with explicit keepers test: remove redundant suites with explicit coverage keepers Nov 14, 2026
@openclaw-barnacle openclaw-barnacle Bot added channel: discord Channel integration: discord channel: imessage Channel integration: imessage channel: matrix Channel integration: matrix extensions: memory-lancedb Extension: memory-lancedb plugin: google-meet app: wearos App: wearos labels Nov 14, 2026
@openclaw-barnacle openclaw-barnacle Bot added channel: slack Channel integration: slack extensions: codex labels Nov 14, 2026
@openclaw-barnacle openclaw-barnacle Bot added channel: signal Channel integration: signal channel: feishu Channel integration: feishu labels Nov 14, 2026
@clawsweeper

clawsweeper Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

ClawSweeper proposes closing this pull request because it changes 68,536 lines (5,787 added, 62,749 removed) across 408 files, above this repository's 50,000-line limit for review. Changes this large cannot be reviewed safely or scanned within limits and usually indicate a stale branch merged against an old base. Please open a fresh pull request from current main containing only the intended change, or split it into focused pull requests. A maintainer can apply size: accepted-large to exempt a deliberately large change.

@vincentkoc
vincentkoc marked this pull request as ready for review November 14, 2026 12:04
@vincentkoc

vincentkoc commented Nov 14, 2026 •

Copy link
Copy Markdown
Member Author

Superseded by two standalone DRAFT replacements from frozen main 1b947c9a9f61c260219ddf0a6f281854600b7bdd:

Combined: 55,563 net repository lines removed. Each replacement is below the 45,000 changed-line cap and has its own recut-198756-{a,b}.tsv keeper manifest.

Per-file reconciliation accounts for the original scope. Three live-fixture targets are deliberately retained: test/scripts/build-all.test.ts, test/scripts/dist-artifact-ownership.test.ts, and test/scripts/personal-credential-writer-guard.test.ts. Current-main selection of the restored cold-history benchmark is also preserved. Composition review additionally retains the exact metadata-rebuild suite and dirty-parent benchmark; their transfer hunks are reverted in targets removed by the broader queue. The dirty-parent benchmark remains opt-in, not always-running six-row coverage. Those retentions, compact manifests, current inventories and preserved newer-main assertions explain the difference from this PR's former 56,962-net figure.

The replacements remain DRAFT; their exact-head validation is pending. Closing this superseded PR without merging it.

@vincentkoc vincentkoc closed this Nov 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling app: android App: android app: ios App: ios app: macos App: macos app: wearos App: wearos app: web-ui App: web-ui channel: discord Channel integration: discord channel: feishu Channel integration: feishu channel: imessage Channel integration: imessage channel: line Channel integration: line channel: matrix Channel integration: matrix channel: nextcloud-talk Channel integration: nextcloud-talk channel: signal Channel integration: signal channel: slack Channel integration: slack channel: sms Channel integration: sms channel: telegram Channel integration: telegram channel: voice-call Channel integration: voice-call channel: whatsapp-web Channel integration: whatsapp-web cli CLI command changes commands Command implementations docker Docker and sandbox tooling extensions: anthropic extensions: browser extensions: codex extensions: google extensions: llama-cpp extensions: memory-core Extension: memory-core extensions: memory-lancedb Extension: memory-lancedb extensions: minimax extensions: oc-path extensions: openai extensions: qa-lab extensions: xai gateway Gateway runtime plugin: google-meet plugin: muse plugin: workboard scripts Repository scripts size: XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant