Skip to content

test: consolidate redundant coverage (198789, part 1) - #198930

Closed
vincentkoc wants to merge 2 commits into
mainfrom
test/recut-coverage-198789-a-20261114
Closed

vincentkoc wants to merge 2 commits into
mainfrom
test/recut-coverage-198789-a-20261114

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Nov 14, 2026 •

Copy link
Copy Markdown
Member

HOLD — no viable test reduction remains

Do not merge this proposal. Corrective head f8eec7035cdbcf8d7d664e2cf37ccc29e5e62423 restores the unsafe deletions from prior head a46afa9e1284d6a03f92c7a91ca492b872cdb046. Current coverage review found distinct behavior missing from named keepers for all 25 proposed suite deletions. Their six helper files are required with those suites. Prior green CI did not establish equivalent coverage.

Related: #198737

Restored source and publication state

  • All 25 deleted suites and six helpers are restored byte-for-byte from frozen main 232ba9a63de6912b613aa7aa00ec0e0bbf9e7f99. The four previously retained suites remain present; all 35 manifest dispositions are self-keepers.
  • All 13 deletion-owned selector, timing, mock-baseline, package-script and documentation edits are reverted. No production source changed.
  • The signed corrective commit restores 27,987 lines and removes 40 relative to the previous deletion head. Against original base 0eae4c0423cdf46fc94059ce1435ec96a0c37d15, only the 42-line self-keeper manifest remains (+42/-0): zero suite/helper deletions and zero production delta. This manifest-only residue is not a landing candidate.
  • The original proposal remains open on HOLD. No replacement PR, manual CI run, prepare or merge is requested. Automatic checks after the restorative push are separate from this no-landing decision.

Coverage findings

The decisive missing boundaries include queued creation after shutdown, final Matrix media validation after asynchronous resize, Wear node/session/attempt ownership, ACP resume admission, concurrent transcript idempotency, secret activation before publication, real plugin-fork auth selection, authenticated Gateway mutation scopes, raw MCP identity projection, overlapping requester wake cohorts, nested auth-store rollback, immutable backup receipts, UI source replacement, stalled attachment reads, label accessibility, release publication admission, relocated worker logging, bounded event-pair eviction, real Opus backpressure, database upgrade refusal and option-shaped Git upstream rejection.

These are static source and named-keeper comparisons, not claims that production fails today. The installed Anthropic SDK retry default and Discord voice pipeline were inspected directly. No runtime test was run for the restorative head.

Retained file dispositions

Every row below is retained; the helper rows stay with their importing suites.

Retained file Disposition
src/agents/subagents/spawn/acp-spawn.test.ts Exact-main suite retained
src/config/sessions/transcript.test.ts Exact-main suite retained
test/scripts/upgrade-survivor-migration-diagnostics.test.ts Exact-main suite retained
packages/ai/src/providers/anthropic.test.ts Exact-main suite retained
src/gateway/server-startup-config.secrets.test.ts Exact-main suite retained
src/gateway/gateway-plugin-forked-turn.e2e.test.ts Exact-main suite retained
src/gateway/server.sessions.store-rpc.test.ts Exact-main suite retained
src/commands/daemon-install-helpers.test.ts Exact-main suite retained
extensions/memory-core/src/memory/manager.reindex-recovery.test.ts Exact-main suite retained
src/gateway/server-methods/tools-effective.test.ts Exact-main suite retained
extensions/matrix/src/matrix/send.test.ts Exact-main suite retained
src/agents/subagents/registry/subagent-registry.requester-wake.e2e.test.ts Exact-main suite retained
src/gateway/server-node-events.test.ts Exact-main suite retained
src/agents/auth-profiles/profiles.test.ts Exact-main suite retained
src/infra/update-database-backup.test.ts Exact-main suite retained
ui/src/components/app-sidebar-rail.test.ts Exact-main suite retained
ui/src/e2e/chat-attachment-read-lifecycle.e2e.test.ts Exact-main suite retained
ui/src/pages/chat/components/chat-transcript-invalidation.test.ts Exact-main suite retained
src/gateway/session-message-events.test.ts Exact-main suite retained
ui/src/components/tooltip.test.ts Exact-main suite retained
src/gateway/worker-environments/service-lifetime.test.ts Exact-main suite retained
test/scripts/docker-release-artifacts.test.ts Exact-main suite retained
test/scripts/worker-deploy-build-plugin.test.ts Exact-main suite retained
apps/android/app/src/test/java/ai/openclaw/app/wear/WearRealtimeTalkControllerTest.kt Exact-main suite retained
src/gateway/server-chat-state.test.ts Exact-main suite retained
extensions/discord/src/voice/realtime-playback.integration.test.ts Exact-main suite retained
src/cli/update-cli/update-command-admit.test.ts Exact-main suite retained
ui/src/app/app-shell-gateway.test.ts Exact-main suite retained
src/infra/update-runner-git.test.ts Exact-main suite retained
extensions/matrix/src/matrix/send.test-support.ts Required helper
src/agents/subagents/registry/subagent-registry.requester-wake-receipts.test-support.ts Required helper
src/agents/subagents/registry/subagent-registry.requester-wake-settlement.test-support.ts Required helper
src/agents/subagents/spawn/acp-spawn-policy.test-support.ts Required helper
src/config/sessions/transcript-recent-text.test-support.ts Required helper
src/gateway/server-methods/tools-effective.fixtures.test-support.ts Required helper

Evidence and limits

  • All 31 restored blobs equal frozen selected main; all 35 self-keeper paths exist. The original-base comparison contains only the manifest.
  • git diff --check, staged whitespace and qualified formatting on 40 paths passed. Private-content guard configuration was checked without exposing values; no private-literal file is configured. The exact index stayed unchanged through formatting. Native app i18n verification passed. The supported line-cap comparison against original base passed with zero changed source files and no growth.
  • The published head's previously observed CI remains historical evidence for a46afa9e1284d6a03f92c7a91ca492b872cdb046: 112 successful checks, 54 skipped, one cancelled, one neutral, zero failures and no active jobs at the prior observation. Both actual CI gate and external gate succeeded. Those results do not cover the restorative head or cure the coverage findings.
  • The signed corrective commit used the documented iterative git commit --no-verify exception after equivalent scoped validation. CONTRIBUTING.md:97 permits this route; docs/ci/local-proof.md:326–334 defines inherited over-cap comparison against the branch base. No guard implementation, limit, suppression, dependency or production code changed. No runtime proof, prepare-run or merge-run occurred.
Historical report for the earlier head — not current-head proof

Current validation status

VALIDATED AS GREEN AS MAIN — full CI passed at the exact head; the known Periphery failure remains documented below. CI run 43618219649, attempt 2, is COMPLETED/SUCCESS at 523f702f5598891bec8019bf0a9ba550da65d811. The bounded 19:41 UTC exact-run read confirmed that result. The previous aggregate rollup read was FAILURE; this is not a claim that every displayed check is literally green. The remaining known shared-kit Periphery failure reproduces on main, with the execution and source evidence below.

The two earlier failures in core-4 and core-5 exhausted checkout attempts before source/compiler/runtime execution. A failed-only retry cleared them without source changes. No full-workflow rerun, test restoration, or production patch was needed. This PR stays ready for maintainer review; it has not been merged.

Related: #198737
Re-cuts part of #198789. The original is superseded by this part and #198932; both replacements have their own validation state.

Additional Periphery failure

Periphery job 132524038529 flags OpenClawIDDiscoveryAccountError as unused. A source audit found no Swift changes in this PR: the shared-kit, iOS, macOS and intersection-script sources match the actual CI base aedf. The type is still thrown at OpenClawIDDiscoveryAccount.swift:208 and declared at line 227; no deleted test references to it were found.

This establishes no identified deletion path, not an executed green-main result or a baseline waiver. The shared OpenClawKit intersection failure also reproduced on main at 989f4a6d1e4096461fc6c4fbae993f56f3b02a6e: main job 132532509861 reports the identical OpenClawIDDiscoveryAccountError declaration and exits 1. Both main consumer-report builds and shared scans succeeded before that intersection failed. Independent review verified the identical declaration source and diagnostic. This proves the specific shared-scan failure is inherited; it does not validate other tests or the whole PR. No Periphery rerun, production change or test restoration was made. The failed-only retry above addresses checkout infrastructure separately.

What Problem This Solves

Redundant test suites and stale test inventories add maintenance work. This standalone replacement carries 29 approved whole-file removals from the original consolidation onto frozen main 1b947c9a9f61c260219ddf0a6f281854600b7bdd.

Why This Change Was Made

