Skip to content

refactor(tests): remove duplicate stream coverage - #122190

Merged
steipete merged 1 commit into
mainfrom
test/remove-final-core-test-duplicates
Aug 11, 2026
Merged

steipete merged 1 commit into
mainfrom
test/remove-final-core-test-duplicates

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

The agent-side Responses stream suite repeated package-owner tool-call arbitration cases byte-for-byte, and the aggregate utility suite repeated two chunkItems cases already covered more completely by the dedicated owner suite.

Why This Change Was Made

Delete the five largest exact Responses duplicates that can be removed while keeping the existing max-lines suppression and protected baseline valid, plus the strict-subset chunkItems block and its unused import. The canonical package suite and all unique Azure/agent transport cases remain.

Five additional exact Responses duplicates are intentionally retained for now: deleting them drops the legacy file below the 1,000-line threshold, which requires removing an entry from the protected max-lines baseline. Project policy requires explicit approval for that baseline edit, so this PR does not bypass the gate or pad the file to game the count.

User Impact

No intended user-visible change. Runtime transport behavior is unchanged; CI runs fewer duplicate cases while retaining the same owner-level and unique path coverage.

Evidence

  • Canonical package Responses suite, reduced agent stream suite, dedicated chunk suite, and aggregate utility suite: 122 tests passed across three Vitest shards.
  • Full changed-file gate passed formatting, test typecheck, lint, dead exports, boundaries, max-lines ratchet, schema/storage guards, and cycle checks. Blacksmith/Testbox was unavailable on this host, so trusted heavy proof fell back locally.
  • Structured autoreview and deleted-content secret scan: clean.
  • git diff --check: clean.
  • Test-only delta: -308 lines. No production files changed.

AI-assisted maintenance cleanup; duplicate inputs/outcomes and the protected baseline boundary were reviewed directly.

@clawsweeper

clawsweeper Bot commented Aug 11, 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 11, 2026 18:08
@openclaw-barnacle openclaw-barnacle Bot added agents Agent runtime and tooling size: M maintainer Maintainer-authored PR labels Aug 11, 2026
@steipete

Copy link
Copy Markdown
Contributor Author

Land-ready proof for 6bfc93c0d0361a6415f07e5b55669e94d7404754:

  • Native review artifacts and structured autoreview report no actionable findings. ClawSweeper is still on its review-started placeholder; repository policy says a queued or late publisher does not block landing.
  • Canonical package Responses suite, reduced agent stream suite, dedicated chunk suite, and aggregate utility suite: 122 tests passed across three Vitest shards.
  • Full changed-file gate passed formatting, test typecheck, lint, dead exports, boundaries, max-lines ratchet, schema/storage guards, and cycle checks. Blacksmith/Testbox was unavailable on this host, so trusted heavy proof fell back locally before hosted CI.
  • Deleted-content secret scan and git diff --check: clean.
  • Exact-head hosted CI: run 31521187102, success with no failed or pending jobs. Superseded cancelled shared-Periphery contexts are unrelated to these TypeScript tests.

The patch removes 308 duplicate test lines and no production code. Five further exact Responses duplicates remain because removing them requires an explicitly approved edit to protected config/max-lines-baseline.txt; this PR leaves that gate intact and documents the follow-up.

@steipete
steipete merged commit d498daa into main Aug 11, 2026
154 of 159 checks passed
@steipete
steipete deleted the test/remove-final-core-test-duplicates branch August 11, 2026 18:21
@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

agents Agent runtime and tooling maintainer Maintainer-authored PR size: M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant