Commit 9739471
* fix(lab): project a terminal reverse result after the worker exits
A detached Cook's reverse worker exits the moment it publishes its
terminal result to the broker, so its controller-session heartbeat
necessarily ages out past REVERSE_RUNNER_HEARTBEAT_TTL. daemon_api_request
gated every reverse read on that liveness, so runner_job_log_snapshot
returned "runner is not connected to a daemon", agent-task reconciliation
annotated the run runner_disconnected, and the durable parent could never
reach a terminal state -- the exact assertion
detached_cook_accepts_reverse_capacity_queue_and_worker_completes_once
makes.
The broker is a controller-reachable durable rendezvous, not the runner
machine. Serve reverse broker reads from a recorded session that names its
broker endpoint. Mutations still assert an intent a live worker has to
honor, and every direct-daemon transport reads the runner machine itself,
so both keep the liveness gate.
The acceptance fixture hid this by pinning last_seen_at five minutes in
the future, which reverse_controller_session_is_live accepts because a
negative age fails Duration::try_from and falls open. That gave the test a
fixed ~390s liveness window while the test itself runs 430-590s, so the
outcome flipped on where that wall-clock cliff landed. Beat the session
honestly while the fixture worker is connected, then record the expired
session a departed worker actually leaves behind before asserting terminal
projection.
Refs #10659
* test(lab): keep reverse status reads on the fixture SSH shim
An expired reverse session makes `runner status` fall through to its SSH
recovery probe. The acceptance fixture already ships an `ssh` shim for
exactly that reason, but the `agent-task status` reads inherited the
ambient PATH, so a real `ssh` to reverse-fixture.invalid could escape the
hermetic context and stall the read.
Refs #10659
---------
Co-authored-by: chubes-bot <266378653+homeboy-ci[bot]@users.noreply.github.com>
1 parent c71ae5a commit 9739471
2 files changed
Lines changed: 195 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
133 | 154 | | |
134 | 155 | | |
135 | 156 | | |
136 | | - | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
137 | 163 | | |
138 | 164 | | |
139 | 165 | | |
| |||
143 | 169 | | |
144 | 170 | | |
145 | 171 | | |
146 | | - | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
147 | 180 | | |
148 | 181 | | |
149 | 182 | | |
| |||
289 | 322 | | |
290 | 323 | | |
291 | 324 | | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
292 | 386 | | |
293 | 387 | | |
294 | 388 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
| 3 | + | |
| 4 | + | |
2 | 5 | | |
3 | 6 | | |
4 | 7 | | |
5 | 8 | | |
6 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 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 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
7 | 88 | | |
8 | 89 | | |
9 | 90 | | |
| |||
163 | 244 | | |
164 | 245 | | |
165 | 246 | | |
166 | | - | |
167 | | - | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
168 | 251 | | |
169 | 252 | | |
170 | 253 | | |
| |||
179 | 262 | | |
180 | 263 | | |
181 | 264 | | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
| 265 | + | |
| 266 | + | |
187 | 267 | | |
188 | 268 | | |
189 | 269 | | |
190 | | - | |
| 270 | + | |
191 | 271 | | |
192 | 272 | | |
193 | 273 | | |
| |||
249 | 329 | | |
250 | 330 | | |
251 | 331 | | |
| 332 | + | |
252 | 333 | | |
253 | 334 | | |
254 | 335 | | |
| |||
366 | 447 | | |
367 | 448 | | |
368 | 449 | | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
369 | 456 | | |
370 | 457 | | |
371 | 458 | | |
| |||
374 | 461 | | |
375 | 462 | | |
376 | 463 | | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
377 | 468 | | |
378 | 469 | | |
379 | 470 | | |
| |||
0 commit comments