Skip to content

test(agents,gateway,plugins): remove low-value tests (batch d021) - #158919

Merged
steipete merged 11 commits into
mainfrom
tcr/land-d021-1790414854
Sep 26, 2026
Merged

steipete merged 11 commits into
mainfrom
tcr/land-d021-1790414854

Conversation

@steipete

@steipete steipete commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Batch d021 of the maintainer-requested test-reduction campaign removes repeated assertions, copied fixtures, and redundant combinations that add maintenance cost without independent behavior proof.

User Impact

No user-visible behavior change. This is a test/support-only change: 247 paths, +2,916/-11,873 lines (net -8,957), and 277 fewer test declarations. Production code, configuration, baselines, and dependencies are unchanged.

Why This Change Was Made

Consolidate duplicate setup and equivalent cases while retaining owner-boundary coverage for authorization, lifecycle cleanup, delivery, networking, and plugin contracts. Remove two copied/wrapper-only suites whose behavior is covered by the real StepFun and browser route owners, and remove one newly unused test-helper export while keeping its locally used function.

Replay preserves newer main contracts. Earlier replay faults in context-window fixtures, session-agent resolution, and hook context expectations were resolved by retaining main's complete tests. The auth-profile barrel export remains because newer callers use it. The surviving relay heartbeat-loss case explicitly checks that timers are gone before disposal, so disposal cannot hide a retirement leak.

Recovery rebased onto d4e7850dd56abcfb66ba8cda511378ff2f98c0da. Three avatar-test conflicts were adapted to main's async identity/avatar APIs; equivalent cleanup was retained, with no dropped hunks. The other ten commits are patch-identical to the previously reviewed candidate.

Shard Area Net test/support LOC Net declarations
s122 agents -2,714 -89
s136 process -764 -24
s138 Crabbox tooling tests -12 0
s134 plugins -1,427 -35
s131 infrastructure/outbound -1,137 -35
s137 browser -900 -32
s144 agent core -305 -14
s143 Anthropic -407 -11
s130 gateway -408 -11
s147 Discord -883 -26

Evidence

Earlier replay evidence: focused runs covered the selected files across completed runs; the final remaining 85-file run passed 1,389 tests. The changed-file gate passed typechecking and dead-export analysis before two untouched line-cap failures, subsequently fixed on main. The final pre-rebase review was scoped-clean through P2; one timer-cleanup finding was accepted and 41 retention concerns were adjudicated against remaining owner-boundary tests.

Historical coverage measurements belong to the campaign source revisions, not this rebased head. s136/s134 coverage was partial; s143/s130 did not produce passing coverage comparisons. No fresh whole-batch coverage claim is made.

Recovery validation on a2722081751b6a0423f5ba13d8be55315bdfad01:

  • Local frozen-lockfile install, formatting of all 245 surviving changed files, and git diff --check origin/main passed.
  • Fresh recovery review of the mechanically adjusted gateway commit is scoped-clean through P2 with zero actionable findings. Other commits remain patch-identical to the prior reviewed candidate.
  • Blacksmith Testbox verified the exact source SHA and 251 file fingerprints. All 90 focused tests passed across the three rebased avatar/identity files and the relay suite, including the final pre-disposal timer assertion. Its targeted changed-file gate passed typechecking, three dead-export scans, and lint.
  • Standalone plugin lint ran all groups: 21 passed, one failed solely on untouched extensions/signal/src/client-container.test.ts (1,050 counted lines; limit 1,000). This file and the lint/package inputs are byte-identical to fresh main 6a58d377cba40daf48f1765d914ff5a6be7aedeb; direct lint reproduced the same failure on those main bytes. This is a pre-existing failure outside d021, and no limit or assertion was weakened.
  • Infrastructure gap: the full 247-path changed-file gate was retried separately on the same lease, but source sync failed before payload execution: file sync failed: sync timed out after 2m0s. The full gate is therefore unverified on this rebased head. The maintainer recovery work order explicitly permits arming after this infrastructure failure with passing focused proof; hosted openclaw/ci-gate remains authoritative. The confirmed current-main Signal lint failure above is the only completed validation failure.

Testbox lease: tbx_01m3evt4zwmjg2wnwt4ba3nyfv (stopped and verified completed); associated Actions run. Wrapper results above describe the actual payload; lease cleanup can cancel the enclosing Actions job.

Hosted openclaw/ci-gate remains the merge gate.

Final hosted proof: CI run 36246481015 completed successfully on exact head a2722081751b6a0423f5ba13d8be55315bdfad01, including openclaw/ci-gate. Two untouched UI E2E failures on attempt 1 passed on same-head attempt 2. The package-boundary job reached its 20-minute limit on attempt 2 after compiling all 125 targets; its targeted rerun passed in 14m47s on attempt 3 with no source, timeout, or assertion changes. Squash auto-merge completed as debb7b048f57e76ca18f2fdf9b43322a4e0c36d8.

Remove duplicate matrices, strict-subset probes, and repeated local fixtures while retaining distinct plugin contracts.

s134: 1568 to 1403 executed cases; 39606 to 37354 test lines. The full shard passes, as do focused lint-fix checks and check:changed.

Canonical coverage comparison excludes the baseline-failing plugin group. The supplemental retained-data comparison gains 7 covered statements and 11 branches. The existing provider-onboard.connection test covers all nine dropped cold metadata bridge statements.
Trim redundant matrix rows and repeated inventory assertions, factor local fixtures, and replace a copied UI resolver with Gateway metadata assertions. Preserve distinct authorization, lifecycle, storage, migration, protocol, and ordering cases.

Across this shard and its separate fixes: 1546 to 1243 executed cases and 37875 to 37054 test lines. The final ordinary run passed 1241 cases with the existing Active Memory readiness and reclamation timing failures. Both coverage attempts exclude the failed baseline group; raw retry coverage gained 32 statements and 32 branches, with no source losing more than five statements.

Changed checks passed until three unchanged Telegram test-helper export findings; standalone lint passed. Quarantine assertions failed only in the first coverage run and passed both focused coverage and the full retry.
Retain newer main fixtures and auth-profile consumers, remove an unused test-helper export, and preserve heartbeat timer cleanup in the surviving relay test. Production code is unchanged from the batch base.

Independent review is clean. Final timer-assertion proof and remaining plugin lint are blocked by repeated Testbox source-sync timeouts; the full changed gate also recorded two untouched baseline line-cap failures already fixed on main. No publication or merge is claimed.
@clawsweeper

clawsweeper Bot commented Sep 26, 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.

ClawSweeper will not retry this unchanged revision.

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 channel: discord Channel integration: discord gateway Gateway runtime docker Docker and sandbox tooling agents Agent runtime and tooling extensions: anthropic extensions: crabbox extensions: browser size: XL labels Sep 26, 2026
@steipete
steipete enabled auto-merge (squash) September 26, 2026 13:51
@steipete
steipete merged commit debb7b0 into main Sep 26, 2026
347 of 367 checks passed
@steipete
steipete deleted the tcr/land-d021-1790414854 branch September 26, 2026 14:45
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 27, 2026
…enclaw#158919)

* test(agents): deslop s122 tests

* test(process): deslop s136 tests

* test(crabbox): deslop s138 tests

* test(plugins): deslop s134 tests

Remove duplicate matrices, strict-subset probes, and repeated local fixtures while retaining distinct plugin contracts.

s134: 1568 to 1403 executed cases; 39606 to 37354 test lines. The full shard passes, as do focused lint-fix checks and check:changed.

Canonical coverage comparison excludes the baseline-failing plugin group. The supplemental retained-data comparison gains 7 covered statements and 11 branches. The existing provider-onboard.connection test covers all nine dropped cold metadata bridge statements.

* test(infra): deslop s131 tests

* test(browser): deslop s137 tests

* test(agent-core): deslop s144 tests

* test(anthropic): deslop s143 tests

* test(gateway): deslop s130 tests

Trim redundant matrix rows and repeated inventory assertions, factor local fixtures, and replace a copied UI resolver with Gateway metadata assertions. Preserve distinct authorization, lifecycle, storage, migration, protocol, and ordering cases.

Across this shard and its separate fixes: 1546 to 1243 executed cases and 37875 to 37054 test lines. The final ordinary run passed 1241 cases with the existing Active Memory readiness and reclamation timing failures. Both coverage attempts exclude the failed baseline group; raw retry coverage gained 32 statements and 32 branches, with no source losing more than five statements.

Changed checks passed until three unchanged Telegram test-helper export findings; standalone lint passed. Quarantine assertions failed only in the first coverage run and passed both focused coverage and the full retry.

* test(discord): deslop s147 tests

* test: preserve current contracts in cleanup replay

Retain newer main fixtures and auth-profile consumers, remove an unused test-helper export, and preserve heartbeat timer cleanup in the surviving relay test. Production code is unchanged from the batch base.

Independent review is clean. Final timer-assertion proof and remaining plugin lint are blocked by repeated Testbox source-sync timeouts; the full changed gate also recorded two untouched baseline line-cap failures already fixed on main. No publication or merge is claimed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling channel: discord Channel integration: discord docker Docker and sandbox tooling extensions: anthropic extensions: browser extensions: crabbox gateway Gateway runtime size: XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant