Skip to content

Commit bf50200

Browse files
authored
ci: set TASK_CONCURRENCY=1 for Windows runners (#5185)
## Why A couple races in practice: > - Run 1 (codegen failed): race on ~/go/pkg/mod/cache/download/.../v0.2.2.partial during module download — > "Access is denied" > - Run 2 (test-acc failed): race on AppData\Local\go-build\...\gotestsum.exe during fork/exec — "file is > being used by another process"
1 parent ec76b2e commit bf50200

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

.github/workflows/push.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,9 @@ jobs:
8888
id-token: write
8989
contents: read
9090

91+
env:
92+
TASK_CONCURRENCY: ${{ matrix.os.name == 'windows' && '1' || '' }}
93+
9194
strategy:
9295
fail-fast: false
9396
matrix:
@@ -228,6 +231,9 @@ jobs:
228231
id-token: write
229232
contents: read
230233

234+
env:
235+
TASK_CONCURRENCY: ${{ matrix.os.name == 'windows' && '1' || '' }}
236+
231237
strategy:
232238
fail-fast: false
233239
matrix:
@@ -277,6 +283,9 @@ jobs:
277283
id-token: write
278284
contents: read
279285

286+
env:
287+
TASK_CONCURRENCY: ${{ matrix.os.name == 'windows' && '1' || '' }}
288+
280289
strategy:
281290
fail-fast: false
282291
matrix:

0 commit comments

Comments
 (0)