SafPickerRoundTripTest is failing on gating legs 34/35/37: the fixture root never appears in the picker #93
Closed
opened 2026-08-25 04:05:30 +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#93
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.
Blocking. These are gating legs, so this stops every PR in the repo until it is fixed or the tests stop gating.
The failure
Run 32806342548, on PR #89 — a docs-only change to two KDoc comments, which cannot plausibly affect it:
pickingAFile…thePickedInput…Rotation@FailsOnEmulatorApi37)This is not the flake #80 already fixed
#80 found and fixed a
StaleObjectException—UiObject2caching anAccessibilityNodeInfowhile DocumentsUI settles — and verified 5/5 green withpm clearon DocumentsUI between runs.This is a different failure. The node is not going stale; the fixture root never appears in the picker at all.
awaitPickerNodetimes out having never seenLMC R38 fixtures.What that points at
FixtureDocumentsProvideris declared in theandroidTestmanifest and installed with the instrumentation APK. DocumentsUI discovers roots by querying the package manager forandroid.content.action.DOCUMENTS_PROVIDER. The likely shape is a race between package installation settling and DocumentsUI building its root list — a retry on the node cannot help, because by then the picker is already open and showing a list that does not contain the root.Worth checking, in roughly this order:
ContentResolverquery for its root URI — before opening the picker at all? That would be a real wait rather than a sleep.Why it must not just be retried away
A retry that reopens the picker until the root shows up is legitimate. A retry that swallows a genuinely missing provider is not — the MIME-filter mutation in #64 works precisely by making the root absent, and a fix that tolerates absence would make that mutation vacuous. Whatever lands must keep this red:
Immediate mitigation taken
gh run rerun --failedon the blocked PR. That is a stopgap for one PR, not a fix, and it should not become the habit — three of five legs failing means roughly a 60% chance of blocking any given PR.If it cannot be made reliable
The honest fallback is to stop these two gating and run them somewhere that reports without blocking, the way
@FailsOnEmulatorApi37already does for the API 37 pair. That is a downgrade, not a fix, and should be recorded as one — the SAF round trip is the only test of the picker that exists.Second failure variant, and it widens the fix.
Four more legs have failed since this was filed, all on diffs that cannot cause them (two KDoc comments, a MIME lookup table, a README paragraph).
Variant A — the root never appears (what this ticket describes):
API 33 (#90), 34, 35, 37 (#89).
Variant B — the root appears, the FILE does not:
API 37 (#95).
So this is not only root discovery. The same "picker content has not settled" problem bites at two depths — the roots list, and the document list inside a root once opened. A fix that only makes the root wait or retry leaves variant B live, and variant B will then present as a new flake to whoever meets it next.
Running tally: #89 three legs, #91 one, #90 one, #95 one. Every gating level except 36 has been hit at least once.
gh run rerun --failedhas been the stopgap on each, which is not sustainable — at this rate roughly every PR needs at least one re-run.The constraint is unchanged and matters more now, not less: #64's MIME mutation works by making the root absent. A fix that tolerates absence — at either depth — makes that mutation vacuous and leaves the picker test proving nothing. Whatever lands must keep it red.