Skip to content

fix(Makefile): run storybook tests after Go tests in pre-push#24703

Merged
mafredri merged 1 commit intomainfrom
mafredri/fix-pre-push-storybook-hang
Apr 24, 2026
Merged

fix(Makefile): run storybook tests after Go tests in pre-push#24703
mafredri merged 1 commit intomainfrom
mafredri/fix-pre-push-storybook-hang

Conversation

@mafredri
Copy link
Copy Markdown
Member

@mafredri mafredri commented Apr 24, 2026

Rolldown's tokio workers stall when competing with Go compilation and the production site build for CPU, causing Vite transform requests to hang. Vitest browser mode has no import-phase timeout, so a stalled browser import() blocks the run indefinitely.

Work-around: run storybook tests after the parallel Go/JS/build targets finish.

Diagnostic evidence
  • Isolated: 393 files, ~110s, no stalls.
  • With Go tests only: 393 files, ~119s, no stalls.
  • All four targets parallel (old): file(s) stuck at (0 test) after 7+ min. Vitest sleeping in ep_poll, 68 CLOSE-WAIT sockets, one ESTAB request Vite never serves. Example victim: Breadcrumb.stories.tsx (trivial static component).
  • 168 tokio-rt-worker threads from Rolldown visible in /proc/<pid>/task/.
  • ss -tnp shows the stuck file's module request sitting ESTAB in Vite's socket table.

🤖 This PR was created with the help of Coder Agents, and will be reviewed by a human. 🏂🏻

Rolldown's tokio workers stall when competing with Go compilation
and the production site build for CPU, causing Vite transform
requests to hang. Vitest browser mode has no import-phase timeout,
so a stalled browser import() blocks the run indefinitely.
@mafredri mafredri force-pushed the mafredri/fix-pre-push-storybook-hang branch from 2b1712c to a715575 Compare April 24, 2026 10:12
@mafredri mafredri changed the title fix(Makefile): serialize storybook tests in pre-push to prevent hang fix(Makefile): run storybook tests after Go tests in pre-push Apr 24, 2026
@mafredri mafredri requested a review from johnstcn April 24, 2026 10:31
@mafredri mafredri merged commit ce12583 into main Apr 24, 2026
30 checks passed
@mafredri mafredri deleted the mafredri/fix-pre-push-storybook-hang branch April 24, 2026 10:40
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 24, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants