Skip to content

Commit 842a307

Browse files
killaguclaude
andcommitted
ci: retry \ut install\ up to 3 times for transient SIGPIPE (141)
\`ut install --from pnpm\` intermittently exits with 141 (SIGPIPE) right after printing the workspace summary — observed on typecheck and on cnpmcore E2E in the same workflow run while other ubuntu jobs (\`Test bin\`, \`Test scripts\`, \`Test\`) using the identical command succeed. Wrap every install invocation in a 3-attempt retry with a 5s / 10s backoff so the workflow absorbs the flake while the upstream utoo bug is investigated. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 5f8b4c3 commit 842a307

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

.github/workflows/ci.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ jobs:
3737
node-version: '24'
3838

3939
- name: Install dependencies
40-
run: ut install --from pnpm
40+
# Retry to absorb transient `exit 141` (SIGPIPE) from `ut install`.
41+
run: ut install --from pnpm || (sleep 5 && ut install --from pnpm) || (sleep 10 && ut install --from pnpm)
4142

4243
- name: Run lint
4344
run: ut run lint
@@ -160,7 +161,7 @@ jobs:
160161
node-version: ${{ matrix.node }}
161162

162163
- name: Install dependencies
163-
run: ut install --from pnpm
164+
run: ut install --from pnpm || (sleep 5 && ut install --from pnpm) || (sleep 10 && ut install --from pnpm)
164165

165166
- name: Run tests
166167
run: ut run ci
@@ -204,7 +205,7 @@ jobs:
204205
node-version: ${{ matrix.node }}
205206

206207
- name: Install dependencies
207-
run: ut install --from pnpm
208+
run: ut install --from pnpm || (sleep 5 && ut install --from pnpm) || (sleep 10 && ut install --from pnpm)
208209

209210
- name: Run tests
210211
run: |
@@ -245,7 +246,7 @@ jobs:
245246
node-version: ${{ matrix.node }}
246247

247248
- name: Install dependencies
248-
run: ut install --from pnpm
249+
run: ut install --from pnpm || (sleep 5 && ut install --from pnpm) || (sleep 10 && ut install --from pnpm)
249250

250251
- name: Run tests
251252
run: |

.github/workflows/e2e-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ jobs:
150150
node-version: ${{ matrix.project.node-version }}
151151

152152
- name: Install dependencies
153-
run: ut install --from pnpm
153+
run: ut install --from pnpm || (sleep 5 && ut install --from pnpm) || (sleep 10 && ut install --from pnpm)
154154

155155
- name: Build all packages
156156
run: ut run build

0 commit comments

Comments
 (0)