Skip to content

chore(ci): retry native prerequisite mirror fetches - #4030

Merged
schlessera merged 3 commits into
mainfrom
chore/3830-native-prerequisite-retries
Nov 15, 2026
Merged

schlessera merged 3 commits into
mainfrom
chore/3830-native-prerequisite-retries

Conversation

@schlessera

@schlessera schlessera commented Nov 15, 2026 •

Copy link
Copy Markdown
Owner

Closes #3830

What changed

Native prerequisite image builds retry mirror fetches five times with 30-second HTTP/HTTPS timeouts. Failed index refreshes are retried up to three times and partial index refreshes fail explicitly. A 600-second deadline plus a 10-second kill grace keeps retries below the existing 12-minute prerequisite step budget.

Why this shape

Follows the issue's preferred bounded-retry approach. The pinned Ubuntu digest, installed package list, entrypoint, workflow gates and offline test boundaries are unchanged. No cache or registry trust boundary is added.

Proof

Final candidate head 3ad55c13d2523704e24111babee356575f754914 against base ed4eb5a0ccc319e481882d8d8368bd1968d1c262 passed confirmation run 43752781582, attempt 1. All selected execution jobs checked out 90db54da6fdbbd61f07a92088963047365bcc3f5, with those exact parents and tree 5b45cbd84c1239306e118fa02896aa41782cbe50.

Squash 2702e2bdd7abe1689f75f0f80a0924c502b884e4 has that base as its sole parent and that same tree. Its automatic main push run 43755245108, attempt 1, passed every selected job, including both native runtime categories, browser, layout, captures, endurance and all unit shards. Actual execution-job checkout logs name the squash. The native image builds succeeded with apt steps of 15.2 seconds (runtime, job 132938069059) and 13.5 seconds (runtime_host, job 132938068998).

The local receipt retains its actual original head before two non-overlapping main refreshes; it is not relabelled as a local run on the final head.

  • bun run test tests/native-prerequisites.test.ts: three passing offline tests execute the Dockerfile's actual shell. The original Dockerfile fails the retry test (expected exit 0, received 1). Mutating the exhausted retry path to exit 0 fails the persistent-failure assertion (expected nonzero); restoring it returns all three tests to green.
  • A real docker build --network=host --no-cache through a local HTTP proxy injects four HTTP 503 responses per bsdutils package URL. The original Dockerfile fails with apt exit 100 and Unable to fetch some archives. The original build fails after 71 seconds; the changed build returns exit 0 after approximately 260 seconds, recovering on the fifth fetch of the injected package. The resulting dpkg -l output is byte-identical to the clean original build (SHA-256 5a3bbf4b35e11cf5f73b34ec5016fcf4d8b6e82502f27527129f94f5ec619e53).
  • bun run check:pr --base origin/main: passed on the committed head. Complete selected hosted candidate and squash proof passed.
{"version":1,"kind":"brain-check-pr-receipt","head":"d957bcd295bfe9102f3372e71dcbb563edaef8ed","base":"origin/main","mode":"focused","startedAt":"2026-11-15T18:46:49.267Z","finishedAt":"2026-11-15T18:48:13.546Z","checks":[{"name":"all lint and leakage gates","categories":["changeset"],"outcome":"passed","elapsedMs":12512.092595},{"name":"environment documentation","categories":["changeset"],"outcome":"passed","elapsedMs":100.46059100000093},{"name":"pending changeset package names","categories":["changeset"],"outcome":"passed","elapsedMs":68.96167800000148},{"name":"contribution changeset","categories":["changeset"],"outcome":"passed","elapsedMs":15.31626099999994},{"name":"affected fast invariants","categories":["verify","unit"],"outcome":"passed","elapsedMs":71565.867424}]}

Checklist

  • Focused local preflight/behavioral receipts and complete selected hosted proof passed; actual head/base/job checkout evidence is in Proof.
  • Acceptance criteria from the issue are all met, or the gap is named below.
  • The PR and completed/advanced issues have verified release milestones under docs/process/github.md.
  • A changeset is included, or this changes nothing a consumer can see.
  • No personal data anywhere in the diff — the leakage gate covers the whole tree.
  • The integration contract index or relevant component is updated in this same commit, or nothing in the machine surface moved.
  • Docs under docs/ reflect the change, or nothing documented moved.
  • A fail-closed guard added or changed answers the proportionate-containment checklist in this body, or no guard changed.
  • Provider history stays append-only: nothing on a turn's path changed.

The prerequisite guard contains failure to the current image build. The build retries automatically while its state is uncertain, never runs tests on a partial installation, and records apt's failure in the step log. Exhaustion fails the build without affecting another backend or future run; the next build can recover without manual state repair.

Anything left open

Nothing for #3830. Separate follow-up #4039 records a coordination push error after the successful merge that omitted the normal merged-result JSON; the squash and reservation release were independently verified. That follow-up has no milestone.

@schlessera schlessera added this to the 0.45.0 milestone Nov 15, 2026
@schlessera schlessera added type: chore Tooling, CI, release plumbing, dependencies. area: ci CI workflows, the gates they run, release scripts, packaging. labels Nov 15, 2026
@schlessera

Copy link
Copy Markdown
Owner Author

Collision check for head d957bcd: textual overlap with draft #4002 in scripts/native-proof/Dockerfile (that PR adds TLS packages; this PR preserves the current package list). Closure-only reports with #3054, #3056, #3059, #3069, #3116, #3437, #3581, #3622, #3806, #4008, #4018, #4021, #4022, #4024, #4025 and #4028 reflect shared proof categories. No other textual overlap was reported.

@schlessera

Copy link
Copy Markdown
Owner Author

Collision check for refreshed head 5b21e32: closure with #3054; closure with #3056; closure with #3059; closure with #3069; closure with #3116; closure with #3437; closure with #3581; closure with #3622; closure with #3806; textual with #4002 in scripts/native-proof/Dockerfile; closure with #4008; closure with #4018; closure with #4021; closure with #4022; closure with #4024; closure with #4028.

@schlessera

Copy link
Copy Markdown
Owner Author

Collision check for head 3ad55c1: closure with #3054; closure with #3056; closure with #3059; closure with #3069; closure with #3116; closure with #3437; closure with #3581; closure with #3622; closure with #3806; textual with #4002 in scripts/native-proof/Dockerfile; closure with #4008; closure with #4018; closure with #4022; closure with #4024; closure with #4028; closure with #4032. Main advance ed4eb5a (#4021) has no files overlapping this PR; original local receipts are retained with their tested identities.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: ci CI workflows, the gates they run, release scripts, packaging. type: chore Tooling, CI, release plumbing, dependencies.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ci: retry or cache the native prerequisite image so a slow Ubuntu mirror does not fail confirmation

1 participant