Repository navigation
Closed
Labels
scope:infraCI, tooling, churn/factory, docs infrastructure
Description
Sibling of #5048 (same class: CI network fetches that fail as if they were code). #5048's retry is in (equivalence_db2.pull_image: 4 attempts, 15/30/60 s backoff), but icr.io outages outlast it.
Evidence (2026-10-15/16, from flake_history + job logs)
- 6
detfailures on 2026-10-16, every one the same root: adb2 N/4shard's "Wait for the background Db2 start" step fails withDb2ImagePullError: INFRASTRUCTURE (not a code defect): could not pull the pinned Db2 image icr.io/db2_community/db2@sha256:2de8151713c2… after 4 attempts.det's "Apply the ratchet to the merged sweep" then fails only because that shard never reported. Runs: 38728687863, 38777039369, 38808459515, 38808673010, 38823577266, 38830516356. - 14 days of reruns:
db2 1/4..4/4passed on rerun 31 times and failed again once, the clearest flake in the repo.det13/7 is mostly this knock-on. - Each of the 4 shards pulls the multi-GB image from icr.io on its own, so every run has 4 chances to hit an outage.
- Churn ticks re-diagnose it per PR (equivalence: drop unreal NUM-field letter scenarios (Part of #5116) #5209, ENQ LENGTH / MAXLIFETIME conditions on both runtimes; proof_blockers ASSIGN scan skips literals (Part of #5089) #5211, equivalence: drop letters/underscores-into-NUM-field scenarios (Part of #5116) #5219 in the last day).
Ask
Stop pulling icr.io in every shard. Keep the digest pin: only the same bytes may come back.
- Preferred:
actions/cachekeyed on the pinned digest (e.g.db2-image-<sha256>). On a hit, load it (docker loadof adocker save, compressed). On a miss, pull with the existing retry, then save the cache from main pushes/schedules only (a PR reads main's cache and never writes its own multi-GB copy). Check the image's compressed size against the 10 GB repo cache limit and the other caches it would evict. - If the cache is not workable, pull once per run in one job and hand it to the 4 shards. Compare its cost and wall time against the cache.
- Do NOT mirror the image to GHCR or anywhere public: the Db2 Community image's license may not allow redistribution. That is an owner decision.
- Same class, if the same mechanism fits: Muninn's Docker Hub pulls (5 passes on rerun, 0 failed again in 14 days).
Acceptance
- A run with a warm cache makes no icr.io request (shown in the step log).
- A cold or missed cache still works (pull plus retry), and the digest is verified after a load.
- Measured before/after: the
db2shards' "Wait for the background Db2 start" time, anddb2/detreruns per day on the squid-bot dashboard (new rerun tiles) or withpython tests/tools/flake_history.py.
Not in scope
The per-test time ratchet trips on full-suite parts: every one was at the old 10 s edge before #5179 (15 s, or 2.5x baseline). Since then the only trip was test_the_sampled_plan_runs_part_3 (57.5 s), which is now slow-marked. Nothing to do there.
Workflow edits approved by the owner (2026-10-16, this request; #5048's 2026-10-14 approval covers this class).
Metadata
Metadata
Assignees
Labels
scope:infraCI, tooling, churn/factory, docs infrastructure
Activity
Db2 image cache: read bytes, not a lossy decode (#3813 gate); suppres…
CI: restore the pinned Db2 image from actions/cache, not icr.io per s…
Det Sweep: a Db2 shard restores the pinned Db2's first start instead …