Skip to content

test: trim residual subset assertions - #124203

Merged
steipete merged 1 commit into
mainfrom
test/remove-residual-strict-subsets
Aug 15, 2026
Merged

steipete merged 1 commit into
mainfrom
test/remove-residual-strict-subsets

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

Several tests still carried definedness, route-membership, exclusion, and uniqueness assertions whose failure sets were strict subsets of stronger neighboring behavior or exact inventory contracts.

Why This Change Was Made

These assertions added maintenance cost without detecting an independent regression. The retained tests still invoke the provider, continuation, header, and rollup behavior; assert exact sidebar and settings inventories; exercise derived route ownership and More-section behavior; and verify normalization and hub routing.

User Impact

No production behavior changes. The tests keep the same behavioral coverage with less duplicated feature-local bookkeeping.

Evidence

  • node scripts/run-vitest.mjs packages/ai/src/api-registry.test.ts packages/ai/src/providers/google-shared.convert.test.ts packages/ai/src/providers/mistral.test.ts packages/ai/src/transports/anthropic-transport-stream.test.ts packages/ai/src/transports/openai-responses-continuation.test.ts packages/ai/src/transports/openai-transport-params.session-header.test.ts — 199 passed
  • node scripts/run-vitest.mjs src/infra/session-cost-usage.test.ts — 58 passed
  • node scripts/run-vitest.mjs ui/src/app-navigation-groups.test.ts ui/src/app-navigation.test.ts ui/src/app-route-paths.test.ts ui/src/app-routes.test.ts — 135 passed
  • node scripts/check-changed.mjs -- <changed files> — passed via the documented local fallback because no remote provider was available
  • git diff --check — passed
  • Structured autoreview — clean

Production delta: 0 lines. Test delta: -57 net lines.

@clawsweeper

clawsweeper Bot commented Aug 15, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@steipete
steipete marked this pull request as ready for review August 15, 2026 16:04
@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: S maintainer Maintainer-authored PR labels Aug 15, 2026
@steipete

Copy link
Copy Markdown
Contributor Author

Land-ready proof for exact head 2a36e2358c23bb5e1ce8c039452e6f5fc5507235:

  • AI registry/provider/transport owners: node scripts/run-vitest.mjs packages/ai/src/api-registry.test.ts packages/ai/src/providers/google-shared.convert.test.ts packages/ai/src/providers/mistral.test.ts packages/ai/src/transports/anthropic-transport-stream.test.ts packages/ai/src/transports/openai-responses-continuation.test.ts packages/ai/src/transports/openai-transport-params.session-header.test.ts — 199 passed.
  • Session cost rollup owner: node scripts/run-vitest.mjs src/infra/session-cost-usage.test.ts — 58 passed.
  • Control UI route/navigation owners: node scripts/run-vitest.mjs ui/src/app-navigation-groups.test.ts ui/src/app-navigation.test.ts ui/src/app-route-paths.test.ts ui/src/app-routes.test.ts — 135 passed.
  • Changed-surface gate passed through the documented local fallback after the Blacksmith Testbox CLI was unavailable; formatting, type checks, lint, dead-export scan, UI i18n, boundaries, and repository guards were green.
  • git diff --check passed.
  • Structured autoreview reported no actionable findings.
  • Exact-head hosted CI run 31894524417 passed.
  • Native review artifacts validated with READY FOR /prepare-pr, zero findings; Testbox-enabled scripts/pr prepare-run 124203 completed without changing the PR head.
  • ClawSweeper exact review run 31894599402 succeeded. Its durable PR comment remains at the acknowledgement marker due publication lag, so there are no published findings or rank-up moves to apply.

This removes 57 net test lines and no production lines. Provider invocation, continuation ownership, header content, rollup payloads, exact sidebar/settings inventories, derived navigation behavior, and normalization coverage remain. No docs or changelog change is required.

@steipete
steipete merged commit f4a047b into main Aug 15, 2026
249 of 258 checks passed
@steipete
steipete deleted the test/remove-residual-strict-subsets branch August 15, 2026 16:11
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui maintainer Maintainer-authored PR size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant