Repository navigation
Description
Context
Over about three hours today, the hosted runtime and runtime_host jobs failed four times in the step "Real Chrome and offline Linux namespace prerequisites". No test ran in any of those failures, and each one sent a candidate confirmation back to the start.
The step builds scripts/native-proof/Dockerfile. Its only package step is a single apt-get update && apt-get install against archive.ubuntu.com, with no retry and no cache:
- Twice the archive served packages so slowly that the step hit its 12-minute timeout (the step normally takes 30 s to 6 min).
- Twice apt gave up with
E: Unable to fetch some archives.
Examples: CI runs 42759024772, 42761585276, 42771427190 and 42778026156.
Because candidate confirmation is serialized, every such failure also holds up every other PR's merge.
Scope
Make the prerequisite image build tolerate a slow or flaky Ubuntu mirror without changing what is installed or weakening the offline test guarantees. Options, in order of preference:
- Retry with bounded timeouts:
-o Acquire::Retries=5 -o Acquire::http::Timeout=30, plus a retry loop aroundapt-get update. - Cache the built prerequisite image keyed on the Dockerfile's hash, for example in the Actions cache or GHCR, so most runs never contact the mirror.
Out of scope
- Changing the pinned base image or the package list.
- Letting tests install anything at runtime.
Acceptance criteria
- A transient fetch failure or a stalled mirror is retried within the step's budget instead of failing the job. Show this with a local build where the mirror is made temporarily unreachable (for example by a proxy that drops the first attempts).
- The resulting image is byte-for-byte the same package set as today, compared with
dpkg -lbefore and after the change. - The workflow gates and the pinned image digest are unchanged.
Verification
A local docker build of scripts/native-proof/Dockerfile with an injected fetch failure, and one green hosted run.
Activity
schlessera commentedon Nov 15, 2026
Claimed for implementation. Claim token:
claim-38e2ada8. Branch:chore/3830-native-prerequisite-retries.Collision check pending; scoped to native prerequisite Dockerfile.
schlessera commentedon Nov 15, 2026
Collision review: draft PR #4002 also touches scripts/native-proof/Dockerfile. This claim is limited to bounded apt retries and preserves its pinned base and package list.
schlessera commentedon Nov 15, 2026
Implementation handoff: PR #4030 is draft at d957bcd. Local preflight, three offline shell tests, a failing-first receipt, an exhausted-retry mutation receipt, and the real fault-injected Docker build all passed. The original build fails with apt exit 100; the change recovers the fifth package fetch within the budget. Complete before/after
dpkg -loutput is byte-identical, SHA-2565a3bbf4b35e11cf5f73b34ec5016fcf4d8b6e82502f27527129f94f5ec619e53.Remaining verification: draft heavy feedback run https://github.com/schlessera/brain-kit/actions/runs/43748923164, then exact-candidate confirmation and merge. This worker's environment does not expose its required PR watch tool, and its orchestration policy prohibits substituting polling loops for PR waits. This is a monitoring-capability handoff, not a failure of the implementation or a claim that lease contention blocks the issue.
Resume: inspect the draft feedback run and current main, refresh this branch if main advanced (rerun preflight on overlapping inputs), record the hosted image-build result in the PR body, and run
bun scripts/integrate.ts confirm 4030 --issues schlessera/brain-kit#3830. Preserve the single preflight receipt, both 0.45.0 milestones, and the recorded collision with #4002. After merge, verify the squash's main run and issue closure. No follow-up issue was filed.schlessera commentedon Nov 15, 2026
Claimed for implementation. Claim token:
claim-71754799. Branch:chore/3830-native-prerequisite-retries.schlessera commentedon Nov 15, 2026
Resumed the implementation claim. The earlier monitoring-capability handoff is withdrawn; hosted verification and landing continue in this run. Both release milestones are verified as 0.45.0. The fresh collision check at d957bcd reports the same textual overlap with #4002 and shared proof-category closures already recorded on the PR. Local proof remains unchanged.
schlessera commentedon Nov 15, 2026
Completed in #4030, squash
2702e2bdd7abe1689f75f0f80a0924c502b884e4, delivered in milestone 0.45.0.The original Dockerfile fails under four injected HTTP 503 package-fetch responses; the change recovers on the fifth fetch within its bounded build deadline. Before/after complete
dpkg -loutput is byte-identical (SHA-2565a3bbf4b35e11cf5f73b34ec5016fcf4d8b6e82502f27527129f94f5ec619e53). The pinned base, package list, workflow gates and offline test guarantees are unchanged. Three offline shell tests pass, with failing-first and restored-mutation receipts recorded in the PR.Candidate confirmation https://github.com/schlessera/brain-kit/actions/runs/43752781582 passed on the exact combined tree. Automatic squash main run https://github.com/schlessera/brain-kit/actions/runs/43755245108 passed all 17 jobs, including both native runtime jobs and their real image builds. Execution checkout logs name the delivered squash, whose parent/tree match the confirmed candidate. The PR and this closed issue both retain milestone 0.45.0.
Separate follow-up #4039 records loss of the normal merged-result JSON after a post-merge coordination push error. The merge and release were independently reconciled; it leaves no remaining work for this issue and has no milestone.