Unverified Commit 7ee76979 authored by Gaétan Lepage's avatar Gaétan Lepage Committed by GitHub
Browse files

swh: unbreak on `aarch64-darwin` (#498641)

parents bc16fb60 eb14b8a8
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
{
  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
+3 −0
Original line number Diff line number Diff line
@@ -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
+11 −0
Original line number Diff line number Diff line
{
  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";
+3 −0
Original line number Diff line number Diff line
@@ -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 = [
+8 −0
Original line number Diff line number Diff line
{
  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"
Loading