Repository navigation
ci: prebaked Tier 2 Linux job image for the Dell (Refs #5006) - #5012
Merged
Merged
Conversation
Refs #5006. Build independently on master pushes, resolve public GHCR manifests to immutable digests only for mq-runner-labels, and retain hosted fallback and runtime closure verification.
zackees
enabled auto-merge
November 17, 2026 23:18
This was referenced Nov 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #5006. Approved by the maintainer on 2026-11-17.
The Linux Tier 2 build job starts from the stock pinned ubuntu:26.04 image and installs about 619 packages on every run. On the Dell merge-queue runner that install took 35-47 s per job, and it waited on a shared archive lock (12-25 min waits were observed). This PR prebakes those packages into a job image, so the install becomes a no-op where the image is used.
What changes:
rust/tools/linux-validate/tier2-image/Dockerfilebuilds FROM the exact pinned Ubuntu digest. It installs the existing Install Git package list andapt-packages.txtwith--no-install-recommends, then cleans apt. The user model, sudo and toolset are unchanged.ci/tier2_image.pyis the single hash implementation shared by the publisher and the selector. The tagghcr.io/obs-rust/tier2-linux:<sha256>covers the Dockerfile, its base digest,apt-packages.txtand the Install Git list, so any change produces a new tag. Published tags are never overwritten.push.yaml; no new workflow file is added. It runs on master pushes only and haspackages: writeon that job only. It skips the build when the tag already exists. The helper also rejects pull_request, merge_group, fork and non-master refs.check-eventjob. It picks the immutable GHCR digest only when the run's heavy jobs target the Dell (the per-jobmq-heavy-labelsrouting from ci: route only cache-heavy merge-queue jobs to the Dell #4980) and an anonymous manifest probe succeeds. It accepts both single-image manifests and OCI indexes. Hosted runners never probe. Any missing tag, private package or probe error keeps today's stock image and install path.Evidence:
ci/docker_task.py. Inside it, the bootstrap install reports 0 newly installed (0.047 s) and the whole Tier 2 install pipeline reports 0 newly installed (0.156 s).test_group_empty_bounds.candtest_scene_dup_group_children.cin the image and ran them against real hybrid and reference libraries. 48 cases passed in OFF and ON modes, with zero skips.Rollout: the first master push after merge builds and publishes the image. The GHCR package
ghcr.io/obs-rust/tier2-linuxmust be PUBLIC for the Dell's anonymous pull, so a maintainer may need to switch its visibility once after that first publish. Until the tag exists and is public, everything keeps the stock path. Hosted runners and forks are unaffected.Trade-off: package versions freeze at image build time, where the stock path resolves the archive's current versions. A refresh is a deliberate Dockerfile or list change, which yields a new tag. This is documented in docs/ci-tooling.md and the image README.
Expected saving is roughly 35-47 s per Dell Tier 2 build job, plus the lock waits it no longer joins. That is an estimate; the Dell step timings after rollout will measure it. Not verified here: the first GHCR publish, a full fresh Tier 2 suite in the image, and cold and warm pull times on the Dell.