haskellPackages.monad-bayes: disable tests on not x86_64-linux
The test suite checks floating point numbers against expected results which can easily fail due to precision issues. We should only attempt to run the test suite on platforms upstream also checks. On Hydra, the test suite also fails on x86_64-darwin which I'm putting down to the underlying machines actually being aarch64-darwin host. I may be wrong on that, though.
This commit is contained in:
parent
aa7ef564b3
commit
0455292066
@ -3214,6 +3214,18 @@ with haskellLib;
|
||||
brillo-juicy = warnAfterVersion "0.2.4" (doJailbreak super.brillo-juicy);
|
||||
brillo = warnAfterVersion "1.13.3" (doJailbreak super.brillo);
|
||||
|
||||
# Floating point precision issues. Test suite is only checked on x86_64.
|
||||
# https://github.com/tweag/monad-bayes/issues/368
|
||||
monad-bayes = dontCheckIf (
|
||||
let
|
||||
inherit (pkgs.stdenv) hostPlatform;
|
||||
in
|
||||
!hostPlatform.isx86_64
|
||||
# Presumably because we emulate x86_64-darwin via Rosetta, x86_64-darwin
|
||||
# also fails on Hydra
|
||||
|| hostPlatform.isDarwin
|
||||
) super.monad-bayes;
|
||||
|
||||
# 2025-04-13: jailbreak to allow th-abstraction >= 0.7
|
||||
crucible = warnAfterVersion "0.7.2" (
|
||||
doJailbreak (
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user