python312Packages.botorch: disable failing test on aarch64-darwin (#352613)

This commit is contained in:
Gaétan Lepage 2024-11-01 09:47:14 +01:00 committed by GitHub
commit 157d7e23a9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 12 additions and 6 deletions

View File

@ -62,6 +62,7 @@ buildPythonPackage rec {
"--ignore=ax/core/tests/test_utils.py"
"--ignore=ax/early_stopping/tests/test_strategies.py"
# broken with sqlalchemy 2
"--ignore=ax/core/tests/test_experiment.py"
"--ignore=ax/service/tests/test_ax_client.py"
"--ignore=ax/service/tests/test_scheduler.py"
"--ignore=ax/service/tests/test_with_db_settings_base.py"
@ -79,11 +80,11 @@ buildPythonPackage rec {
];
pythonImportsCheck = [ "ax" ];
meta = with lib; {
meta = {
changelog = "https://github.com/facebook/Ax/releases/tag/${version}";
description = "Ax is an accessible, general-purpose platform for understanding, managing, deploying, and automating adaptive experiments";
homepage = "https://ax.dev/";
license = licenses.mit;
maintainers = with maintainers; [ veprbl ];
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ veprbl ];
};
}

View File

@ -58,6 +58,11 @@ buildPythonPackage rec {
++ lib.optionals (stdenv.buildPlatform.system == "x86_64-linux") [
# stuck tests on hydra
"test_moo_predictive_entropy_search"
]
++ lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.isAarch64) [
# Numerical error slightly above threshold
# AssertionError: Tensor-likes are not close!
"test_model_list_gpytorch_model"
];
pythonImportsCheck = [ "botorch" ];
@ -65,11 +70,11 @@ buildPythonPackage rec {
# needs lots of undisturbed CPU time or prone to getting stuck
requiredSystemFeatures = [ "big-parallel" ];
meta = with lib; {
meta = {
changelog = "https://github.com/pytorch/botorch/blob/${src.rev}/CHANGELOG.md";
description = "Bayesian Optimization in PyTorch";
homepage = "https://botorch.org";
license = licenses.mit;
maintainers = with maintainers; [ veprbl ];
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ veprbl ];
};
}