Commit 04552920 authored by sternenseemann's avatar sternenseemann
Browse files

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.
parent aa7ef564
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -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 (