You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CI cache kept the file that was not in a repo? Or repo kept a file that was not in .cabal (and CI did not include a build from unzipped cabal dist that haskell-ci normally does IIRC)?
@Mikolaj I checked their CI script (generated by Haskell-CI): it seems to only cache the store. That shouldn't bring the problem you're alluding to, I think. John has a good guess, perhaps.
@ulysses4ever: you are right: on master branch they seem to cd to the directory created when unpacking cabal sdist and they do cabal check there and build there [edit; I'm not clear about "build" any more: they seem to remove the project file by that point]. So that should catch the problem. I haven't checked the non-master version though.
Not sure how this happened.
If you look at the diff between 1.20.1 and 1.20.0, no bug was introduced: 1.20.0...1.20.1
Also I successfully built happy from the candidate tarball for 1.20.1.
There might be a non-standard release procedure for happy that I did not follow.
I'll have a look.
@andreasabel I reported this initially on IRC, and in the same environment where 1.20.1 failed 1.20.1.1 candidate builds fine. There's a bunch of -Wincomplete-uni-patterns though.
@andreasabel I reported this initially on IRC, and in the same environment where 1.20.1 failed 1.20.1.1 candidate builds fine. There's a bunch of -Wincomplete-uni-patterns though.
[ 9 of 19] Compiling Grammar ( src/Grammar.lhs, /Users/abel/tmp/happy-1.20.1/dist-newstyle/build/x86_64-osx/ghc-9.2.5/happy-1.20.1/x/happy/build/happy/happy-tmp/Grammar.o )
src/Grammar.lhs:503:33: warning: [-Wincomplete-uni-patterns]
Pattern match(es) are non-exhaustive
In a lambda abstraction:
Patterns of type ‘AgRule’ not matched:
SelfAssign _ _
RightmostAssign _ _
Conditional _
|
503 | > map (\(SubAssign (i,ident) toks) -> (i,(ident,toks))) $ subRules
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The warning -Wincomplete-uni-patterns is new in GHC 9.2 and I think it does not make sense to report it on code that has been written for ancient GHCs and been stable for a long time.
@andreasabel I think it makes sense to turn off the warning for release. I also think it makes sense to turn it on in development and clean up the code when possible—it's always good to have a place to document why those cases shouldn't be able to happen.
Activity
santiweight commentedon Feb 6, 2023
We're getting hit by this right now too. Anyone had any luck fixing?
santiweight commentedon Feb 6, 2023
Since
happyis an executable dependency (not a library), I don't know how to pin a specific version. The following worked for us:Since that index does not include
happy1.20.1. Recent indices hereMikolaj commentedon Feb 6, 2023
Uhoh, I'm getting the build failure in an unrelated CI: https://github.com/Mikolaj/horde-ad/actions/runs/4108216346/jobs/7088650067#step:17:45
Mikolaj commentedon Feb 6, 2023
@Ericson2314, @andreasabel ^^^
santiweight commentedon Feb 6, 2023
It's very likely because the CI script uses
cabal update, and that the version of happy is not pinned. My fix above should work for you @MikolajMikolaj commentedon Feb 6, 2023
@santiweight: thank you! With some luck, a deprecation on Hackage is coming RSN, which should solve it.
treeowl commentedon Feb 6, 2023
The new version seems to have been deprecated now. I don't know how something like that made it to release.
Ericson2314 commentedon Feb 6, 2023
@treeowl I am wondering too because this was a bugfix on a release branch.
Mikolaj commentedon Feb 6, 2023
CI cache kept the file that was not in a repo? Or repo kept a file that was not in .cabal (and CI did not include a build from unzipped
cabal distthat haskell-ci normally does IIRC)?Ericson2314 commentedon Feb 6, 2023
@Mikolaj the non-master version had a....manually computed sdist. Maybe we forgot that step.
ulysses4ever commentedon Feb 7, 2023
@Mikolaj I checked their CI script (generated by Haskell-CI): it seems to only cache the store. That shouldn't bring the problem you're alluding to, I think. John has a good guess, perhaps.
Mikolaj commentedon Feb 7, 2023
@ulysses4ever: you are right: on master branch they seem to
cdto the directory created when unpackingcabal sdistand they docabal checkthere and build there [edit; I'm not clear about "build" any more: they seem to remove the project file by that point]. So that should catch the problem. I haven't checked the non-master version though.andreasabel commentedon Feb 7, 2023
Not sure how this happened.
If you look at the diff between 1.20.1 and 1.20.0, no bug was introduced: 1.20.0...1.20.1
Also I successfully built happy from the candidate tarball for 1.20.1.
There might be a non-standard release procedure for
happythat I did not follow.I'll have a look.
[-]Build failure[/-][+]Build failure in happy-1.20.1[/+]Ericson2314 commentedon Feb 7, 2023
@andreasabel Did you upload the
make sdisttarball or the onecabalproduces?andreasabel commentedon Feb 7, 2023
@Ericson2314 wrote:
Yeah, seems my blunder was that I went with the
cabal sdistone...@ffaf1 wrote:
I cannot reproduce this error. (Maybe this one happens if you try to bootstrap
happy-1.20.1with an old happy not in sync with the GHC version.)This reports an error I can reproduce:
So the problem of
happy-1.20.1seems to be that it cannot bootstrap. It needshappyinstalled already.I have uploaded a new candidate: https://hackage.haskell.org/package/happy-1.20.1.1/candidate
This one seems to bootstrap, according to my testing.
However, I should be prudent and wait for some independent verification this time...
Anyone up to testing the new RC (in hostile environment)?
ulysses4ever commentedon Feb 7, 2023
@andreasabel I reported this initially on IRC, and in the same environment where 1.20.1 failed 1.20.1.1 candidate builds fine. There's a bunch of
-Wincomplete-uni-patternsthough.andreasabel commentedon Feb 7, 2023
@ulysses4ever : Thanks for testing!
Maybe we should switch off the
-Wincomplete-uni-patternswarning, to annoy users less. This release would be a chance to do so.andreasabel commentedon Feb 7, 2023
I did this and updated the candidate.
Ericson2314 commentedon Feb 7, 2023
@andreasabel are those warnings in
happyitself or the generated code?andreasabel commentedon Feb 7, 2023
These are in
happyitself and look like this:The warning
-Wincomplete-uni-patternsis new in GHC 9.2 and I think it does not make sense to report it on code that has been written for ancient GHCs and been stable for a long time.treeowl commentedon Feb 7, 2023
@andreasabel I think it makes sense to turn off the warning for release. I also think it makes sense to turn it on in development and clean up the code when possible—it's always good to have a place to document why those cases shouldn't be able to happen.
andreasabel commentedon Feb 7, 2023
Seems like I have more luck with the release of
happy-1.20.1.1: https://github.com/BNFC/bnfc/actions/runs/3924987003/jobs/7112323965#step:17:46andreasabel commentedon Feb 7, 2023
Next try, folks: https://hackage.haskell.org/package/happy-1.20.1.1
Fingers crossed, I hope I don't awake to a sh*t storm tomorrow again! ;-)