From b6af5b43ea00a71d160955560188b2d922884113 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20B=C3=A4renz?= Date: Wed, 29 Jul 2026 10:09:52 +0200 Subject: [PATCH] haskellPackages.monad-bayes: disable test suite unconditionally The exact-match SMC/RMSMC benchmark fixtures break with random >= 1.3 (which nightly ships), because the changed PRNG stream alters the sampled output. Upstream CI stays green only because it is frozen on a 2021 nixpkgs pin, so make the existing platform-conditional test skip unconditional. https://github.com/tweag/monad-bayes/issues/368 Assisted-by: Claude Code (Claude Opus 4.8) --- .../haskell-modules/configuration-common.nix | 21 +++++-------------- 1 file changed, 5 insertions(+), 16 deletions(-) diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix index 286bc882fdd0..696f2dcab78c 100644 --- a/pkgs/development/haskell-modules/configuration-common.nix +++ b/pkgs/development/haskell-modules/configuration-common.nix @@ -2947,22 +2947,11 @@ with haskellLib; # 2025-04-13: jailbreak to allow hedgehog >= 1.5 hw-bits = warnAfterVersion "0.7.2.2" (doJailbreak super.hw-bits); - monad-bayes = - # Floating point precision issues. Test suite is only checked on x86_64. - # https://github.com/tweag/monad-bayes/issues/368 - 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 - ) - # Too strict bounds on brick (<2.6), vty (<6.3) - # https://github.com/tweag/monad-bayes/issues/378 - (doJailbreak super.monad-bayes); + # Test suite is brittle, dependent on the random number generator + # implementation and architecture. See: + # * https://github.com/tweag/monad-bayes/pull/389 + # * https://github.com/tweag/monad-bayes/issues/368 + monad-bayes = dontCheck (doJailbreak super.monad-bayes); # 2025-04-13: jailbreak to allow th-abstraction >= 0.7 crucible = doJailbreak super.crucible;