Repository navigation
test(gateway, browser, agents): remove low-value tests (batch d093) - #160892
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)
September 29, 2026 02:11
steipete
disabled auto-merge
September 29, 2026 02:17
Port t0127 while preserving the lane version of dashboard-ownership.test-support.ts, including its newer profile-selection hook. Validation: Testbox passed 77 tests across 3 files with no skips from fresh origin/main plus the five resolved shard paths. Oxlint exited 0; oxfmt, whitespace checks, and independent review passed.
steipete
force-pushed
the
tcr/land-d093-1790640444
branch
from
September 29, 2026 02:29
2f7f3c3 to
46c40b1
Compare
steipete
enabled auto-merge (squash)
September 29, 2026 02:32
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Sep 29, 2026
…penclaw#160892) * test(gateway): deslop t0149 tests * test(browser): deslop t0126 tests * test(diagnostics-otel): deslop t0140 tests * test(models): deslop t0145 tests * test(acp): deslop t0147 tests * test(browser): deslop t0142 tests * test(doctor): deslop t0151 tests * test(browser): deslop t0127 tests Port t0127 while preserving the lane version of dashboard-ownership.test-support.ts, including its newer profile-selection hook. Validation: Testbox passed 77 tests across 3 files with no skips from fresh origin/main plus the five resolved shard paths. Oxlint exited 0; oxfmt, whitespace checks, and independent review passed. * test(agents): deslop t0130 tests * test(agents): deslop t0144 tests * test(browser): use typed deferred helper in reduced fixtures
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
Batch d093 removes repetitive tests and duplicated fixtures whose maintenance cost exceeds their additional behavioral coverage.
User Impact
There is no production behavior change. The batch reduces test maintenance while retaining authority, cancellation, isolation, migration, and real-SDK regression coverage. Production code is unchanged.
Why This Change Was Made
Replay ten previously validated campaign shards onto current main, consolidate overlapping cases and fixtures, delete redundant split test files, and remove two stale max-lines entries.
All ten commits applied; none skipped. Two replay conflicts were resolved:
service.agent-attribution.test.tsin full, including the newer real-SDK setup/cleanup; drop the campaign's deletion of that file.pauseAtBoundaryhelper. Preserve cancellation and authority assertions.Replay compatibility repair: use the existing typed
createDeferredhelper for seven browser fixture rendezvous calls under current main's ES2023 types. This adds two test lines; the per-shard table below describes the ten replay commits before that repair.No changed path matches the repository's current CODEOWNERS rules.
Evidence
pnpm install --frozen-lockfile --prefer-offline: passed locally and on Blacksmith Testbox.oxfmt, plainoxlint -c .oxlintrc.json, andgit diff --check: passed.2f7f3c3f60254d24bbf91aeb61d0d36b30f5fa69: 972 tests passed across 51 files, zero skips, nine routed Vitest shards in 116.78 seconds. Selection includes every surviving changed test and the retained OTEL agent-attribution and Gateway transcript tests. Leasetbx_01m3n92tyfgjx44wgq6d61500c; wrapper exit 0; stopped.CRABBOX_PROVIDER=blacksmith-testbox OPENCLAW_TESTBOX=1 node scripts/check-changed.mjs -- <all 61 changed paths>: passed on Blacksmith Testbox, including all core/plugin test typechecks, boundaries, ratchets, dead exports, and lint. Run 36508087169, leasetbx_01m3ncegjhgg6y59t358mmnv7a, command exit 0; stopped automatically. The backing Actions run can show cancelled because Blacksmith stops the delegated session after success. Nonblocking warnings only; no pre-existing-failure exemption used.installModelsConfigTestHooksalready clears runtime/config/readiness state after each case; the screenshot path invokes the mocked image-description dependency without a media-model configuration gate. The questioned screenshot tests also passed in the focused run. No accepted actionable findings remain.Historical shard coverage below is the original in-shard comparison, not a new coverage measurement of this replay. Statement and branch drops satisfy the campaign's 1% gates. t0127 excluded two baseline-failed dashboard files from its comparison; the source lane separately repaired their fixture, and this batch preserves main's current dashboard helper. Historical max-lines failures in several shard reports are not treated as proof of any current-main failure.
LOC split against the replay base: production +0/-0; tests +8,547/-30,551 (net -22,004); test support +0/-2; baseline configuration +0/-2. Total net reduction: 22,008 lines.
Declaration counts below count syntactic line-leading
it/testcalls, including one declaration per parameterized table; they are distinct from executed test-case counts. LOC and declarations are measured on each replayed commit, while coverage is quoted from its original shard report.Per-shard files and original coverage totals
t0149
src/gateway/config-reload.test.tsOriginal report: covered statements 1017 -> 1016 (-1); branches 645 -> 643 (-2); functions 153 -> 153 (0)
t0126
extensions/browser/src/browser-tool.dashboard.test.tsextensions/browser/src/browser-tool.schema.test.tsextensions/browser/src/browser-tool.tabs.test.tsextensions/browser/src/browser-tool.test.tsOriginal report: covered statements 1299 -> 1300 (1); branches 1231 -> 1219 (-12); functions 213 -> 213 (0)
t0140
extensions/diagnostics-otel/src/service.event-loop.test.tsextensions/diagnostics-otel/src/service.gateway-rpc.test.tsextensions/diagnostics-otel/src/service.otlp-export.test.tsextensions/diagnostics-otel/src/service.restart.test.tsextensions/diagnostics-otel/src/service.test.tsOriginal report: Coverage passed: statements 1,706 → 1,704 (−2); branches 1,314 → 1,303 (−11, 0.84%); functions 260 → 259. No excluded groups or file losing more than five statements.
t0145
src/agents/models-config.root-authorship.test.tssrc/agents/models-config.runtime-source-snapshot.test.tssrc/agents/models-config.skips-writing-models-json-no-env-token.test.tssrc/agents/models-config.uses-first-github-copilot-profile-env-tokens.test.tssrc/agents/models-config.write-serialization.test.tsOriginal report: covered statements 1559 -> 1556 (-3); branches 931 -> 927 (-4); functions 300 -> 299 (-1)
t0147
config/max-lines-baseline.txtsrc/acp/control-plane/manager.reset-options.test.tssrc/acp/control-plane/manager.runtime-config-validation.test.tssrc/acp/control-plane/manager.runtime-config.test.tssrc/acp/control-plane/manager.runtime-handles.test.tssrc/acp/control-plane/manager.runtime-resume-state.test.tssrc/acp/control-plane/manager.startup-identity-reconcile.test.tssrc/acp/control-plane/manager.test.tsOriginal report: Coverage: statements 1,449 → 1,446 (−0.21%); branches 939 → 933 (−0.64%); functions 304 → 302. Gate passed; no exclusions or drops exceeding five statements.
t0142
config/max-lines-baseline.txtextensions/browser/src/browser/pw-session.assert-navigation-safety.test.tsextensions/browser/src/browser/pw-session.connections.test.tsextensions/browser/src/browser/pw-session.create-page.navigation-guard.test.tsextensions/browser/src/browser/pw-session.create-page.ownership.test.tsextensions/browser/src/browser/pw-session.dialogs.test.tsextensions/browser/src/browser/pw-session.enumeration.test.tsextensions/browser/src/browser/pw-session.get-page-for-targetid.test.tsextensions/browser/src/browser/pw-session.page-cdp.test.tsextensions/browser/src/browser/pw-session.pinned-transport.test.tsextensions/browser/src/browser/pw-session.termination-cdp-ssrf.test.tsextensions/browser/src/browser/pw-session.test.tsOriginal report: Coverage: statements 1,812 → 1,811; branches 888 → 887; functions 313 → 313. Both 1% gates passed. Only
pw-session-connection.tsdropped coverage: one statement and one branch.t0151
src/commands/doctor/shared/legacy-config-migrate.provider-shapes.test.tssrc/commands/doctor/shared/legacy-config-migrate.test.tssrc/commands/doctor/shared/legacy-config-migrate.validation.test.tsOriginal report: Coverage: statements 2,659 → 2,678 (+19); branches 1,902 → 1,900 (−0.11%); functions 489 → 497 (+8). No excluded groups or per-file statement losses.
t0127
extensions/browser/src/browser/routes/agent.act.existing-session-navigation-guard.test.tsextensions/browser/src/browser/routes/agent.act.normalize.batch-contract.test.tsextensions/browser/src/browser/routes/agent.act.normalize.test.tsextensions/browser/src/browser/routes/agent.existing-session.test.tsOriginal report: Coverage: statements 1,443 → 1,443; branches 983 → 982; functions 205 → 205. Gate passed. Only the duplicate middle-button parser branch dropped; no statements dropped. The two baseline-failed dashboard files were excluded from comparison.
t0130
src/agents/model-fallback.chain-stop.test.tssrc/agents/model-fallback.live-switch.test.tssrc/agents/model-fallback.personal-cooldown.test.tssrc/agents/model-fallback.probe.test.tssrc/agents/model-fallback.quota-recovery.test.tssrc/agents/model-fallback.terminal-boundary.test.tssrc/agents/model-fallback.test-support.tssrc/agents/model-fallback.test.tsOriginal report: Coverage: statements 4058 → 4047 (−0.27%); branches 3254 → 3225 (−0.89%); functions 779 → 778. Both groups passed; none excluded.
t0144
src/agents/models-config.providers.auth-provenance.test.tssrc/agents/models-config.providers.catalog-context.test.tssrc/agents/models-config.providers.endpoint.test.tssrc/agents/models-config.providers.implicit.discovery-scope.test.tssrc/agents/models-config.providers.implicit.outcomes.test.tssrc/agents/models-config.providers.normalize-keys.test.tssrc/agents/models-config.providers.nvidia.test.tssrc/agents/models-config.providers.policy.lookup.test.tssrc/agents/models-config.providers.runtime-headers.test.tssrc/agents/models-config.providers.secrets.bedrock-apikey.test.tssrc/agents/models-config.providers.vercel-ai-gateway.test.tssrc/agents/models-config.replace-mode-skip-implicit-discovery.test.tsOriginal report: Coverage: statements 2,159 → 2,154 (−0.23%); branches 1,597 → 1,587 (−0.63%); functions 437 → 434. Both groups valid; no file lost more than five statements.