swh: unbreak on aarch64-darwin (#498641)
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
buildPythonPackage,
|
||||
fetchFromGitLab,
|
||||
setuptools,
|
||||
@@ -47,6 +48,9 @@ buildPythonPackage rec {
|
||||
|
||||
pythonImportsCheck = [ "swh.auth" ];
|
||||
|
||||
# Many broken tests on Darwin. Disabling them for now.
|
||||
doCheck = !stdenv.hostPlatform.isDarwin;
|
||||
|
||||
nativeCheckInputs = [
|
||||
aiocache
|
||||
djangorestframework
|
||||
|
||||
@@ -81,6 +81,9 @@ buildPythonPackage rec {
|
||||
|
||||
__darwinAllowLocalNetworking = true;
|
||||
|
||||
# Many broken tests on Darwin. Disabling them for now.
|
||||
doCheck = !stdenv.hostPlatform.isDarwin;
|
||||
|
||||
nativeCheckInputs = [
|
||||
aiohttp-utils
|
||||
flask
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
buildPythonPackage,
|
||||
fetchFromGitLab,
|
||||
setuptools,
|
||||
@@ -45,6 +46,16 @@ buildPythonPackage rec {
|
||||
pytest-mock
|
||||
];
|
||||
|
||||
disabledTestPaths = [
|
||||
# AssertionError: assert {'author': {'email': b'', 'fullname': b'foo', 'name': b'foo'}, 'date': {'offset_bytes': b'+0200', 'timestamp': {'micro...': 1234567890}}, 'id': b'\x80Y\xdcN\x17\xfc\xd0\xe5\x1c\xa3\xbc\xd6\xb8\x0fEw\xd2\x81\xfd\x08', 'message': b'foo', ...} is None
|
||||
"swh/journal/tests/test_kafka_writer.py"
|
||||
]
|
||||
++ lib.optionals stdenv.hostPlatform.isDarwin [
|
||||
#Fatal Python error: Segmentation fault"
|
||||
"swh/journal/tests/test_client.py"
|
||||
"swh/journal/tests/test_pytest_plugin.py"
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "Persistent logger of changes to the archive, with publish-subscribe support";
|
||||
homepage = "https://gitlab.softwareheritage.org/swh/devel/swh-journal";
|
||||
|
||||
@@ -81,6 +81,9 @@ buildPythonPackage rec {
|
||||
|
||||
pythonImportsCheck = [ "swh.objstorage" ];
|
||||
|
||||
# Many broken tests on Darwin. Disabling them for now.
|
||||
doCheck = !stdenv.hostPlatform.isDarwin;
|
||||
|
||||
enabledTestPaths = [ "swh/objstorage/tests" ];
|
||||
|
||||
nativeCheckInputs = [
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
buildPythonPackage,
|
||||
fetchFromGitLab,
|
||||
setuptools,
|
||||
@@ -65,6 +66,13 @@ buildPythonPackage rec {
|
||||
types-requests
|
||||
];
|
||||
|
||||
disabledTests = lib.optionals (stdenv.hostPlatform.isDarwin) [
|
||||
# Failed: Failed to start the server after 5 seconds.
|
||||
"test_add_provenance_with_release"
|
||||
"test_add_provenance_with_revision"
|
||||
"test_scanner_result"
|
||||
];
|
||||
|
||||
disabledTestPaths = [
|
||||
# pytestRemoveBytecodePhase fails with: "error (ignored): error: opening directory "/tmp/nix-build-python3.12-swh-scanner-0.8.3.drv-5/build/pytest-of-nixbld/pytest-0/test_randomdir_policy_info_cal0/big-directory/dir/dir/dir/ ......"
|
||||
"swh/scanner/tests/test_policy.py"
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
buildPythonPackage,
|
||||
fetchFromGitLab,
|
||||
setuptools,
|
||||
@@ -65,6 +66,9 @@ buildPythonPackage rec {
|
||||
|
||||
pythonImportsCheck = [ "swh.scheduler" ];
|
||||
|
||||
# Many broken tests on Darwin. Disabling them for now.
|
||||
doCheck = !stdenv.hostPlatform.isDarwin;
|
||||
|
||||
nativeCheckInputs = [
|
||||
plotille
|
||||
postgresql
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
{
|
||||
stdenv,
|
||||
buildPythonPackage,
|
||||
click,
|
||||
cmake,
|
||||
@@ -62,6 +63,18 @@ buildPythonPackage rec {
|
||||
rm src/swh/shard/*.py
|
||||
'';
|
||||
|
||||
disabledTests = [
|
||||
"test_setup_log_handler_with_env_configuration"
|
||||
]
|
||||
++ lib.optionals (stdenv.hostPlatform.isDarwin) [
|
||||
# assert (51675136 - 51396608) < (100 * 1024)
|
||||
"test_memleak"
|
||||
# ValueError: Cannot convert negative int
|
||||
"test_write_above_rlimit_fsize"
|
||||
# ValueError: Cannot convert negative int
|
||||
"test_finalize_above_rlimit_fsize"
|
||||
];
|
||||
|
||||
meta = {
|
||||
changelog = "https://gitlab.softwareheritage.org/swh/devel/swh-shard/-/tags/v2.2.0";
|
||||
description = "Shard File Format for the Software Heritage Object Storage";
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
buildPythonPackage,
|
||||
fetchFromGitLab,
|
||||
setuptools,
|
||||
@@ -74,6 +75,9 @@ buildPythonPackage rec {
|
||||
|
||||
pythonImportsCheck = [ "swh.storage" ];
|
||||
|
||||
# Many broken tests on Darwin. Disabling them for now.
|
||||
doCheck = !stdenv.hostPlatform.isDarwin;
|
||||
|
||||
nativeCheckInputs = [
|
||||
postgresql
|
||||
postgresqlTestHook
|
||||
|
||||
Reference in New Issue
Block a user