Commit 88445a8
committed
test(live): auto-retry two flaky production UI tests
test_failed_job_error_visible_in_ui and test_my_models_page_renders
both failed on b45e10b's CI run due to transient production blips
(empty page bodies on an authenticated page), unrelated to that
commit's RAST retry-window change. Wire the existing but unused
flaky_external marker to pytest-rerunfailures (one retry, 5s delay)
via the pytest_collection_modifyitems hook in tests/live/conftest.py,
and apply the marker to just those two tests.
Also fix test_error_translation.py test_504_all_attempts_fails_with_original_exception,
broken by b45e10b's _MAX_RETRIES bump (3 -> 5): it hardcoded a
2-element _BACKOFF_SECONDS tuple, which is now too short and causes
an IndexError on the later retry attempts instead of the exception
under test. Size the tuple from the real _MAX_RETRIES instead.1 parent b45e10b commit 88445a8
4 files changed
Lines changed: 14 additions & 1 deletion
File tree
- tests
- live
- ui
- unit
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
328 | 328 | | |
329 | 329 | | |
330 | 330 | | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| 69 | + | |
69 | 70 | | |
70 | 71 | | |
71 | 72 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
187 | | - | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
188 | 194 | | |
189 | 195 | | |
190 | 196 | | |
| |||
0 commit comments