Repository navigation
test: consolidate redundant coverage (198789, part 1) - #198930
vincentkoc wants to merge 2 commits into
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: stale review; fresh review needed. Summary Next step Review history (1 earlier review cycle)
|
523f702 to
a46afa9
Compare
|
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. |
HOLD — no viable test reduction remains
Do not merge this proposal. Corrective head
f8eec7035cdbcf8d7d664e2cf37ccc29e5e62423restores the unsafe deletions from prior heada46afa9e1284d6a03f92c7a91ca492b872cdb046. 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
232ba9a63de6912b613aa7aa00ec0e0bbf9e7f99. The four previously retained suites remain present; all 35 manifest dispositions are self-keepers.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.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.
src/agents/subagents/spawn/acp-spawn.test.tssrc/config/sessions/transcript.test.tstest/scripts/upgrade-survivor-migration-diagnostics.test.tspackages/ai/src/providers/anthropic.test.tssrc/gateway/server-startup-config.secrets.test.tssrc/gateway/gateway-plugin-forked-turn.e2e.test.tssrc/gateway/server.sessions.store-rpc.test.tssrc/commands/daemon-install-helpers.test.tsextensions/memory-core/src/memory/manager.reindex-recovery.test.tssrc/gateway/server-methods/tools-effective.test.tsextensions/matrix/src/matrix/send.test.tssrc/agents/subagents/registry/subagent-registry.requester-wake.e2e.test.tssrc/gateway/server-node-events.test.tssrc/agents/auth-profiles/profiles.test.tssrc/infra/update-database-backup.test.tsui/src/components/app-sidebar-rail.test.tsui/src/e2e/chat-attachment-read-lifecycle.e2e.test.tsui/src/pages/chat/components/chat-transcript-invalidation.test.tssrc/gateway/session-message-events.test.tsui/src/components/tooltip.test.tssrc/gateway/worker-environments/service-lifetime.test.tstest/scripts/docker-release-artifacts.test.tstest/scripts/worker-deploy-build-plugin.test.tsapps/android/app/src/test/java/ai/openclaw/app/wear/WearRealtimeTalkControllerTest.ktsrc/gateway/server-chat-state.test.tsextensions/discord/src/voice/realtime-playback.integration.test.tssrc/cli/update-cli/update-command-admit.test.tsui/src/app/app-shell-gateway.test.tssrc/infra/update-runner-git.test.tsextensions/matrix/src/matrix/send.test-support.tssrc/agents/subagents/registry/subagent-registry.requester-wake-receipts.test-support.tssrc/agents/subagents/registry/subagent-registry.requester-wake-settlement.test-support.tssrc/agents/subagents/spawn/acp-spawn-policy.test-support.tssrc/config/sessions/transcript-recent-text.test-support.tssrc/gateway/server-methods/tools-effective.fixtures.test-support.tsEvidence and limits
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.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.git commit --no-verifyexception after equivalent scoped validation.CONTRIBUTING.md:97permits this route;docs/ci/local-proof.md:326–334defines 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
OpenClawIDDiscoveryAccountErroras unused. A source audit found no Swift changes in this PR: the shared-kit, iOS, macOS and intersection-script sources match the actual CI baseaedf. The type is still thrown atOpenClawIDDiscoveryAccount.swift:208and 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 identicalOpenClawIDDiscoveryAccountErrordeclaration 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.tsargument.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-artifactsshorthand outputs while preserving other owners and the input-routing selectors.523f702f5598891bec8019bf0a9ba550da65d811; frozen base:1b947c9a9f61c260219ddf0a6f281854600b7bdd.docker-release-artifactsentry intest/scripts/fixtures/ci-measured-compact-jobs.jsonremains as a historical measured input; it does not execute the removed test file.The original PR was closed without merging after both replacement parts and their retention accounting were verified.