eas workflow:run hangs indefinitely on non-TTY CI environments
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 76/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Quiet
- Tech stack
- node.js, typescript
Research direction
Start in packages/eas-cli/src/commands/workflow/run.ts:224 and read maybeReadStdinAsync in packages/eas-cli/src/commandUtils/workflow/utils.ts:273. Reproduce with eas workflow:run using --non-interactive and an open, non-TTY stdin, then verify the command no longer waits indefinitely and creates the workflow run without requiring /dev/null.
Written by the indexing model from the issue text.
Description
Build/Submit details page URL
No response
Summary
Symptom
When eas workflow:run is invoked on a CI agent without a controlling terminal, the command emits one line of output (Using workflow file from …) and then hangs indefinitely. No workflow run is ever created on the EAS side (verified via the dashboard). The same agent successfully runs eas build with identical flags.
Reproduced on Azure DevOps ubuntu-latest agents with eas-cli 19.x.
Workaround
Redirect stdin from /dev/null:
npx eas workflow:run path/to/workflow.yml --non-interactive --json </dev/null
With this, the command completes in seconds and the workflow run is created normally.
Root cause
packages/eas-cli/src/commands/workflow/run.ts:224 unconditionally calls maybeReadStdinAsync() at the top of the command:
const stdinData = await maybeReadStdinAsync();
The implementation in packages/eas-cli/src/commandUtils/workflow/utils.ts:273 only short-circuits when process.stdin.isTTY is true:
export async function maybeReadStdinAsync(): Promise<string | null> {
if (process.stdin.isTTY) {
return null;
}
return await new Promise((resolve, reject) => {
let data = '';
process.stdin.setEncoding('utf8');
process.stdin.on('readable', () => { /* … */ });
process.stdin.on('end', () => {
resolve(data.trim() || null);
});
process.stdin.on('error', err => reject(err));
});
}
On a CI agent stdin is typically connected to an open pipe from the agent harness — not a TTY, but never emits 'end' either. The await new Promise(...) never resolves, the command hangs forever.
eas build does not have this issue because it does not call maybeReadStdinAsync; inputs come from flags only.
Suggested fixes
Any of:
- Skip stdin reading entirely when
--non-interactiveis set. Easiest fix. - Skip stdin reading when no
--inputJSON is expected, i.e. when all required inputs are provided via-Fflags. - Check
process.stdin.readableEnded/destroyedbefore attaching the listener, and short-circuit if stdin is unreadable. - Apply a short timeout to the stdin read (e.g. 1s) and fall back to
nullif no data arrives.
(Personally I'd combine 1+3 — --non-interactive is a clear signal not to expect stdin, and the readable-state check guards the remaining edge cases.)
Managed or bare?
managed
Environment
System:
OS: macOS 26.4
Shell: 5.9 - /bin/zsh
Binaries:
Node: 25.9.0 - /opt/homebrew/bin/node
Yarn: 1.22.22 - /opt/homebrew/bin/yarn
npm: 11.12.1 - /opt/homebrew/bin/npm
Watchman: 2026.03.30.00 - /opt/homebrew/bin/watchman
Managers:
CocoaPods: 1.16.2 - /opt/homebrew/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 25.4, iOS 26.4, macOS 26.4, tvOS 26.4, visionOS 26.4, watchOS 26.4
IDEs:
Android Studio: 2025.3 AI-253.30387.90.2532.14935130
Xcode: 26.4.1/17E202 - /usr/bin/xcodebuild
npmGlobalPackages:
eas-cli: 19.0.5
Expo Workflow: managed
Error output
No response
Reproducible demo or steps to reproduce from a blank project
See above
- Dominant language
- TypeScript
- Stars
- 1.4k
- Forks
- 238
- Avg merge
- 2d 23h
- Merged PRs (30d)
- 87
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from expo/eas-cli
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
needs review
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
generate_gymfile_from_template emits Apple-deprecated "ad-hoc" export method, rejected by Xcode 26+ Openstale
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 3/5 1-2 days Newbie friendliness 68/100
-
needs review
Difficulty 4/5 3-5 days Newbie friendliness 52/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Eynzof/Hermes-CN-Desktop#610 ·
-
bug clawsweeper:linked-pr-open clawsweeper:needs-live-repro clawsweeper:no-new-fix-pr impact:message-loss issue-rating: 🐚 platinum hermit P2 regression
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
calcite-components needs triage refactor
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Esri/calcite-design-system#15203 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 78/100
fullcalendar/fullcalendar#8106 ·