-
Notifications
You must be signed in to change notification settings - Fork 704
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
CI GHC 9.4-alpha and edit Cabal/src/Distribution/Simple/GHC.hs to accept GHC 9.4 #8230
Comments
This is blocked on haskell/actions#93 and haskell/actions#107. In the worst case, we are going to release 3.8 without support for GHC 9.4 and, at some point, we may push a point release to support GHC 9.4. If haskell/actions doesn't support GHC 9.4, that's a good enough reason to yell "Unknown/unsupported 'ghc' version detected". |
Haskell-CI supports 9.4: haskell-CI/haskell-ci#588 |
Or we can add it without ci. A local test run should be enough, there isn't much to brwak |
Yes, it's our own decision
My gut feeling is
|
Nice!, if haskell-ci is able to generate a github workflow which uses ghc alpha/pre releases via templates, we can do the same writing a direct workflow at hand and using our validate.sh script. |
I ran a regression testsuite (cabal-testsuite) against preleaseses of cabal and ghc on macos both x86 and M1.
There were a ton of unexpected fails, but eyeball inspection reveals, best I can tell, that this is because the golden output differed precisely because of the unexpected addition of the above warning (namely: "Warning: Unknown/unsupported 'ghc' version detected (Cabal 3.8.0.20220526 supports 'ghc' version < 9.4)"). To reiterate our verbal discussion -- the purpose of releasing cabal 3.8 is to support 9.4, and releasing it with this warning would be very silly, and we should fix it. This is to say that 9.4 is in our support window -- i.e. cabal 3.8 not working with 9.4 would be a bug, while cabal 3.6 not working with 9.4 would simply be "an unfortunate consequence that can be resolved by updating to the latest cabal" |
Oh -- further motivation for changing this -- the warning is not in cabal-install, but Cabal-the-library. So its double-nuts to have the library that literally ships with ghc 9.4 warn about not supporting it! |
I submitted a PR on this. With that PR, the testsuite succeeds with no fails, both M1 and x86 |
Thanks a lot. How many tests have been skipped for you? I've got 13, mostly "SKIP no Cabal for GHC". Could somebody please compile and run the tests on Windows, with the commandline @gbaz gives above (and from the @gbaz's PR; the following worked for me to get the PR on top of master branch: I've just run the tests on Linux, building via
Any ideas what may be causing these? I think users can reasonably expect we at least ran our biggest testsuite once with GHC 9.4 on all major architectures given that we don't blacklist GHCs, but we explicitly whiltelist them and we don't whitelists ten GHCs a week. BTW, we should repeat the test once GHC includes the new 3.8 Cabal library, which would probably coincide with GHC 9.4.1 release. I will let @bgamari know 3.8 branch is ready for renewed inclusion in GHC once #8260 is merged and backported. |
I have 11 skips. T3827 is known dodgy in both directions: #8032 In my run of the testsuite (I used master's testsuite not the branch's) the unexpected fail on Includes2 was instead marked as "OK (known failure)". |
Yes, I used the tests from master branch as well; "on top of master branch". Anyway, thank you for the explanation, I think we are fine. Windows anybody? |
will try to run the test suite asap in Windows, but ideally we should run it in ci. |
Since @jneira is currently busy, could somebody else run our test suites from branch 3.8 on Windows? If that's done, I'd gladly merge and backport this PR and 3.8 release would not have any major blocker any more. |
@Mikolaj I got a bunch of unexpected fails on a fresh Windows box. Not sure if it's my environment to blame or what. Maybe having a comparison point would make sense. E.g. 3.6? Here's the list:
|
The right comparison would be the same cabal version but vs. ghc 9.2 instead of the 9.4 prerelease? |
Oh, I think I used a wrong GHC (8.10), thanks for pointing to it! I'll try 9.4 and if errors persist 9.2. This will take some time (the box is slow). |
I'm currently stuck on https://gitlab.haskell.org/haskell/ghcup-hs/-/issues/386, so ETA for finishing this is unknown. |
I am trying to run the validate WF with ghc-9.4 here: #8264 |
@ulysses4ever just in case, last time I ran it the test suite only worked in a msys2 bash console |
Apparently cabal now yells
"Warning: Unknown/unsupported 'ghc' version detected (Cabal 3.8.0.20220526 supports 'ghc' version < 9.4)"?
when somebody uses GHC 9.4 and that's rather embarrassing and puts a pressure on us to create another point release ASAP when GHC 9.4-final is released. It would be ideal to add GHC 9.4 to CI and to Cabal/src/Distribution/Simple/GHC.hs (I can do the latter rather easiliy) before cabal's 3.8 release.
The text was updated successfully, but these errors were encountered: