From 41ac9ddde0781a691683027a6d7da9c5b6594cda Mon Sep 17 00:00:00 2001 From: sternenseemann Date: Sat, 26 Feb 2022 10:07:37 +0100 Subject: [PATCH] haskellPackages.reflection: disable tests for GHC 9.0.2 everywhere Thanks to Ryan Scott's investigation it became clear this crash can also happen on Linux and thus seems to be a general issue in GHC 9.0.2 (only, luckily). We'll disable the test suite everywhere for now, but the prospect of this crash / incorrect runtime result is a bit ominous. Refer to the [ghc-issue] for details. [ghc-issue]: https://gitlab.haskell.org/ghc/ghc/-/issues/21141 --- pkgs/development/haskell-modules/configuration-darwin.nix | 4 ---- pkgs/development/haskell-modules/configuration-ghc-9.0.x.nix | 5 +++++ 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/pkgs/development/haskell-modules/configuration-darwin.nix b/pkgs/development/haskell-modules/configuration-darwin.nix index 3fa4f08f8525..825262fe4b47 100644 --- a/pkgs/development/haskell-modules/configuration-darwin.nix +++ b/pkgs/development/haskell-modules/configuration-darwin.nix @@ -282,10 +282,6 @@ self: super: ({ '' + drv.postPatch or ""; }) super.foldl; - # Strange crash in test suite - # https://github.com/ekmett/reflection/issues/51 - reflection = dontCheck super.reflection; - } // lib.optionalAttrs pkgs.stdenv.isAarch64 { # aarch64-darwin # https://github.com/fpco/unliftio/issues/87 diff --git a/pkgs/development/haskell-modules/configuration-ghc-9.0.x.nix b/pkgs/development/haskell-modules/configuration-ghc-9.0.x.nix index 1f78c07ed0d6..7f0beb4fc4ad 100644 --- a/pkgs/development/haskell-modules/configuration-ghc-9.0.x.nix +++ b/pkgs/development/haskell-modules/configuration-ghc-9.0.x.nix @@ -95,6 +95,11 @@ self: super: { # https://github.com/snoyberg/mono-traversable/issues/192 mono-traversable = dontCheck super.mono-traversable; + # Test suite sometimes segfaults with GHC 9.0.1 and 9.0.2 + # https://github.com/ekmett/reflection/issues/51 + # https://gitlab.haskell.org/ghc/ghc/-/issues/21141 + reflection = dontCheck super.reflection; + # Disable tests pending resolution of # https://github.com/Soostone/retry/issues/71 retry = dontCheck super.retry;