Repository navigation
ci_retry.sh: capture-safe mode, stdout clean and stderr separate (Part of #8424) - #8854
Conversation
…err separate) (Part of #8424) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
No description provided. |
|
PR #8854 @ 1149a45: 1 failed check(s) == full-suite-matrix (windows-latest, 3.11, 2, 3, true, 28, 25) (failure) -- real |
|
No description provided. |
|
No description provided. |
|
No description provided. |
|
PR #8854 @ 6a9fb7a: 3 failed check(s) == full-suite-matrix (windows-latest, 3.11, 2, 3, true, 28, 25) (failure) -- real == full-suite-matrix (windows-latest, 3.11, 3, 3, true, 28, 25) (failure) -- real == full-suite-matrix (windows-latest, 3.12, 1, 2, true, 33, 30) (failure) -- real |
Windows has no system tz database; tests/tools/progress_report.py uses
ZoneInfo("America/New_York"), so test_generated_docs, test_progress_slide and
test_progress_report failed on every windows-latest matrix leg.
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
CI shepherd: the head of this PR (6b090e1) is not the one a maintainer labelled |
|
No description provided. |
1 similar comment
|
No description provided. |
Part of #8424. Adds a capture-safe mode to
tests/tools/ci_retry.shso the later slice can wrap thex=$(gh api ...)steps.What changed
CI_RETRY_CAPTURE=1: stdout is only the successful attempt's stdout (buffered per attempt, so a failed try never leaks). The command's stderr, the retry lines, theci_retry: cause:line and theINFRASTRUCTUREmarker all go to stderr. A final failure leaves stdout empty. The default mode is unchanged (existing tests pass untouched).tests/tools/test_ci_retry.py(clean stdout, no leak across retries, final failure all on stderr, cause fallback and missing command, cache hit, default mode still merges streams).docs/ci.md.Class / Sibling gaps
Class: the retry wrapper merges the command's stderr into stdout, so no step that captures output can use it (the gh-api steps in
.github/workflows/). Handled here: every stream the wrapper writes (command output, retry lines, cause line, INFRASTRUCTURE marker, cache-hit line) now has a defined stream in capture mode, each with a test. Sibling gap: none in the wrapper itself; wrapping the 27 gh-api steps is the remaining slice.Remaining slices
CI_RETRY_CAPTURE=1 tests/tools/ci_retry.sh 4 10 --(workflows, shrink the unwrapped list inci_network_inventory.py, regeneratedocs/ci_network_inventory.md); split across PRs by workflow to stay under 5 files. Needs no burned-estate program.Facts checked:
pytest tests/tools/test_ci_retry.py test_ci_network_inventory.py test_ci_digest.py163 passed. No workflow edited.🤖 Generated with Claude Code