Skip to content

chore(tests): delete unused media fixtures - #354

Merged
Quick104 merged 1 commit into
mainfrom
apiv2-stack/06-delete-unused-media-fixtures
Sep 23, 2026
Merged

Quick104 merged 1 commit into
mainfrom
apiv2-stack/06-delete-unused-media-fixtures

Conversation

@Quick104

Copy link
Copy Markdown
Contributor

Problem

Nine media files in iosApp/Tests/Fixtures/ are bundled into both test targets, but nothing loads them. They add about 2 MB to each test bundle, and anyone reading the fixtures has to work out that they are unused.

Solution

This PR deletes the following files:

  • delayed_truehd_probe.mkv
  • v3_mpeg4_mp3.avi
  • v3_vp9_opus.webm
  • v3_h264_aac.m2ts, .m4v, .mkv, .mov, .ts and .m3u8

It keeps the three media fixtures that tests still load:

  • v3_hls_00.ts and v3_hls_01.ts: Tests/Support/RotatingMediaOrigin.swift serves them.
  • v3_h264_aac.mp4: PlayerSurfaceLayoutTests loads it.

RotatingMediaOrigin builds its HLS playlist in code (Self.playlist), so the .m3u8 fixture is also unused.

To confirm that nothing uses the deleted files, I searched the whole repo with git grep for each file's base name (delayed_truehd_probe, v3_mpeg4_mp3, v3_vp9_opus, v3_h264_aac). I also checked every forResource:/withExtension: lookup in iosApp/Tests, looked for code that lists bundle resources or directories, and read iosApp/project.yml, scripts/, .github/ and fastlane/. The only v3_h264_aac reference is the .mp4 lookup in PlayerSurfaceLayoutTests.swift:339. The only reference to the HLS segments outside the deleted playlist is RotatingMediaOrigin.swift:72. XcodeGen globs Tests/Fixtures, and the Xcode project is not tracked, so project.yml needs no edit.

Validation

I ran these through a local xcodebuild runner:

  • build ios, build tvos and build macos passed.
  • test ios SiloTests/PlayerSurfaceLayoutTests SiloTests/MediaAuthorizationPlaybackTests SiloTests/ASSSubtitleRendererTests passed: 21 tests, 0 failures.
  • test tvos with the same three classes in SiloTVTests passed: 13 tests, 0 failures.

These classes load the kept media fixtures through RotatingMediaOrigin, the .mp4 lookup and the ASS/MKV fixtures. scripts/ci/check-no-api-v1.sh passes. This PR changes no source files.

  • Final stack: with all 50 PRs applied, the full iOS suite (1981 tests) and tvOS suite (1792 tests) passed with 0 failures, the macOS build passed, and the v1 path guard passed. Every branch in the stack, this one included, builds on its own.

Risks and follow-ups

The risk is low. A test that built a fixture name at runtime from pieces the search would miss could still need a deleted file. No such pattern turned up; the only dynamic lookup builds the kept v3_hls_0\(index) names. This PR is not expected to conflict with the open PRs.

AI disclosure

Code and description written by Claude Opus 5.5 (claude-opus-5-5) agents in Claude Code (T3 Code), orchestrated by a Claude Code workflow.


Part 6 of 50 in the Apple API v2 stack. Base: apiv2-stack/05-fix-v2-model-decoding. Merge in order from the bottom of the stack. The plan and full index are in PR 01.

🤖 Generated with Claude Code

@coderabbitai

coderabbitai Bot commented Sep 23, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: 538f3279-686d-43a2-bd4f-8b7d3d895f85

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Quick104 has reached the 50-credit limit for trial accounts. To continue receiving code reviews, upgrade your plan.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 23, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-23T13:32:00.710631Z 1b2df9c New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@Quick104

Copy link
Copy Markdown
Contributor Author

Code review summary

Reviewed head: 5dded529 (apiv2-stack/06-delete-unused-media-fixtures).

Process: an adversarial review of this PR's diff with each candidate finding independently verified before any fix, a simplify pass for medium and larger PRs, and a whole-stack review across contract conformance, authority and failure handling, data integrity, user-visible behavior and cross-PR integration.

Verified findings: none.

Validation: this branch builds on its own for iOS, tvOS and macOS, and its focused tests passed. The completed stack passed the full iOS suite (1981 tests) and tvOS suite (1792 tests) with 0 failures, the macOS build and the v1 path guard. The final stack was also exercised on iOS and tvOS simulators against a v1/v2 bridge server: sign-in (password and QR), restore, browse, search, detail, favorites and watchlist, playback (direct play, transcode, subtitles, stop), audiobooks, downloads with offline playback, settings, requests, profiles, push registration and diagnostics. Server logs showed no /api/v1 request from the new builds except the retained health probe.

Remaining: no open verified findings. Merge in stack order.

Mergeability: 8/10 — conditional. The approach holds up and every verified finding is fixed. Conditions: this PR's CI must pass (it was pending at review time), and the owner still plans a physical-device check of the completed stack.

Review by Claude Opus 5.5 (claude-opus-5-5) agents in Claude Code (T3 Code).

@Quick104
Quick104 force-pushed the apiv2-stack/05-fix-v2-model-decoding branch from 84c8934 to 8f69772 Compare September 23, 2026 13:19
@Quick104
Quick104 force-pushed the apiv2-stack/06-delete-unused-media-fixtures branch from 5dded52 to 3938db4 Compare September 23, 2026 13:19
@Quick104
Quick104 force-pushed the apiv2-stack/05-fix-v2-model-decoding branch from 8f69772 to 16cb951 Compare September 23, 2026 13:30
Base automatically changed from apiv2-stack/05-fix-v2-model-decoding to main September 23, 2026 13:30
Nine media files under iosApp/Tests/Fixtures were bundled into both test
targets but no test, support file, script, workflow or project.yml entry
loads them. They add about 2 MB to every test bundle.

Delete delayed_truehd_probe.mkv, v3_mpeg4_mp3.avi, v3_vp9_opus.webm and
v3_h264_aac.{m2ts,m4v,mkv,mov,ts,m3u8}. Keep v3_hls_00.ts and v3_hls_01.ts
(RotatingMediaOrigin serves them) and v3_h264_aac.mp4
(PlayerSurfaceLayoutTests loads it). RotatingMediaOrigin builds its own
playlist, so the .m3u8 file is unused.

Stack-PR: F6

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@Quick104
Quick104 force-pushed the apiv2-stack/06-delete-unused-media-fixtures branch from 3938db4 to 1b2df9c Compare September 23, 2026 13:30
@Quick104
Quick104 merged commit 2000ee9 into main Sep 23, 2026
3 of 6 checks passed
@Quick104
Quick104 deleted the apiv2-stack/06-delete-unused-media-fixtures branch September 23, 2026 13:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant