Skip to content

ci: Tier 2 build job installs packages without dpkg fsync or docs - #2094

Merged
zackees merged 2 commits into
masterfrom
perf/2072-tier2-build-setup
Oct 24, 2026
Merged

zackees merged 2 commits into
masterfrom
perf/2072-tier2-build-setup

Conversation

@zackees

@zackees zackees commented Oct 24, 2026

Copy link
Copy Markdown
Member

Refs #2072 (the build-job setup item).

Measured (median of the 4 merge-queue runs among the last 8 that built Tier 2, 2026-10-24): before the compile the build job spends ~90 s, all serial: Install Git 11 s, checkout 10 s, three cache restores ~20 s, Install Tier 2 Packages 35 s, soldr 16 s. The apt archive cache hits (Cache restored from key: tier2-apt-…), so the 35 s is dpkg itself: 594 packages unpacked and configured in 29 s (07:19:27 to 07:19:56 in run 40072321737).

Change: the build job's container is thrown away, so dpkg gets force-unsafe-io (no fsync per file) and skips /usr/share/{doc,man,info}. Same install of apt-packages.txt in the pinned ubuntu:26.04 image, .debs pre-downloaded, on a local machine: 267 s plain, 200 s with this config (-25%). Expected on CI: about -7 s per build job, merge queue included. Test jobs install through ci-runtime.py and the prepared runtime (#1592) and are unchanged.

  • RED: ci/test_tier2_apt_cache.py requires the build job to set the dpkg config before the install; failed on master.
  • GREEN: passes; ./lint passes.

Tier 2 doesn't run for a workflow-only PR, so the CI number comes from the first queue runs after merge.

Not done, recorded on #2072: overlapping the package install with soldr setup (~16 s more) needs a background process across container steps. That's only verifiable with a full dispatch, so it's left as a follow-up.

@zackees
zackees added this pull request to the merge queue Oct 24, 2026
Merged via the queue into master with commit b8578dd Oct 24, 2026
30 checks passed
@zackees
zackees deleted the perf/2072-tier2-build-setup branch October 26, 2026 15:45
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