The exact removal-to-keeper manifest names the removed files and existing keepers. This uses the approved bounded area-level review; it does not claim case-by-case equivalence or preservation of every retired permutation.

The branch is based directly on frozen main. Inventory cleanup stays coupled to this part's deleted files. The existing Windows test command drops only the deleted test/scripts/worker-deploy-build-plugin.test.ts argument.

User Impact

No production behavior change. Production LOC: +0/-0. Tests remove 30,560 lines; 13 inventory/selection owners remove 62 net lines; the manifest adds 33 lines. The Windows test-command edit is +1/-1.

Evidence

The manifest-only follow-up corrects keeper chains for rank 415 to final surviving suites. Removed paths and line counts are unchanged; these edits do not claim per-case equivalence.

The follow-up owner-builder audit removed the three stale docker-release-artifacts shorthand outputs while preserving other owners and the input-routing selectors.

  • Signed head: 523f702f5598891bec8019bf0a9ba550da65d811; frozen base: 1b947c9a9f61c260219ddf0a6f281854600b7bdd.
  • 30,665 changed lines: +38/-30,627 across 45 paths, below the 45,000-line cap. 30,589 net repository lines removed, including manifest and inventory costs.
  • All 35 distinct keeper paths resolve. Source review is bounded by file/area and is not exhaustive per-case preservation proof.
  • Follow-up relative-reference review removed the stale WebKit tooltip selector and two stale Matrix test citations; existing production references and documentation claims remain unchanged. This is test-inventory/citation cleanup only.
  • Scoped exact-reference checks found no unresolved live references. The docker-release-artifacts entry in test/scripts/fixtures/ci-measured-compact-jobs.json remains as a historical measured input; it does not execute the removed test file.
  • Signature, syntax/JSON, formatting and whitespace checks passed. Remaining Windows test arguments preserve their order.
  • The checkout is code-only. No local dependency-backed tests or typechecks were run. Current-head CI completed successfully; the main-reproduced Periphery exception is recorded above. This PR remains READY for maintainer review. Old-stack results were not used to validate this branch.

The original PR was closed without merging after both replacement parts and their retention accounting were verified.

@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 complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added channel: discord Channel integration: discord channel: matrix Channel integration: matrix app: android App: android app: web-ui App: web-ui gateway Gateway runtime extensions: memory-core Extension: memory-core cli CLI command changes scripts Repository scripts commands Command implementations agents Agent runtime and tooling size: XL labels Nov 14, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review November 14, 2026 15:26
@vincentkoc
vincentkoc marked this pull request as draft November 14, 2026 15:42
@clawsweeper

clawsweeper Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: stale review; fresh review needed.

Summary
The latest durable ClawSweeper review was for head 523f702f5598891bec8019bf0a9ba550da65d811, but the PR head is now f8eec7035cdbcf8d7d664e2cf37ccc29e5e62423. Its old verdict and PR readiness labels are no longer current.

Next step
Comment @clawsweeper re-review when the current head is ready; pushes after the first review are not reviewed automatically.

Review history (1 earlier review cycle)
  • reviewed 2026-11-14T15:42:56.193Z sha 523f702 :: needs maintainer review before merge. :: none

@vincentkoc
vincentkoc marked this pull request as ready for review November 14, 2026 16:55
@vincentkoc
vincentkoc force-pushed the test/recut-coverage-198789-a-20261114 branch from 523f702 to a46afa9 Compare November 16, 2026 19:23
@openclaw-barnacle openclaw-barnacle Bot removed the extensions: memory-core Extension: memory-core label Nov 16, 2026
@openclaw-barnacle openclaw-barnacle Bot removed channel: discord Channel integration: discord channel: matrix Channel integration: matrix app: android App: android app: web-ui App: web-ui gateway Gateway runtime cli CLI command changes labels Nov 17, 2026
@openclaw-barnacle openclaw-barnacle Bot added size: XS and removed scripts Repository scripts commands Command implementations agents Agent runtime and tooling size: XL labels Nov 17, 2026
@vincentkoc

Copy link
Copy Markdown
Member Author

Closing as part of the test-LOC trim-and-fold campaign. After every test that guards real behavior was kept (security/auth, data loss, races, user-visible regressions), too little safe removal was left in this PR to justify landing it. The removable coverage has already landed through the other campaign PRs. If needed, this can be reopened or re-cut from current main.

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant