Skip to content

ci: cache apt packages for test and benchmark jobs - #674

Merged
bdraco merged 1 commit into
mainfrom
ci/cache-apt-packages
May 17, 2026
Merged

bdraco merged 1 commit into
mainfrom
ci/cache-apt-packages

Conversation

@bdraco

@bdraco bdraco commented May 17, 2026

Copy link
Copy Markdown
Member

What

Replaces the inline sudo apt-get update && sudo apt-get install -y … step in the test matrix and the benchmark job with awalsh128/cache-apt-pkgs-action, pinned to v1.6.0 by commit SHA.

Why

apt-get update && apt-get install is currently the single biggest time sink in each test matrix cell. On the last green run (#25999269859) it took ~50s on a job whose actual pytest run was ~5s — and that ~50s runs 12× in the test matrix plus once in benchmark. None of it is cached today.

cache-apt-pkgs-action caches the resolved .deb files keyed on the package list + the version: 1 bust knob, restores them on subsequent runs, and skips the apt-get update. The package list is unchanged, so behavior on cold-cache runs is the same as before.

Notes

  • version: 1 lets us invalidate the cache deliberately (e.g. when a new package is added) by bumping the integer.
  • s390x and .venv caching are intentionally out of scope here and will land as separate PRs.

@codecov

codecov Bot commented May 17, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.84%. Comparing base (8e112c1) to head (904f646).
⚠️ Report is 116 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #674      +/-   ##
==========================================
- Coverage   89.90%   89.84%   -0.06%     
==========================================
  Files          29       29              
  Lines        3527     3527              
  Branches      606      606              
==========================================
- Hits         3171     3169       -2     
- Misses        211      212       +1     
- Partials      145      146       +1     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@codspeed

codspeed Bot commented May 17, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 6 untouched benchmarks


Comparing ci/cache-apt-packages (904f646) with main (8e112c1)1

Open in CodSpeed

Footnotes

  1. No successful run was found on main (af774ee) during the generation of this report, so 8e112c1 was used instead as the comparison base. There might be some changes unrelated to this pull request in this report. ↩

@bdraco
bdraco merged commit b64f1b5 into main May 17, 2026
18 of 19 checks passed
@bdraco
bdraco deleted the ci/cache-apt-packages branch May 17, 2026 19:00

This branch had an error being deployed

1 failed deployment
release — 904f6468 Deployed May 17, 2026 by bdraco via release #2420
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant