Commit 02fb58e
Deflake http adaptor tests: retry route-not-ready 404s
The http_client adaptor test client retried connection failures but a
successful connection returning a 404 was recorded as the result. On a
slow CI runner the request can beat the handler graph's route
registration, so tornado returns its default not-found (HTTP 404, HTML
body) instead of the handler's 202/200 - failing the assertion
(observed on macOS-26 CI: test_http_server_handler_preserves_keyed_
auxiliary_outputs, [(404, b'<html>...')] != [(202, ...)]).
Retry a 404 up to the existing 10s deadline, same as a connection
error. Safe here because these tests never expect a 404. The REST
adaptor tests are deliberately left alone - they DO expect app-produced
404s (JSON bodies), distinguishable from the tornado default only by
body, and were not observed flaking.
Full tornado suite 42/42; full python suite 1258 passed / 19 skipped.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent f776615 commit 02fb58e
1 file changed
Lines changed: 12 additions & 0 deletions
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
334 | 334 | | |
335 | 335 | | |
336 | 336 | | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
337 | 340 | | |
338 | 341 | | |
339 | 342 | | |
| |||
455 | 458 | | |
456 | 459 | | |
457 | 460 | | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
458 | 464 | | |
459 | 465 | | |
460 | 466 | | |
| |||
534 | 540 | | |
535 | 541 | | |
536 | 542 | | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
537 | 546 | | |
538 | 547 | | |
539 | 548 | | |
| |||
620 | 629 | | |
621 | 630 | | |
622 | 631 | | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
623 | 635 | | |
624 | 636 | | |
625 | 637 | | |
| |||
0 commit comments