From 6f699c28af531efe2b29a3f7efc31cee6a0205a7 Mon Sep 17 00:00:00 2001 From: Ihar Hrachyshka Date: Sat, 1 Aug 2026 00:47:47 -0400 Subject: [PATCH] python3Packages.mlx: skip flaky test on darwin --- .../python-modules/mlx/default.nix | 23 ++++++++++++------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/pkgs/development/python-modules/mlx/default.nix b/pkgs/development/python-modules/mlx/default.nix index 4db98899b12d..ef725c83ade8 100644 --- a/pkgs/development/python-modules/mlx/default.nix +++ b/pkgs/development/python-modules/mlx/default.nix @@ -113,14 +113,21 @@ buildPythonPackage (finalAttrs: { "python/tests/" ]; - disabledTests = lib.optionals (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isx86_64) [ - # Segmentation fault - "test_lapack" - "test_multivariate_normal" - "test_orthogonal" - "test_vmap_inverse" - "test_vmap_svd" - ]; + disabledTests = + lib.optionals (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isx86_64) [ + # Segmentation fault + "test_lapack" + "test_multivariate_normal" + "test_orthogonal" + "test_vmap_inverse" + "test_vmap_svd" + ] + ++ lib.optionals stdenv.hostPlatform.isDarwin [ + # M1 Accelerate bug, to be fixed in macOS: + # https://github.com/ml-explore/mlx/issues/3200 + # https://github.com/ml-explore/mlx/pull/3563#issuecomment-4784288696 + "test_gather_qmm_sorted" + ]; disabledTestPaths = lib.optionals (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isx86_64) [ # Segmentation fault