Skip to content

Commit

Permalink
python312Packages.flax: disable failing tests on darwin
Browse files Browse the repository at this point in the history
  • Loading branch information
GaetanLepage committed Jan 8, 2025
1 parent 6d88f20 commit a51f3b1
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 deletions.
23 changes: 15 additions & 8 deletions pkgs/development/python-modules/flax/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
lib,
stdenv,
buildPythonPackage,
fetchFromGitHub,

Expand Down Expand Up @@ -106,14 +107,20 @@ buildPythonPackage rec {
"tests/tensorboard_test.py"
];

disabledTests = [
# ValueError: Checkpoint path should be absolute
"test_overwrite_checkpoints0"
# Fixed in more recent versions of jax: https://github.com/google/flax/issues/4211
# TODO: Re-enable when jax>0.4.28 will be available in nixpkgs
"test_vmap_and_cond_passthrough" # ValueError: vmap has mapped output but out_axes is None
"test_vmap_and_cond_passthrough_error" # AssertionError: "at vmap.*'broadcast'.*got axis spec ...
];
disabledTests =
[
# ValueError: Checkpoint path should be absolute
"test_overwrite_checkpoints0"
# Fixed in more recent versions of jax: https://github.com/google/flax/issues/4211
# TODO: Re-enable when jax>0.4.28 will be available in nixpkgs
"test_vmap_and_cond_passthrough" # ValueError: vmap has mapped output but out_axes is None
"test_vmap_and_cond_passthrough_error" # AssertionError: "at vmap.*'broadcast'.*got axis spec ...
]
++ lib.optionals stdenv.isDarwin [
# SystemError: nanobind::detail::nb_func_error_except(): exception could not be translated!
"test_ref_changed"
"test_structure_changed"
];

passthru = {
updateScript = writeScript "update.sh" ''
Expand Down
1 change: 1 addition & 0 deletions pkgs/development/python-modules/numpyro/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
lib,
stdenv,
buildPythonPackage,
fetchFromGitHub,

Expand Down

0 comments on commit a51f3b1

Please sign in to comment.