Skip to content

ci: bound ctest flake retry and anchor GNU oracle sources - #1679

Merged
caomengxuan666 merged 2 commits into
mainfrom
ci/bound-retry-oracle-sources
Nov 14, 2026
Merged

caomengxuan666 merged 2 commits into
mainfrom
ci/bound-retry-oracle-sources

Conversation

@caomengxuan666

Copy link
Copy Markdown
Member

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.

caomengxuan666 and others added 2 commits November 14, 2026 16:11
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.
@caomengxuan666
caomengxuan666 marked this pull request as ready for review November 14, 2026 11:38
@caomengxuan666
caomengxuan666 merged commit 32a0f6d into main Nov 14, 2026
1 of 10 checks passed
@caomengxuan666
caomengxuan666 deleted the ci/bound-retry-oracle-sources branch November 14, 2026 11:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant