Unverified Commit 1b7cbe23 authored by Gaétan Lepage's avatar Gaétan Lepage Committed by GitHub
Browse files

python3Packages.wandb: Disable tests that fail in Darwin's strict sandbox (#424446)

parents 00e1d725 43d9376b
Loading
Loading
Loading
Loading
+24 −10
Original line number Diff line number Diff line
@@ -279,7 +279,8 @@ buildPythonPackage rec {
    "--timeout=1024"
  ];

  disabledTestPaths = [
  disabledTestPaths =
    [
      # Require docker access
      "tests/system_tests"

@@ -291,6 +292,10 @@ buildPythonPackage rec {

      # PermissionError: unable to write to .cache/wandb/artifacts
      "tests/unit_tests/test_artifacts/test_wandb_artifacts.py"
    ]
    ++ lib.optionals stdenv.hostPlatform.isDarwin [
      # Breaks in sandbox: "Timed out waiting for wandb service to start"
      "tests/unit_tests/test_job_builder.py"
    ];

  disabledTests =
@@ -391,6 +396,15 @@ buildPythonPackage rec {

      # RuntimeError: *** -[__NSPlaceholderArray initWithObjects:count:]: attempt to insert nil object from objects[1]
      "test_wandb_image_with_matplotlib_figure"

      # AssertionError: assert 'did you mean https://api.wandb.ai' in '1'
      "test_login_bad_host"

      # Asserttion error: 1 != 0 (testing system exit code)
      "test_login_host_trailing_slash_fix_invalid"

      # Breaks in sandbox: "Timed out waiting for wandb service to start"
      "test_setup_offline"
    ];

  pythonImportsCheck = [ "wandb" ];