Skip to content

AO3-6988 Use cache-apt-pkgs-action in automated tests#5178

Merged
brianjaustin merged 1 commit into
otwcode:masterfrom
Bilka2:AO3-6988-cache-apt-pkgs-action
May 7, 2025
Merged

AO3-6988 Use cache-apt-pkgs-action in automated tests#5178
brianjaustin merged 1 commit into
otwcode:masterfrom
Bilka2:AO3-6988-cache-apt-pkgs-action

Conversation

@Bilka2
Copy link
Copy Markdown
Contributor

@Bilka2 Bilka2 commented May 7, 2025

Issue

https://otwarchive.atlassian.net/browse/AO3-6988

Purpose

Change our direct uses of apt-get to cache-apt-pkgs-action so that the result can be cached.

I also tried out caching all the apt packages in the same step, however that means that uncached runs have to install libvips and calibre even if they don't need it, which slows them down a lot. By keeping the caches separated by step nothing gets slowed down if there is a cache miss.

We have to add the action to the Allow specified actions and reusable workflows list (https://github.com/otwcode/otwarchive/settings/actions) to get it to run in this repo.

Testing Instructions

Run without existing caches: https://github.com/Bilka2/otwarchive/actions/runs/14889581675

Run using caches, with massively reduced install times for ebooks/libvips: https://github.com/Bilka2/otwarchive/actions/runs/14889783962

Credit

Bilka

@Bilka2 Bilka2 added the Scope: Tests Only Only changes automated tests or test configuration label May 7, 2025
@brianjaustin brianjaustin merged commit 0dcbea9 into otwcode:master May 7, 2025
9 checks passed
@Bilka2 Bilka2 deleted the AO3-6988-cache-apt-pkgs-action branch May 8, 2025 09:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Reviewed: Ready to Merge Scope: Tests Only Only changes automated tests or test configuration

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants