Repository navigation
chore(tests): delete unused media fixtures - #354
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
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. Comment |
There was a problem hiding this comment.
Quick104 has reached the 50-credit limit for trial accounts. To continue receiving code reviews, upgrade your plan.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Code review summaryReviewed head: 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 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 ( |
84c8934 to
8f69772
Compare
5dded52 to
3938db4
Compare
8f69772 to
16cb951
Compare
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]>
3938db4 to
1b2df9c
Compare
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.mkvv3_mpeg4_mp3.aviv3_vp9_opus.webmv3_h264_aac.m2ts,.m4v,.mkv,.mov,.tsand.m3u8It keeps the three media fixtures that tests still load:
v3_hls_00.tsandv3_hls_01.ts:Tests/Support/RotatingMediaOrigin.swiftserves them.v3_h264_aac.mp4:PlayerSurfaceLayoutTestsloads it.RotatingMediaOriginbuilds its HLS playlist in code (Self.playlist), so the.m3u8fixture is also unused.To confirm that nothing uses the deleted files, I searched the whole repo with
git grepfor each file's base name (delayed_truehd_probe,v3_mpeg4_mp3,v3_vp9_opus,v3_h264_aac). I also checked everyforResource:/withExtension:lookup iniosApp/Tests, looked for code that lists bundle resources or directories, and readiosApp/project.yml,scripts/,.github/andfastlane/. The onlyv3_h264_aacreference is the.mp4lookup inPlayerSurfaceLayoutTests.swift:339. The only reference to the HLS segments outside the deleted playlist isRotatingMediaOrigin.swift:72. XcodeGen globsTests/Fixtures, and the Xcode project is not tracked, soproject.ymlneeds no edit.Validation
I ran these through a local xcodebuild runner:
build ios,build tvosandbuild macospassed.test ios SiloTests/PlayerSurfaceLayoutTests SiloTests/MediaAuthorizationPlaybackTests SiloTests/ASSSubtitleRendererTestspassed: 21 tests, 0 failures.test tvoswith the same three classes inSiloTVTestspassed: 13 tests, 0 failures.These classes load the kept media fixtures through
RotatingMediaOrigin, the.mp4lookup and the ASS/MKV fixtures.scripts/ci/check-no-api-v1.shpasses. This PR changes no source files.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