Skip to content

chore: remove obsolete media timeout test - #129167

Merged
steipete merged 1 commit into
mainfrom
test-audit/media-store-timeout-duplicate
Aug 25, 2026
Merged

steipete merged 1 commit into
mainfrom
test-audit/media-store-timeout-duplicate

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

The media-store timeout suite no longer exercised timeout behavior. Refactor #117771 replaced its former socket-based tests with a mock-only assertion that is fully duplicated by the stronger remote-source contract test in store.redirect.test.ts, leaving a misleading standalone file and redundant setup.

Why This Change Was Made

Delete the obsolete timeout test file. The retained public-owner test still asserts the complete saveMediaSource delegation contract, including both 30-second deadlines, request parameters, and the resulting SavedMedia shape. Real redirect, cancellation, suffix, and subdirectory behavior remains covered in that suite.

This PR is AI-assisted and was produced from a maintainer-requested test audit.

User Impact

No user-visible behavior changes. Maintainers get a smaller suite whose test names match the behavior actually exercised.

Evidence

  • node scripts/run-vitest.mjs src/media/store.redirect.test.ts — 7 tests passed before and after rebasing onto current origin/main.
  • node scripts/check-changed.mjs -- src/media/store.download-timeout.test.ts — required changed-file gates passed, including core-test typecheck and lint.
  • git diff --check origin/main...HEAD — passed.
  • .agents/skills/autoreview/scripts/autoreview --mode uncommitted ... — clean, no accepted/actionable findings; patch correctness 0.99.

Production LOC: +0/-0 | Tests: +0/-50

@clawsweeper

clawsweeper Bot commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@openclaw-barnacle openclaw-barnacle Bot added size: S maintainer Maintainer-authored PR labels Aug 25, 2026
@steipete
steipete marked this pull request as ready for review August 25, 2026 08:34

Copy link
Copy Markdown
Contributor Author

Land-ready proof for head 9fab3dbb728a25e276b1200c61f24a922803a7a9:

  • Focused owner suite: node scripts/run-vitest.mjs src/media/store.redirect.test.ts — 7/7 passed after rebasing.
  • Required changed gate: node scripts/check-changed.mjs -- src/media/store.download-timeout.test.ts — passed, including core-test typecheck and lint.
  • Patch sanity: git diff --check origin/main...HEAD — passed.
  • Autoreview: clean, no accepted/actionable findings; patch correctness 0.99.
  • Exact-head CI: run 32827318571 completed green.

No production code changed. The retained remote-source contract test still asserts both 30-second deadlines and the complete SavedMedia delegation shape.

@steipete
steipete merged commit c697cf2 into main Aug 25, 2026
177 checks passed
@steipete
steipete deleted the test-audit/media-store-timeout-duplicate branch August 25, 2026 08:44

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

maintainer Maintainer-authored PR size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants