Skip to content

CI: Use ubuntu-24 to run specs - #3582

Merged
tvdeyen merged 8 commits into
mainfrom
ci-ubuntu-24
Jan 22, 2026
Merged

CI: Use ubuntu-24 to run specs#3582
tvdeyen merged 8 commits into
mainfrom
ci-ubuntu-24

Conversation

@tvdeyen

@tvdeyen tvdeyen commented Jan 22, 2026

Copy link
Copy Markdown
Member

What is this pull request for?

Updates the runner image from Ubuntu 22 to Ubuntu 24 and install imagemagick for Dragonfly based tests, because the default runner image does not contain imagemagick anymore.

Also fixes apt package caching.

Checklist

@tvdeyen
tvdeyen requested a review from a team as a code owner January 22, 2026 13:54
@tvdeyen tvdeyen added the skip-changelog Skip this PR in release notes label Jan 22, 2026
Ubuntu 24.04 is the latest LTS and new default runner image
on github actions. We need to add ImageMagick for dragonfly
storage adapter tests since the Ubuntu 24.04 image no longer
includes it by default.
This tests must not run, if we test the ActiveStorage adapter.
Since Ubuntu 24.04 imagemagick needs to be installed manually
and we only do that for dragonfly storage adapter tests.
Cache /var/cache/apt/archives directly so apt-get automatically
uses cached .deb files. The previous custom cache directory approach
was not working because apt doesn't look there by default.

Also simplified apt install commands and bumped cache key version
to invalidate old caches.
@tvdeyen tvdeyen mentioned this pull request Jan 22, 2026
3 tasks
@codecov

codecov Bot commented Jan 22, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.42%. Comparing base (2abbe69) to head (674f621).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3582   +/-   ##
=======================================
  Coverage   97.42%   97.42%           
=======================================
  Files         314      314           
  Lines        8170     8170           
=======================================
  Hits         7960     7960           
  Misses        210      210           

☔ View full report in Codecov by Sentry.
📢 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@codecov

codecov Bot commented Jan 22, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.42%. Comparing base (2abbe69) to head (ed8086a).
⚠️ Report is 9 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3582   +/-   ##
=======================================
  Coverage   97.42%   97.42%           
=======================================
  Files         314      314           
  Lines        8170     8170           
=======================================
  Hits         7960     7960           
  Misses        210      210           

☔ View full report in Codecov by Sentry.
📢 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

We only need to build js packages if package.json changed.
Since github skips following jobs, if this job was skipped,
we need to run the jobs also if the build job was skipped.

Signed-off-by: Thomas von Deyen <vondeyen@blish.cloud>
Use always() to ensure the if condition is evaluated when the
build_javascript job is skipped due to no package.json changes.
Version 6 improves credential security by storing credentials in a separate file under $RUNNER_TEMP instead of directly in .git/config.
Ensures consistent runner environment across all CI jobs.
@tvdeyen
tvdeyen merged commit 6620bf4 into main Jan 22, 2026
19 checks passed
@tvdeyen
tvdeyen deleted the ci-ubuntu-24 branch January 22, 2026 14:59
@tvdeyen tvdeyen added the backport-to-8.0-stable Needs to be backported to 8.0-stable label Sep 9, 2026
@alchemycms-bot

alchemycms-bot Bot commented Sep 9, 2026

Copy link
Copy Markdown

💔 All backports failed

Status Branch Result
8.0-stable Backport failed because of merge conflicts

Manual backport

To create the backport manually run:

backport --pr 3582

Questions ?

Please refer to the Backport tool documentation and see the Github Action logs for details

@alchemycms-ci-bot

Copy link
Copy Markdown
Collaborator

💚 All backports created successfully

Status Branch Result
8.0-stable

Questions ?

Please refer to the Backport tool documentation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-to-8.0-stable Needs to be backported to 8.0-stable skip-changelog Skip this PR in release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants