Commit 7e54b33
committed
fix(agent): address #597 review — honest TIMEOUT remedy + nits (B1, N1-N4)
Scott's re-review (vs clean main) — one blocker + nits, all in the error-legibility
feature this PR ships.
- B1 (blocker): the new TIMEOUT classification pointed operators at
BUILD_VERIFY_TIMEOUT_S — but NOTHING in agent/ reads it on this branch
(verify_build/verify_lint call run_cmd with no timeout=, so they use the 600s
default; the env is only SET in CDK). And the anchoring comment's 'live-caught
on ABCA-667 via mise run build' narrative is contradicted by the code: the
verify path CATCHES TimeoutExpired and returns a plain failure, so the regex
never fires for that path. Took Scott's option (b): reworded the comment to
describe the real trigger (any UNCAUGHT run_cmd TimeoutExpired — clone/setup),
and softened the remedy to a generic 'retry / contact admin' with no dead-knob
promise. (The actual BUILD_VERIFY_TIMEOUT_S wiring lives on the ECS-substrate
track, not this main-bound branch — out of scope here.) Also reconciled the
ecs-agent-cluster.ts comment to say the env is provisioned ahead of its
consuming wiring rather than currently effective.
- N1: added explicit errorClass: ErrorClass.USER with a comment stating the
no-auto-retry intent (re-running an unchanged slow build just times out again;
must NOT be 'fixed' to TRANSIENT).
- N2: hardened the regex to match float seconds (\d+(?:\.\d+)?).
- N3: replaced the false-confidence allowlist test with a real one — a line that
hits a marker (error:) AND a noise term (0 errors), placed outside the tail
window so it's only reachable via the marker scan; deleting _FAILURE_LINE_NOISE
now fails the test.
- N4: added a >40-marker-line test that pins the truncation-cap breadcrumb.
Gates: cdk 2439 tests + synth + eslint; agent 1278 tests + ruff + ty.1 parent 05f07e9 commit 7e54b33
3 files changed
Lines changed: 63 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
268 | 268 | | |
269 | 269 | | |
270 | 270 | | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
271 | 309 | | |
272 | 310 | | |
273 | 311 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
191 | 194 | | |
192 | 195 | | |
193 | 196 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
434 | 434 | | |
435 | 435 | | |
436 | 436 | | |
437 | | - | |
438 | | - | |
439 | | - | |
440 | | - | |
441 | | - | |
442 | | - | |
443 | | - | |
444 | | - | |
445 | | - | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
446 | 450 | | |
447 | 451 | | |
448 | 452 | | |
449 | 453 | | |
450 | | - | |
| 454 | + | |
451 | 455 | | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
452 | 460 | | |
453 | 461 | | |
454 | 462 | | |
| |||
0 commit comments