GitHub actions: ubuntu-latest moving to 26.04 and no Ruby 3.0 support

Hello community,

It appears that ubuntu-latest is going to update to 26.04 sometime between October 19 and November 19. Ubuntu 26.04 seems to have Ruby 3.2+. ([Ubuntu] `ubuntu-latest` label will use Ubuntu 26.04 in November 2026 · Issue #14748 · actions/runner-images · GitHub)

So, our Ruby 3.0 tests are going to start failing.

@aidenfine encountered this when trying to upgrade to 26.04 in Katello to begin running PQC-related unit tests. However, the Ruby 3.0 tests all fail.

For Foreman, PQC aside, we can fix this by pinning the use of Ubuntu 24.04. However, the PQC work is going to require us to move off of 24.04 soon so we can have updated OpenSSL libraries.

Would people be interested in having a split GitHub action setup where the Ruby 3.0 tests run on Ubuntu 24.04? The PQC unit tests would need to gracefully skip if the libraries are not available.

I think this commit should help:

Perhaps it should even be changed to explicitly use ubuntu-24.04 since we know we need to support Ruby 3.0 for now?

This also implies dropping EL9, wouldn’t it?

Since we need to support Ruby 3.0 for a while, I think that’s a good plan. We can default to 24.04 for Foreman and plugins, which would leave 26.04 runners as opt-in for plugins like Katello that want to work with newer libraries.

EL9 is supposed to come with OpenSSL that understands ML-DSA algorithms, so we should be okay there. We should check though that the PQC tests can truly run on our EL9 variants.

@aidenfine I’m going to add that as a requirement to Fixes #39898 - Uncomment ml-dsa-65 pqc cert test by aidenfine · Pull Request #11915 · Katello/katello · GitHub

I created Pin Ubuntu runner to 24.04 for Ruby 3.0 compat by ianballou · Pull Request #106 · theforeman/actions · GitHub