S1 — MediaProbe's track-walking loop is reachable on the JVM after all, which revises #84's boundary #141
Closed
opened 2026-08-27 03:07:04 +00:00 by JMR-dev
·
1 comment
No Branch/Tag Specified
main
fix/102-picker-back-press-overshoot
fix/268-saf-picker-determinism
feat/ogg-vorbis-libvorbis
feat/expedited-conversion-work
fix/gate-cache-in-worktrees
chore/gate-runs-shellcheck
test/publish-delete-arm-real-provider
docs/e8-instrumented-coverage
docs/api37-carrier-count-drift
docs/e7-second-constraint
test/publish-to-a-real-saf-destination
fix/api37-report-match-line
fix/api37-task-snapshot-crash
test/join-failure-message-on-device
docs/e2e-read-findings-e7
test/cancelling-a-running-export
test/reattach-to-a-running-job
test/content-uri-reaches-ffmpeg
fix/launcher-wiring-waits-for-the-pick
fix/cancel-tests-need-a-slower-encode
test/cancelling-a-running-join
test/cancelling-a-running-session
test/notification-cancel-action
test/ffmpeg-progress-is-observed
test/fallback-asserts-the-path
test/flac-and-opus-assert-their-format
docs/e2e-read-findings
docs/wave4-coverage-numbers
fix/injectable-startup-sweep-scope
test/session-outcome-seam
test/launcher-callback-identity
test/theme-follows-system-dark
test/audio-drop-arm
fix/rotation-waits-for-recreation
fix/convert-guards-on-ready
test/retry-save-mime
test/hardware-progress-reaches-workmanager
test/ffprobe-mapping-seam
test/device-codec-enumeration-seam
test/unknown-container-row
test/null-message-fallbacks
test/cancel-reaches-workmanager
docs/coverage-wave3-recovery
test/concat-engine-seam
docs/coverage-wave3
test/mediaprobe-merge-seam
test/adaptive-shell-wiring
test/aac-audio-args
test/notification-progress-text
test/media3-muxer-guard
test/hardware-fallback-and-cancellation
test/unprobeable-join-clip
test/one-branch-outcomes
test/foreground-type-regimes
fix/bound-wedge-diagnostics
docs/coverage-wave2
test/screen-wiring
test/viewmodel-setters
test/join-state-mapping
test/conversion-state-mapping
test/dedupe-user-messages
fix/restore-stack-merges
test/refused-jobs
test/concatworker-failure-arms
test/container-capabilities-audio
test/readspec-enum-fallbacks
test/outputpublisher-seams
test/mediaprobe-track-seam
test/outputpublisher-partial-branches
test/fake-provider-scaffolding
docs/coverage-read-findings
chore/gitignore-kotlin
test/bound-the-hangs
docs/coverage-remeasure
ci/baseline-counter-precision
fix/invalid-suggestion-chip
ci/wedged-leg-report
fix/reattachment-overwrites-pick
test/theme-live-branches
fix/failed-save-retry
fix/empty-composition-crash
ci/advisory-failure-report
docs/seven-run-counts
test/release-permission-guard
ci/build-workflow-permissions
docs/api37-point-release
docs/benchmark-populate-path
fix/dead-assertion-probe-test
ci/actionlint
test/device-codecs-encode-consequence
fix/sdkmanager-pipefail
docs/readme-restart-claim
fix/saf-picker-root-discovery
fix/probe-dispatcher-seam
test/media3engine-mime-tables
test/mediaprobe-pure-helpers
fix/codec-vocabulary-drift
docs/robolectric-rationale-correction
docs/api37-advisory-counts
test/r38-8-saf-e2e
test/r38-7-join-states
test/r38-6-conversion-states
test/r38-5-state-seam
fix/jacoco-robolectric-coverage
docs/instrumented-tests-correction
test/r38-2-filecard
test/r38-4-advanced-picker
test/r38-3-pickers
tools/file-issue-script
tools/api-37-emulator
fix/review-app-gaps
docs/review-corrections
No results found.
Labels
Clear labels
above-cut
accessibility
backlog
bug
confirmed
documentation
duplicate
enhancement
good first issue
help wanted
invalid
plausible
question
sev:high
sev:low
sev:medium
wontfix
Worked autonomously overnight: local, JVM-verifiable, no product decision
Barrier affecting people with disabilities
Held for manual review: product/UX call, CI/workflow, hardware, or unverifiable here
Something isn't working
Reviewer demonstrated the defect
Improvements or additions to documentation
This issue or pull request already exists
New feature or request
Good for newcomers
Extra attention is needed
This doesn't seem right
Reviewer could not fully demonstrate it; treat as unproven
Further information is requested
High severity
Low severity
Medium severity
This will not be worked on
Milestone
No items
No Milestone
Projects
Clear projects
No projects
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: JMR-dev/LibreMediaConverter#141
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Child 1 of 3 decomposing #133. Independent of S2 (#142) and S3 (#143). This one revises a closed ticket's boundary, so read that part before writing any code.
Why this exists
#84 closed by classifying these as device-bound and explicitly not a gap:
That is right about FFprobe, right about the measurement boundary, and wrong that these are only
orchestration. Both halves of that need answering before this is worth doing.
Reachability — verified, not assumed
Robolectric 4.16.1 ships
ShadowMediaExtractor, already on the test classpath. Read out ofshadows-framework-4.16.1.jar:MediaProbe.kt:106and:271both callsetDataSource(context, uri, null)— the shadowed overloadexactly. The entry point is reachable on the JVM today.
Why it is worth reaching — the branch matrix no fixture chooses
:120,:126,:281,:286video == nullis the whole guardmaxOfduration across tracks:117containsKey(KEY_DURATION)guard:116MediaProbeTrackFieldsTest's KDoc notes this is common:119-127RemuxTestreaches this code only through whatever the committed fixtures happen to contain, sonone of those four is chosen by any test — they are incidental to files picked for other reasons.
ShadowMediaExtractor.addTrackconstructs each directly.The decision this child has to make first
Two ways to do it, and they are not equivalent:
List<MediaFormat>, and test that. Thework/FailureOutcome.ktpure-seam pattern, whichCLAUDE.mdnames as the thing to reach forbefore concluding something cannot be unit tested. It leaves
androidTestcovering the genuinelythin edge —
setDataSourceandrelease— which is what device coverage is for.(2) is more in keeping with the repo, but (1) is a legitimate answer if the extraction turns out
to drag
MediaExtractorstate through the seam. Decide explicitly and write down which and why.Done means
The four cases above, each named, plus a correction to #84's boundary paragraph — a comment on
that ticket, or a line in
MediaProbe's KDoc — so the next coverage read does not re-derive all ofthis. Whichever way the decision goes, say so there too.
Mutation: change
video == nulltotrueat:120. The two-video-track test must go red.Already done, and verified on
maintoday — closing.This stayed open through a bookkeeping failure, not an unfinished one. PR #150 carried
Closes #141, but GitHub only fires a closing keyword when the PR merges into the default branch. #150 merged into its stack base instead (the async-retarget race written up on #160 and now inCLAUDE.md), so the keyword never ran. The content reachedmainlater via #160, which did not carry the keywords.Verified against
mainatd354f64just now, by re-running this ticket's own named mutation rather than by checking the files exist:The ticket named
video == null -> trueat:120. That line moved when the seam was cut, so the equivalent guard was mutated inextractedFrom:The ticket also required a correction to #84%s boundary paragraph. Posted there on 2026-08-27 ("Revisiting the boundary this ticket drew — with new evidence, not a re-reading of the old"), and
MediaProbeTrackWalkTest%s KDoc carries it too.Gate green on
main: 546 tests in 76 classes, 0 failures.