fix: serialize iOS builds + stop non-TTY log spam#121
Merged
Conversation
ios-sim and ios-usb both run `expo run:ios` against one shared Expo/Xcode project (.expo/prebuild, ios/, Pods, DerivedData). Running them concurrently (concurrentBuilds: true) races on that state — e.g. an atomic-rename crash on .expo/prebuild/cached-packages.json fails the sim build in <1s. Run the two iOS groups in one sequential lane; android still parallelises alongside. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
In forward-only (non-TTY / piped) mode, setTitle printed a line on every update, so live build progress (one line per gradle task / metro %) flooded the log with hundreds of duplicate device rows. Title-only changes are in-place TTY decoration; skip them in non-TTY — state transitions (start/done/fail) and sub-items still emit. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Two issues seen running
maestro-parallel(full build) on a mixed device set withconcurrentBuilds: true:ios-simandios-usbboth runexpo run:iosagainst the same Expo/Xcode project (.expo/prebuild,ios/, Pods, DerivedData). Running them concurrently races — an atomic-rename on.expo/prebuild/cached-packages.jsonthrowsENOENTand fails the build. Fix: run the two iOS groups in one sequential lane; android still builds in parallel.setTitleemitted a line on every update, so live build progress (a line per gradle task / metro %) spammed. Fix: skip title-only emits in non-TTY; state transitions + sub-items still print.Test plan
Screen: terminal
How to get there:
deno task check && deno lint && deno fmt --check && deno task testWhat to check: green, 64 tests.
Screen: an Expo project with iOS sim + device + Android,
concurrentBuilds: trueHow to get there:
maestro-parallel(full build), select allWhat to check: the iOS sim build no longer crashes with the
.expo/prebuildrename error; the checklist doesn't flood with repeated rows.