-
-
Notifications
You must be signed in to change notification settings - Fork 367
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
Use ghc+integer-gmp for alpine linux build release #2615
Conversation
jneira
commented
Jan 20, 2022
•
edited by gitpod-io
bot
Loading
edited by gitpod-io
bot
- After diagnose the relese build was failing for alpine+ghc with integer-simple due to a new package requiring integer-gmp (https://hackage.haskell.org/package/mod)
- Pinged @maerwald and kindly added in ghcup the missinf ghc versions for alpine with integer-gmp (Use integer-gmp bindists for alpine x86_64, fixes #14 ghcup-metadata#15)
- So we can remove the existing workaround here and let haskell/action download the new bindists
|
The build has progressed but it has failed for linux and ghc-9.2.1 with
🤔 |
Sounds like this part is failing: https://github.com/acfoltzer/gitrev/blob/450a7abf444260e95791649489705e54650c0232/src/Development/GitRev.hs#L65 The environment is borked (doesn't contain the |
it does (https://github.com/jneira/haskell-language-server/runs/4889676070?check_suite_focus=true)
the build is successful for all ghcs < 9.2.1, using the same docker image for all, and the build for ghc-9.2.1 is successful in Ubuntu so i would say it is a weird interaction between both |
well the workflow between the Ubuntu build and the alpine one 8s not exactly the same but I don't see any change which could cause the bug also we could trace the value of the PATH env bar in our code but getExecutable is pretty standard |
well the ghc version for alpine is not exactly the same than the Ubuntu one anyone has an alpine machine to test the build, try to reproduce and trace the cause easier? |
As first sanity check i am gonna invalidate the cache created in ubuntu |
A fresh cache did not fix it: https://github.com/jneira/haskell-language-server/runs/4893126248?check_suite_focus=true |
As expected changing alpine for ubuntu in the ghc-9.2.1 build has been succesful so the workflow is not the culprit: https://github.com/jneira/haskell-language-server/runs/4893355328?check_suite_focus=true At this point i think we could consider use ubuntu for ghc-9.2.1 (it is experimental anyways) until we fix the bug for alpine + ghc-9.2.1. That way we will unblock the incoming release. |
@Bodigrim made a release of |
Personally, the commit count suffix on the version string doesn't seem that useful to me, we could consider just binning that. |
Probably won't, because I already updated ghcup alpine bindists to integer-gmp. |
I support dropping the dependency if it helps. |
All haskell-language-server/src/Ide/Arguments.hs Lines 141 to 150 in b937baa
and i would like to keep the commit when doing The alternative |
Meanwhile i've reproduced the ghc+alpine bug in a fresh alpine-3.12 vm installing ghc with ghcup: wonderful
|
It worths to note that ghc-9.2.1 in alpine seems to be fragile:
|
Trying githash in alpine+9.2.1 here: https://github.com/jneira/haskell-language-server/runs/4896130017?check_suite_focus=true |
As it breaks `cabal install`
Ok, githash worked, yay! thanks @hasufell for the suggestion |
Fixes issues with getEnv compilation: haskell/haskell-language-server#2615 (comment)
@jneira I've updated the ghc 9.2.1 alpine bindist in ghcup. |
@hasufell many thanks! i've reran the build workflow and it should use the new ghc bindist: https://github.com/haskell/haskell-language-server/actions/runs/1728847536 EDIT: it did:
|
i've double checked in my vm and it works as intended 👍 |
Well i think we can keep githash cause as commented by @hasufell it is being actively maintained so the pr could be merged if you agree |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The githash change looks fine to me, but I haven't reviewed the CI changes. Maybe @Anton-Latukha can take a look.
Well, as I came around to look at it... To review it, I needed/need to fully learn & understand the Overall, glad to see Seems good. Would submit PRs if would find something. |
path: ${{ steps.compress_server_binary.outputs.path }} | ||
|
||
- name: (GHC 8.10) Build the wrapper | ||
- name: Build the wrapper | ||
if: matrix.ghc == '8.10.7' | ||
run: cabal build exe:hls-wrapper -O2 $LINUX_CABAL_ARGS |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does this need to be $CABAL_ARGS
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
omg 😧
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that should have failed, as @hasufell suggested, setting the appropriate bash flag