Repository navigation
ci: bound ctest flake retry and anchor GNU oracle sources - #1679
Merged
Merged
Conversation
Two independent CI reliability problems, one commit each half. A. x64/default leg duration. Over the last 30 build-winuxcmd runs the x64/default build leg is median 35.1 min / P95 72.5 min while the other three legs stay at 3.5-3.7 min; rust2-surface-check itself runs in 5-11 s and never failed (it is skipped when x64/default fails). The long pole is Run Unit Tests: under runner contention the Windows FIFO bridge tests hang until ctest's 120 s per-test ceiling, and the #1260 serial flake retry re-runs every failed test at the same 120 s (measured 1441-1801 s for 21-22 failed tests, 0-1 recovered). - ctest-gate.ps1: serial retry uses -SerialRetryTimeoutSeconds (30 s) instead of 120 s; still fail-closed for a genuine hang. - workflow: cancel superseded PR runs, add timeout-minutes backstops, and drop the cargo registry cache that never existed (the rust2 workspace has no external crates) instead of logging a save warning every run. rust2/target caching was evaluated and rejected: small gain, mtime-invalidated, and stale objects would feed the shipped binary. Measurements: DOCS/ci-x64-leg-timeout-analysis.md. B. GNU master differential oracle. 7 of the last 58 completed runs failed solely because `git submodule update` of gnulib aborted with HTTP 500 mid-packfile on git.savannah.gnu.org; compare is then skipped and the PR gets no signal. Replace it with tests/differential/fetch-gnu-master.sh: - gnulib sources: savannah -> GitHub mirror -> cgit snapshot -> vendored archive at rust2/gate/vendor/ (sha256 + tree fingerprint anchored in gnulib.anchor.json); - coreutils: GitHub mirror -> savannah, as before; - bounded retry written into the script (2 attempts, 5/20 s backoff, 180 s per attempt, 600 s network budget, no retry on revision mismatch), and every source is verified against the anchor before use, so a stale mirror can never produce a record for a different tree (gate01 stale-overwrite class); - provenance (source + revisions) is uploaded with the results. Adjudication rules and anti-stale rules: DOCS/gate-oracle-policy.md. No user-visible command text changed; no i18n catalog impact.
…-sources # Conflicts: # .gitattributes
caomengxuan666
marked this pull request as ready for review
November 14, 2026 11:38
This was referenced Nov 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
x64/default: ctest FIFO timeout x 120s retry amplified 9min to 24-30min; retry cap 30s + concurrency cancel + job timeouts. Oracle: savannah -> GitHub mirror -> cgit -> vendored (sha256 pinned) with bounded retries. YAML validated, no stale-overwrite path.