make ui-test: folder-picker and explore-track-details time out in full-suite runs on main #140
Open
opened 2026-08-19 20:35:43 +00:00 by logan
·
1 comment
No Branch/Tag Specified
main
fix/146-stub-etxtbsy
fix/175-wizard-follows-the-library
fix/231-setter-rollback
fix/197-duplicate-column-label
docs/225-fixtures-wav-tags
docs/220-skill-check-scope
test/217-fixture-names-in-queue-selection
fix/216-riff-parse-allocation
fix/170-queue-header-action-names
fix/210-nav-sheet-scroll-affordance
docs/50-readme-landing-page
feat/65-art-prefetch-ahead
feat/71-more-as-a-bottom-sheet
feat/54-native-touch-feel
feat/67-entity-links-into-menus
test/196-visual-tier-gates
fix/138-ui-test-storage-leak
fix/104-wav-tags-read
fix/207-sheet-scroll-affordance
fix/204-ui-visual-update-filter
pi-agent-backlog-automation
63-touch-model-phase-2
63-android-touch-model
186-touch-targets-settings
186-touch-targets-page-header
187-seek-bar-hit-area
189-190-explore-correctness
135-android-underrun-instrumentation
51-android-small-screens
fix/171-phone-queue-scrim
fix/137-touch-only-affordances
fix/154-nested-css-check
feat/58-mini-player-progress-line
fix/66-album-page-scrolls-as-one
60-context-menu-action-sheet
64-android-system-volume
59-slim-the-mini-player
55-queue-as-a-screen
feat/57-drop-the-android-top-bar
feat/62-jobs-as-a-notification
fix/53-seek-bar-never-moves
fix/159-android-task-app-id
fix/52-android-activity-recreation-restarts-the-process
fix/150-expand-button-under-the-art
feat/42-inline-volume-and-centred-transport
fix/156-queue-selection-fixture-order
fix/151-fuse-the-scroll-guard-and-the-write
fix/43-queue-panel-selection
fix/143-top-bar-fits-its-window
feat/27-jobs-into-settings
feat/25-configurable-sidebar-tabs
feat/6-global-back-forward
fix/72-active-view-broadcast
fix/69-page-header-action-overflow
fix/quick-wins-batch
fix/118-in-library-clear
fix/61-mini-player-plain-text
fix/68-hover-affordances-pointer
fix/119-dev-headless-port
fix/130-issue-claim-user
fix/131-codegen-check-scope
feat/28-autotag-match-on-album
feat/17-demote-version-selector
feat/38-ownership-visibility
ci/115-manual-release
feat/34-icon-language
feat/7-full-tracklist-toggle
fix/16-tagwriter-totals
fix/unclaim-ca-certs
fix/unclaim-shell
ci/unclaim-on-close
docs/closing-keyword
docs/retire-stale-planning-docs
docs/issue-driven-workflow
integration/small-fixes
fix/small-issue-batch
fix/queue-toggle-state
fix/drag-count-badge
fix/album-card-year
fix/album-tracklist-heading
fix/seek-bar-clock-width
fix/explore-art-scanner-requests
chore/workflow-guardrails
v0.7.0
v0.6.0
v0.5.0
v0.4.0
v0.3.1
v0.3.0
v0.2.3
v0.2.2
v0.2.1
v0.2.0
v0.1.0
v0.0.1
v0.0.0
Labels
Clear labels
Area/Design
Area/Downloads
Area/Explore
Area/Library-UI
Area/Metadata
Area/Packaging
Area/Player
Area/Queue
Area/Settings
Area/Shell-Nav
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Platform/Android
Platform/Desktop
Breaking change that won't be backward compatible
Something is not working
Documentation changes
Improve existing functionality
New functionality
This is security issue
Issue or pull request related to testing
Priority
Critical
1
The priority is critical
Priority
High
2
The priority is high
Priority
Medium
3
The priority is medium
Priority
Low
4
The priority is low
Reviewed
Confirmed
1
Issue has been confirmed
Reviewed
Duplicate
2
This issue or pull request already exists
Reviewed
Invalid
3
Invalid issue
Reviewed
Won't Fix
3
This issue won't be fixed
Status
Blocked
1
Something is blocking this issue or pull request
Status
Need More Info
2
Feedback is required to reproduce issue or to continue work
Status
Abandoned
3
Somebody has started to work on this but abandoned work
Status
In Progress
Somebody is actively working on this right now
Milestone
No items
No Milestone
Projects
Clear projects
No projects
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: yonlu/yellowjacket#140
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.
Report
A full
make ui-testrun on pristinemainfails four or five teststhat pass in isolation. Reproduced twice while verifying an unrelated
branch, by stashing the branch's changes so the tree was clean
main(
f967916):The failures are
Error: Test timed out in 15000ms., not assertionfailures — which is what distinguishes this from #138, where the
assertion is a real ordering disagreement.
Reproduction
What is ruled out
main, twice, and the same two runs of the same files in isolationpassed.
appear in either of these runs. The two may still share a cause —
both need the full suite's timing to appear.
The lead, stated as a lead
The run's own numbers say the machine is saturated before these files
start:
setup 160.94sandimport 69.05sagainsttests 53.68s, fora wall time of 38s across 82 parallel browser files. A 15s per-test
timeout is measured from when vitest starts the test, so a file that
waits on a browser context that is not scheduled fails without anything
in it being wrong.
folder-pickerawaits a dialog andexplore-track-detailsawaits a lazily-imported chunk — both are"wait for something that has to be scheduled", which is the shape that
loses a race for the CPU rather than a race in the code.
If that is right, the fix is a per-test timeout or a concurrency cap
rather than anything in the two suites; if it is not, the flake is
theirs. Worth measuring
--fileParallelismsettings before assuming.Why it matters
make ui-testruns in CI'scheckjob, and CI is capacity 1 — asuite that fails for reasons unrelated to the push costs a ~3 minute
re-run and, worse, trains everyone to re-run rather than read.
Not picked up: it did not reproduce here, in seven full runs, including
four at this issue's own saturation numbers.
I went looking for this specifically, because #219 (open,
fix/138-ui-test-storage-leak)found that
@vitest/browser-playwrightreuses oneBrowserContextacrosstest files, so
localStorageleaks between them — 24 polluted test-starts inone full run, cascading into 248 failures — and the question was whether #140
is the same root cause wearing a different symptom.
What I ran.
npx vitest run(the whole ofmake ui-test), 24-coremachine, vitest 4.1.10:
test/setup.ts+play-in-context.test.tsreverted toorigin/mainThe load was 36 spinning processes on 24 cores, picked to land on the
profile quoted in the report (
setup 160.94s,import 69.05s,tests 53.68s, wall 38s). Setup and import matched within ~10%;testscame in at 37s against the reported 53.7s, so the saturation is in the
right region but not identical.
Runs 5–7 are the counterfactual for the #219 question: those two files are
the entirety of #219's diff outside
CLAUDE.md, so reverting them ispristine
mainas far as this tier can tell. Neither #140's five timeoutsnor #138's assertion appeared, with or without the fix. So this measurement
does not show that #219 fixes #140 — it shows I could not reproduce #140 at
all, which is the reason I am leaving it rather than claiming it. Per the
scheduled-run rules, an intermittent failure that will not reproduce on
demand is an unbounded task.
What it is not. The localStorage leak's signature is a wrong value —
a sort order, a column width, a cover size — and #140's is
Test timed out in 15000ms. Neither named file mounts a component thatpersists anything:
folder-pickerreads no storage at all, andexplore-track-detailsmountsexplore-album-details, which renders itsown
.track-rowlist rather than<track-list>, so none of the threepolluted key families (
track-list-sort-*,track-list-column-widths,cover-grid-size) can reach it. I would not treat #219 as closing this.One lead, from reading the two files rather than from a measurement.
Every poll in them is finite and
setTimeout-based —folder-picker'shost()is 50 × 10ms,explore-track-details'sdialogTrack()andpickerPaths()are 100 ×setTimeout(0)— and exhausting one of thosebudgets fails as an assertion (
folder-picker did not mount itself,expected undefined to be '/music/an-album/01.flac'), never as a 15stimeout. So a timeout means some single
awaitdid not settle at all, andit is not "the poll is too short": raising a poll budget or the per-test
timeout would be treating the symptom of something else.
The one unbounded wait in both files is the same one: a dynamic
import()of a lazily-loaded chunk —
pickDirectory()→import('../components/folder-picker/folder-picker'),and
showTrackDetailsForPath()→ thetrack-detailschunk. Both aresource modules, so they are transformed on demand by the Vite dev server
(a single Node process shared with 82 parallel browser files) rather than
being covered by
optimizeDeps.include, which only pre-bundlesnode_modulesdeps. That is the shape the config's ownoptimizeDepscomment already exists for one layer up. Worth checking a failing run's
output for
new dependencies optimized/ a page reload before assuming;for what it is worth, none of my seven runs logged either.
Leaving it open, unlabelled and unclaimed.