-
Notifications
You must be signed in to change notification settings - Fork 804
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
hashable-1.3.1.0 breaks the ordering in testsuites #5878
Comments
@juhp do you have a list of packages (or have you opened issues in their bug trackers). I guess that without pinging maintainers this won't get resolved by itself any time soon. |
Unfortunately not yet: the Stackage buildlog is quite long: >180k lines... |
I uploaded the affected Stackage Nightly log here: https://petersen.fedorapeople.org/nightly-build.log-2021-02-20.gz (~1.1MB) if one wants to inspect it. I'd like to do some text processing on it but not sure if I can find time to do that soon... |
Here's the full list of test failures, sorry for the delay on this! There may be false positives in here (if so, I apologize for the noise!), all i checked is that a test suite failed. If your package (transitively) uses hashable and the test suite assumes an ordering based on this then please either update your test suite to be ordering-agnostic or bump the hashable lower bound for the test suite. This hashable change may cause actual bugs in your library if it also depends on a specific ordering. At some point we will need bite the bullet and upgrade hashable in stackage and disable any test suites that have not been updated. This data is from 2021-02-20, so if you have already updated you don't need to do anything else, we'll notice when we upgrade hashable! See https://petersen.fedorapeople.org/nightly-build.log-2021-02-20.gz if you want to review the actual test failure for your package. To reproduce, make sure you are building against
|
Throttled pings (please see comment above): |
You might want to also ping @lehins for tar-conduit! |
|
I am a little confused about I have a daily CI run for this too: https://github.com/mbg/wai-rate-limit/actions/workflows/stackage-nightly.yml which hasn't failed. |
Similar to (There is one transient failure. These are almost unavoidable in Opaleye tests.) |
For |
In the logs, I see a number of lines like
I'm guessing those might be the packages that are marked to be skipped? If so, they should probably be removed here. (The build log does some weird overwriting, the following seems to work to extract the list of packages with that message: |
Hmm, perhaps this list includes a bunch of packages with expected-test-failures. I thought I filtered these out but I may have done that incorrectly! No need to do anything if you don't think you need to :-) |
The test suites of |
The test-suite of the newest |
I fixed the failing doctest in |
* make tests compatible with hashable 1.3.1.0 see: commercialhaskell/stackage#5878 * update release info
I've just released aeson-combinators 0.0.5.0 - tests should work with both versions there. I did not update doctest but that one is behind cabal flag which is off by default so I think it should not cause problems. Anyway feel free to ping me if it does. |
new one: hashable-1.3.0.0 (changelog) (Grandfathered dependencies, Stackage upper bounds) is out of bounds for:
|
My package skews should be added to expected-failures since iijlab/direct-hs#101. |
I had a look at the log and I don't see any failure in the rethinkdb-client-driver package, only warnings during compilation. Running the tests requires a RethinkDB database and I doubt it stackage has such a setup (please correct me if I'm wrong). Indeed, the rethinkdb-client-driver package is in expected-test-failures. |
@mihaimaruseac I addressed the problem exactly in the way that had been suggested: by bumping the lower bound of |
@chshersh and others, did you made sure that your tests are resilient against further changes in I'm (not seriously) considering having different parameters on different platforms, so this would be more in your face. (It kind of is, if you test on 32bit systems too). |
I just released |
@phadej Yes, we made sure. Specifically, in |
For what it's worth, postgrest tests did break, and are fixed in PostgREST/postgrest#1770, so thanks for the heads up! This shouldn't affect stackage though, since the tests are skipped due to the PostgreSQL dependency. |
@chshersh great! (I was confused why you then bumped the lowerbound?) |
Unfortunately cannot yet remove the upper bound and test if things got fixed since hashable-1.3.1.0 (changelog) (Grandfathered dependencies) is out of bounds for:
|
yes. I want to support ghcjs in (all versions of) my lib. Luckily if your code is stupid all you need is stone and sticks turboMaCk/aeson-combinators@a0bf729 |
Both |
I just released and the library wasn't really broken before, I just had to tighten some semantics that weren't very well defined previously. Also, thanks for letting everyone know, this would have definitely taken me quite more time without this issue 👏 |
See commercialhaskell/stackage#5878 The problem is that the JWE header is generated internally and since it is included in the signature, the tests which attempt to reproduce the JWE values from the spec exactly fail. Since the header is a simple structure, instead of using Aeson to encode the encode it we just create a ByteString directly with the original order (and encode the Alg and Enc values into it).
I released |
|
Hi :D I tried reproduce But I cannot reproduce at here - hashable-1.3.1.0... In above branch, I added
Please tell me my wrong x( Thanks! |
@aiya000 I don't think this was related to hashable for character-cases, but the tests fail for me locally:
|
When can we expect the new version of hashable to be included in nightlies? |
I just ran the IHaskell test suite with |
I have finally got around to fixing the tests in |
When can we expect the new version of hashable to be included in nightlies? |
When we switch nightlies to GHC 9, hopefully next week |
Hi! Thank you! |
Closing this due to the GHC 9 upgrade. Packages mentioned here may have been disabled, please see #6072 for more information. |
* make tests compatible with hashable 1.3.1.0 see: commercialhaskell/stackage#5878 * update release info
hashable-1.3.1.0 break the testsuites of various packages that use aeson (in Stackage Nightly).
For now to try to manage I will temporarily put an upper bound on hashable to workaround this.
Please see haskell/aeson#837 for more details and related discussion.
The text was updated successfully, but these errors were encountered: