You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
For those who are investigating, here are my attempts:
... -j 0 takes around 350 seconds for a small Rails project on my machine, which is not bad compared to the time taken before the hang. (supposedly the time taken if Process.fork works correctly.)
...
The -j 0 option is still the best contender for small projects, IMO.
byroot
changed the title
Fix bootsnap precompilation by adding parallelization flag
Disable bootsnap parallel precompilation to workaround QEMU bug
Sep 9, 2025
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation / Background
Ref: rails/bootsnap#495
Fixes #54039. Cross-arch Docker Buildx (QEMU) builds occasionally hang during parallel Bootsnap precompile. Single-threading avoids the deadlock.
Detail
rails/bootsnap#495 (comment)
rails/bootsnap#501
Additional information
Lightweight safeguard; no Docker integration test (would be slow/flaky). Can be reverted if upstream issue is fully resolved.
Checklist