Repository navigation
Commit 8390f8b
Build the QUIC stack one configure at a time
Gradle configures arm64-v8a and x86_64 in parallel, and each configure
runs build-deps.sh against the same source tree. The second run found
the first one's clone half-written, read it as the wrong commit,
removed it and fetched over it, and the first clone then failed. With
a warm Gradle cache both configures start together, so CI's Assemble
and device jobs failed in seconds - intermittently since August.
build-deps.sh now takes a lock for any run that fetches or builds. A
directory is the lock, since mkdir is atomic everywhere and flock does
not ship on macOS; a lock whose holder has exited is taken over.
Reproduced with two concurrent fetches into one empty tree: before,
one of the two fails with "could not fetch ngtcp2"; after, both
succeed and the second waits and reuses the first one's sources. A
stale lock left by an exited process is taken over.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1 parent 4f446f2 commit 8390f8b
1 file changed
Lines changed: 32 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
38 | 68 | | |
39 | 69 | | |
40 | 70 | | |
| |||
178 | 208 | | |
179 | 209 | | |
180 | 210 | | |
181 | | - | |
| 211 | + | |
182 | 212 | | |
183 | 213 | | |
184 | 214 | | |
185 | | - | |
| 215 | + | |
186 | 216 | | |
187 | 217 | | |
0 commit comments