Commit d70c3e8
committed
fix(init): bound waitForRpc per-request so wait-l1 can't hang forever
waitForRpc looped on a 60s deadline but awaited fetch() with no per-request
timeout. Docker's published port accepts TCP before anvil serves HTTP, so a
single fetch could block indefinitely; the loop never re-checked the deadline
and the 60s timeout never fired. In CI this hung wait-l1 for the full 75min
job timeout (3 of 4 first-wave publish jobs), defeating the init retry loop
(which only recovers from init exiting, not hanging).
Add signal: AbortSignal.timeout(pollIntervalMs) to the fetch so a hung request
aborts and the loop enforces its deadline, throwing the existing 'not ready'
error. Fixes wait-l1/l2/l3 alike. Regression test stubs a never-resolving
fetch and asserts waitForRpc rejects within its timeout.
Defense-in-depth: wrap each CI init attempt in 'timeout 1500' so any future
unforeseen hang is bounded and the retry loop's reset can recover.1 parent 01308c1 commit d70c3e8
3 files changed
Lines changed: 30 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
163 | | - | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
164 | 168 | | |
165 | 169 | | |
166 | 170 | | |
167 | 171 | | |
168 | | - | |
| 172 | + | |
169 | 173 | | |
170 | 174 | | |
171 | 175 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
94 | 98 | | |
95 | 99 | | |
96 | 100 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
172 | 192 | | |
0 commit comments