Repository navigation
chore(ci): retry native prerequisite mirror fetches - #4030
Conversation
|
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. |
…requisite-retries
|
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. |
…requisite-retries
|
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. |
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
3ad55c13d2523704e24111babee356575f754914against baseed4eb5a0ccc319e481882d8d8368bd1968d1c262passed confirmation run 43752781582, attempt 1. All selected execution jobs checked out90db54da6fdbbd61f07a92088963047365bcc3f5, with those exact parents and tree5b45cbd84c1239306e118fa02896aa41782cbe50.Squash
2702e2bdd7abe1689f75f0f80a0924c502b884e4has 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.docker build --network=host --no-cachethrough a local HTTP proxy injects four HTTP 503 responses per bsdutils package URL. The original Dockerfile fails with apt exit 100 andUnable 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 resultingdpkg -loutput is byte-identical to the clean original build (SHA-2565a3bbf4b35e11cf5f73b34ec5016fcf4d8b6e82502f27527129f94f5ec619e53).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
docs/reflect the change, or nothing documented moved.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.