Skip to content

Move away from -latest runner images #2280

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 19 commits into from
Apr 28, 2025
Merged

Move away from -latest runner images #2280

merged 19 commits into from
Apr 28, 2025

Conversation

avdv
Copy link
Member

@avdv avdv commented Jan 23, 2025

Whenever these runner images are changed to a new base, workflows might start to fail.

Rather, we want to switch to a new image consciously.

  • CI: Use ubuntu-24.04 explicitly
  • CI: Fix error when list of docker images is empty
  • CI: Use windows-2022 explicitly instead of windows-latest
  • Fetch dist and variant for GHC bindists
  • Use deb10 dist on Linux amd64

Using ubuntu-latest might break any time GitHub switches the runner image to a
different base.
@avdv avdv force-pushed the cb/fix-ci-ubuntu-24.04 branch 2 times, most recently from 35cd5e8 to 55f4ceb Compare April 3, 2025 09:36
avdv added 5 commits April 4, 2025 15:35
This package is no longer available on ubuntu-24.04.
Instead of choosing the oldest debian distribution tarball, which does
not work anymore on newer Ubuntu systems as these lack the required
libtinfo5 library, we want to be able to choose arbitrary dist and variant.
@avdv avdv force-pushed the cb/fix-ci-ubuntu-24.04 branch 2 times, most recently from 816d5e5 to f174c53 Compare April 4, 2025 15:50
avdv added 4 commits April 7, 2025 08:13
This change should be backwards compatible, since the attrs are not
mandatory and on Linux we choose the oldest Debian tarball if no dist /
variant has been specified explicitly.
Testing all releases is getting too cumbersome to deal with, and
ensuring the latest release works should be good enough.
@avdv avdv force-pushed the cb/fix-ci-ubuntu-24.04 branch from f174c53 to e49088d Compare April 7, 2025 07:24
avdv added 8 commits April 8, 2025 13:30
On newer Ubuntu systems, older ghc binary distributions do not work
anymore since they are lacking the legacy tinfo5 library package.

Note, there are also Ubuntu specific binary distributions available,
such as `ubuntu18_04`, `ubuntu20_04` and even `ubuntu22_04`, but these
are not available for all GHC versions and the Debian based ones are
working just as well.
Remove the bindist toolchains, since these are not needed.
Some older GHC binary distributions (notably 9.0.2) depend on it. See https://gitlab.haskell.org/ghc/ghc/-/issues/15688
- recent systems need `libtinfo6` instead of `libtinfo5`
- python2 is no longer used and the `python` package is no longer available
@avdv avdv force-pushed the cb/fix-ci-ubuntu-24.04 branch from e49088d to 5a8d572 Compare April 8, 2025 11:37
@avdv avdv requested a review from ylecornec April 8, 2025 13:59
@avdv avdv added the merge-queue merge on green CI label Apr 28, 2025
@mergify mergify bot merged commit a5188b6 into master Apr 28, 2025
62 checks passed
@mergify mergify bot deleted the cb/fix-ci-ubuntu-24.04 branch April 28, 2025 16:12
@mergify mergify bot removed the merge-queue merge on green CI label Apr 28, 2025
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.

2 participants