Skip to content

ci: Tier 2 Linux jobs reuse their apt downloads - #1058

Merged
zackees merged 2 commits into
masterfrom
ci/1055-tier2-apt-cache
Oct 16, 2026
Merged

zackees merged 2 commits into
masterfrom
ci/1055-tier2-apt-cache

Conversation

@zackees

@zackees zackees commented Oct 16, 2026

Copy link
Copy Markdown
Member

Fixes #1055. Part of #930.

Each of the 7 Tier 2 Linux jobs (build + 6 shards) installs 566 packages into the stock ubuntu:26.04 container: 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/cache on /var/cache/apt/archives, key tier2-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-clean removed they stay; a second container with the archive dir pre-filled reports Need 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.

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
zackees enabled auto-merge October 16, 2026 09:34
@zackees

zackees commented Oct 16, 2026

Copy link
Copy Markdown
Member Author

The 4 test_app_config_identity errors reproduce on master 520b5f9 (from #1043); fixed separately in the PR above.

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.

ci: Cache Tier 2 Linux's apt downloads in the job container

1 participant