Skip to content

stack CI: switch to offic. haskell images, bump to lts-22.9 (ghc 9.6.4) #4060

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 5 commits into from
Feb 9, 2024

Conversation

jhrcek
Copy link
Collaborator

@jhrcek jhrcek commented Feb 8, 2024

Motivation:
this week I saw several instances of stack CI jobs failing with errors ala "failed to download stack binaries from fpcomplete servers".

I propose we switch to official haskell images which have latest stack preinstalled so we can avoid this class of failures altogether.

@@ -20,25 +20,12 @@ extra-deps:
- retrie-1.2.2
- hiedb-0.5.0.1
- implicit-hie-0.1.4.0
- hie-bios-0.13.1
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removing these from extra-deps, because all of these are in lts-22.9

@jhrcek jhrcek force-pushed the jhrcek/stack branch 2 times, most recently from 7c9b7cc to 07d4ef5 Compare February 8, 2024 16:33
@@ -76,19 +60,22 @@ defaults: &defaults
version: 2
jobs:
stackage-lts21:
docker:
Copy link
Collaborator Author

@jhrcek jhrcek Feb 8, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Switching to official haskell images.
They already have latest stack installed and setup + specific version of ghc (corresponding to image tag) preinstalled. That means no need to have separate stack upgrade and stack setup steps.
Also ghc is installed in separate location, which means smaller CI caches since we're caching ~/.stack folder (so cache is about 1GB smaller because we don't have to cache GHC installation within ~/.stack)

@jhrcek jhrcek marked this pull request as ready for review February 8, 2024 18:12
@jhrcek jhrcek changed the title Bump to ghc 9.6.4 based lts-22.9 stack: switch to offic. haskell images in ci, bump to lts-22.9 (ghc 9.6.4) Feb 8, 2024
@jhrcek jhrcek changed the title stack: switch to offic. haskell images in ci, bump to lts-22.9 (ghc 9.6.4) stack CI: switch to offic. haskell images, bump to lts-22.9 (ghc 9.6.4) Feb 9, 2024
@michaelpj michaelpj merged commit b115dc3 into haskell:master Feb 9, 2024
@jhrcek jhrcek deleted the jhrcek/stack branch February 12, 2024 09:09
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