Skip to content

ci: prebaked Tier 2 Linux job image for the Dell (Refs #5006) - #5012

Merged
zackees merged 2 commits into
masterfrom
ci/tier2-prebaked-image
Nov 18, 2026
Merged

zackees merged 2 commits into
masterfrom
ci/tier2-prebaked-image

Conversation

@zackees

@zackees zackees commented Nov 17, 2026

Copy link
Copy Markdown
Member

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/Dockerfile builds FROM the exact pinned Ubuntu digest. It installs the existing Install Git package list and apt-packages.txt with --no-install-recommends, then cleans apt. The user model, sudo and toolset are unchanged.
  • ci/tier2_image.py is the single hash implementation shared by the publisher and the selector. The tag ghcr.io/obs-rust/tier2-linux:<sha256> covers the Dockerfile, its base digest, apt-packages.txt and the Install Git list, so any change produces a new tag. Published tags are never overwritten.
  • The publisher is a new job in the existing push.yaml; no new workflow file is added. It runs on master pushes only and has packages: write on 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.
  • The selector lives in the existing check-event job. It picks the immutable GHCR digest only when the run's heavy jobs target the Dell (the per-job mq-heavy-labels routing 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.
  • The install steps stay. Against the prebaked image the bootstrap and the flock-protected Tier 2 install report nothing to do; the apt-archive cache restore and save are skipped there. The stock fallback, including the ci: hold the shared Tier 2 apt lock only while downloading #5000 lock logic, is unchanged.

Evidence:

  • RED: a new image suite of 11 tests failed on the missing helper, selector and builder. GREEN: 202 focused tests pass after the rebase onto ci: route only cache-heavy merge-queue jobs to the Dell #4980, and full lint passed once on the final branch.
  • Local image built through 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).
  • A ci: Tier 2 Linux gives tests a different environment in Docker and on the native runner #982-style smoke run compiled the unchanged test_group_empty_bounds.c and test_scene_dup_group_children.c in the image and ran them against real hybrid and reference libraries. 48 cases passed in OFF and ON modes, with zero skips.
  • A real anonymous probe of the not-yet-published package failed and correctly selected stock.

Rollout: the first master push after merge builds and publishes the image. The GHCR package ghcr.io/obs-rust/tier2-linux must 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.

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
zackees enabled auto-merge November 17, 2026 23:18
@zackees
zackees added this pull request to the merge queue Nov 18, 2026
@zackees
zackees removed this pull request from the merge queue due to a manual request Nov 18, 2026
@zackees
zackees added this pull request to the merge queue Nov 18, 2026
Merged via the queue into master with commit e6e6f4c Nov 18, 2026
41 checks passed
@zackees
zackees deleted the ci/tier2-prebaked-image branch November 18, 2026 01:17
@obs-rust-project-manager obs-rust-project-manager Bot moved this to In merge queue in obs-rust Multiview Nov 18, 2026
@obs-rust-project-manager obs-rust-project-manager Bot moved this from In merge queue to Done in obs-rust Multiview Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant