Repository navigation
test(core,ui): remove low-value tests (batch d007) - #166689
Merged
Merged
Conversation
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review blockedAutomated 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. |
steipete
enabled auto-merge (squash)
October 7, 2026 18:04
scribe-dandelion-cult
added a commit
to karmaterminal/openclaw
that referenced
this pull request
Oct 7, 2026
2 upstream commits. One conflict, in src/commands/doctor-session-canonical-keys.owner-repair.test.ts: upstream openclaw#166689 pruned and simplified this test. Our side had adapted its owner fixture (assignLegacySessionOwner) and added one feature case, "compares authority ownership against the selected occupant before stamp preservation". Resolution takes upstream's file, which passes against this tree, and appends the feature case unchanged; it needs only helpers upstream's file already imports. 5/5 under scripts/run-vitest.mjs; commands-doctor test typecheck shard clean. Also regenerates docs/reference/database-schemas/worker-access-inventory.md for this tree (--check reported it stale after the a34319b merge). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Jhynq2GVpzuVQQieebEubg
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Oct 8, 2026
* test(config): deslop w1069 tests * test(infra): deslop w1068 tests * test(agents): deslop w1070 tests * test(gateway): deslop w1073 tests * test(agents): deslop w1071 tests * test(ui): deslop w1072 tests * test(gateway): deslop w1079 tests * test(agents): deslop w1074 tests * test(backup): deslop w1075 tests * test(doctor): deslop w1076 tests * test: retain distinct security and lifecycle coverage
This was referenced Oct 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Problem This Solves
Repeated and implementation-coupled tests across configuration, infrastructure, agent tools/runtime, Gateway dispatch/MCP, backup, Doctor, and cron UI make the test suite harder to maintain.
User Impact
No production behavior changes. This batch removes redundant test cases and consolidates retained regressions at their existing test owners. Production LOC: +0/-0. Test LOC: +5,488/-12,381 (net -6,893); test routing/inventories/baselines: +0/-15 across four files.
Why This Change Was Made
Replay the ten validated d007 campaign commits onto main at
79e94e64766b93061d7b537d436815a220f6bbe1. Keep distinct authorization, cancellation, lifecycle, race, privacy, and rendering coverage while removing low-value overlap. All ten commits are applied; none skipped.The only replay conflict was the import block in
ui/src/pages/cron/cron-page.lifecycle.test.ts. Retained main's agent-selection import once, added the consolidation's type/agent imports, and preserved main's newer model/provider regression cases. The initial replay dropped no intended hunks; independent review subsequently restored distinct coverage as described below. Baseline edits are shrink-only. No changed path matches the current CODEOWNERS file.Evidence
Dropped the reduction in
src/gateway/mcp-http.completion-lineage.test.tsafter its retained transaction-stage watch test failed during the combined focused run. A clean main checkout atd72a907b6125aef3ad98b709c533c8dec2f16c49passed all 14 cases. The original file and execution order are preserved in the final batch; this is not claimed as a product or flaky-test repair.Original in-shard coverage evidence is listed below; every shard passed its statement/branch covered-count loss gate (at most 1%). Coverage groups overlap, so these numbers are not additive and are not a new combined-branch coverage run. Original shard totals: test LOC 44,258 → 37,205; declarations 885 → 689; executed cases 1,370 → 953. Final replay LOC above comes from the actual batch diff.
pnpm install --frozen-lockfile --prefer-offline: passed.oxfmt --write,git diff --check, and plainoxlint -c .oxlintrc.json: passed, exit 0.086659eb72c0f4e2787c399afd97abad842fa2c3:CI=1 pnpm test <66 focused files>passed all 844 tests across nine routed Vitest groups in 446.47 seconds. This includes every surviving changed test plus the restored pager and MCP lineage files. Testbox run.OPENCLAW_TESTBOX=1 node scripts/check-changed.mjs -- <96 changed paths>: did not execute: Testbox allocationtbx_01m4br80231z40etke9xkcfx0wremained queued without a runner for about five minutes and was stopped. This is an infrastructure gap, not a passing changed-file gate. The campaign arming rule delegates final acceptance to hostedopenclaw/ci-gate.No retries, timeouts, assertions, or production behavior were weakened to obtain passing validation.
Independent review raised six P2 coverage concerns. Accepted five: restored the Matrix generated-account SecretRef case in the consolidated redaction suite, exact pager near-miss tables, an independently pinned inherited allowlist, successful queue settlement with a throwing observer, and original runtime-user restoration through an existing context transform. The pager file now matches main.
Rejected the backup scrubbing concern after verifying the unchanged canonical
src/snapshot/local-repository.test.tscasesanitizes transient global rows and enforces the global owner. It asserts removal of delivery queues, leases, transient blob rows/bytes, retention of durable plugin rows/bytes, and unchanged live source data. Both snapshot and backup paths callsanitizeOpenClawGlobalStateSnapshot; retained backup alias integration additionally exercises queue/blob and agent-lease scrubbing through archive creation. Restoring the deleted duplicate would not add a distinct contract.w1069: test LOC 2,423 → 1,843 (-580); declarations 90 → 63 (-27)
Original coverage totals:
Original commit files:
w1068: test LOC 3,768 → 2,490 (-1,278); declarations 90 → 55 (-35)
Original coverage totals:
Original commit files:
w1070: test LOC 4,728 → 4,417 (-311); declarations 90 → 82 (-8)
Original coverage totals:
Original commit files:
w1073: test LOC 5,615 → 5,180 (-435); declarations 88 → 78 (-10)
Original coverage totals:
Original commit files:
w1071: test LOC 3,702 → 3,470 (-232); declarations 89 → 79 (-10)
Original coverage totals:
Original commit files:
w1072: test LOC 4,133 → 3,270 (-863); declarations 89 → 61 (-28)
Original coverage totals:
Original commit files:
w1079: test LOC 5,569 → 5,172 (-397); declarations 86 → 79 (-7)
Original coverage totals:
Original commit files:
w1074: test LOC 4,143 → 3,388 (-755); declarations 88 → 68 (-20)
Original coverage totals:
Original commit files:
w1075: test LOC 5,240 → 4,144 (-1,096); declarations 88 → 62 (-26)
Original coverage totals:
Original commit files:
w1076: test LOC 4,937 → 3,831 (-1,106); declarations 87 → 62 (-25)
Original coverage totals:
Original commit files: