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
When trying to build hackage-security-0.6.0.1 in nixpkgs we get this error:
Canonical JSON
prop_roundtrip_canonical: OK (0.37s)
+++ OK, passed 100 tests.
prop_roundtrip_pretty: OK (0.47s)
+++ OK, passed 100 tests.
prop_canonical_pretty: OK (0.80s)
+++ OK, passed 100 tests.
prop_aeson_canonical: FAIL
*** Failed! Falsified (after 5 tests and 1 shrink):
JSObject [("",JSObject [("\SI",JSString "")])]
Use --quickcheck-replay=74285 to reproduce.
1 out of 16 tests failed (2.39s)
We recently updated a lot of dependencies, so it is hard to tell, what exactly broke this. I can just say, that all dependencies match the version bounds in the cabal file. This is with aeson 1.5.4.1.
I can confirm that this seems to be an issue with the way in which the tests are executed. The following patch, while admittedly a bit of a hack, shows how some minor tweaks to the test code can resolve the issue:
Hi! Thank you very much for the report and for the patch. I hope this is fixed now.
I'm planning to release a new version of hackage-security RSN. Could you check the current codebase works for you and nothing extremely urgent is missing? Thank you!
Activity
ezzieyguywuf commentedon Jan 7, 2021
I get the same error trying to build this and run tests on gentoo.
dev-haskell/hackage-security: fix tests and relax aeson upperbound
dev-haskell/hackage-security: fix tests and relax aeson upperbound
dev-haskell/hackage-security: fix tests and relax aeson upperbound
dev-haskell/hackage-security: fix tests and relax aeson upperbound
ezzieyguywuf commentedon Jan 20, 2021
I can confirm that this seems to be an issue with the way in which the tests are executed. The following patch, while admittedly a bit of a hack, shows how some minor tweaks to the test code can resolve the issue:
Try to fix tests, based on the patch by @ezzieyguywuf in haskell#247 …
Fix tests, based on the patch by @ezzieyguywuf in haskell#247 and adv…
Fix tests, based on the patch by @ezzieyguywuf in haskell#247 and adv…
Fix tests, based on the patch by @ezzieyguywuf in #247 and advice from …
Mikolaj commentedon Jan 12, 2022
Hi! Thank you very much for the report and for the patch. I hope this is fixed now.
I'm planning to release a new version of hackage-security RSN. Could you check the current codebase works for you and nothing extremely urgent is missing? Thank you!
Bodigrim commentedon Jan 13, 2022
It would be nice to support
aeson-2.0in tests:Mikolaj commentedon Jan 13, 2022
Sure, I'd merge it. Would you create a PR?
Mikolaj commentedon Jan 13, 2022
@Bodigrim: thank you for the #258 to support aeson-2.0 in tests. Merged.
Mikolaj commentedon Jan 17, 2022
https://hackage.haskell.org/package/hackage-security-0.6.1.0 is released and the test failures are gone. Closing.
ffaf1 commentedon Sep 3, 2025
Is this issue meant to be open or closed?
ulysses4ever commentedon Sep 3, 2025
The current state of
hackage-securityinnixpkgsis enabled and succeeding (e.g. https://hydra.nixos.org/build/306254868), so, yes, let's close it.