Repository navigation
ci: Tier 2 Linux jobs reuse their apt downloads - #1058
Merged
Merged
Conversation
Fails: each of the 7 Tier 2 Linux jobs downloads the same 339 MB of .debs and caches nothing.
Each of the 7 Tier 2 Linux jobs downloaded the same 339 MB of .debs (~20 s) into the stock ubuntu:26.04 container. The jobs now remove the image's docker-clean apt config, which deletes downloads after install, and cache /var/cache/apt/archives keyed on apt-packages.txt and the image.
zackees
enabled auto-merge
October 16, 2026 09:34
Member
Author
This was referenced Oct 16, 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.
Fixes #1055. Part of #930.
Each of the 7 Tier 2 Linux jobs (build + 6 shards) installs 566 packages into the stock
ubuntu:26.04container: 339 MB downloaded in ~20 s + ~4 s index, then ~28 s unpack/configure (master run 38878876640).Keep apt Downloads: removes the image's/etc/apt/apt.conf.d/docker-clean, which deletes .debs after every install.actions/cacheon/var/cache/apt/archives, keytier2-apt-ubuntu2604-f144425f-<hash of apt-packages.txt>, between checkout and the install, in both the build and shard jobs.RED 444878b:
ci/test_tier2_apt_cache.py. GREEN b90208c: 2/2,ci/suite green.Local check (the pinned stock image): by default 0 .debs remain after an install; with
docker-cleanremoved they stay; a second container with the archive dir pre-filled reportsNeed to get 0 B/672 kB.Expected: ~20 s off each Tier 2 Linux job (~2.5 runner-minutes per master run). The unpack/configure part (~28 s) remains; removing that needs a prebuilt image.