[Git][debian-gis-team/sarsen][master] Skip test_Sentinel1SarProduct if less than 4GB RAM is available.
Bas Couwenberg (@sebastic)
gitlab at salsa.debian.org
Fri Mar 27 11:39:47 GMT 2026
Bas Couwenberg pushed to branch master at Debian GIS Project / sarsen
Commits:
20ea2dcd by Bas Couwenberg at 2026-03-27T12:38:46+01:00
Skip test_Sentinel1SarProduct if less than 4GB RAM is available.
- - - - -
2 changed files:
- debian/control
- debian/patches/salsa-ci.patch
Changes:
=====================================
debian/control
=====================================
@@ -13,6 +13,7 @@ Build-Depends: debhelper-compat (= 13),
python3-flox,
python3-numpy,
python3-pandas,
+ python3-psutil <!nocheck>,
python3-pytest <!nocheck>,
python3-setuptools,
python3-setuptools-scm,
=====================================
debian/patches/salsa-ci.patch
=====================================
@@ -4,24 +4,34 @@ Forwarded: https://github.com/bopen/sarsen/pull/94
--- a/tests/test_20_sentinel1.py
+++ b/tests/test_20_sentinel1.py
-@@ -1,4 +1,6 @@
-+import os
+@@ -1,6 +1,8 @@
import pathlib
+import sys
import numpy as np
++import psutil
import pytest
-@@ -17,7 +19,13 @@ DATA_PATHS = [
+ import xarray as xr
+@@ -18,6 +20,11 @@ DATA_PATHS = [
GROUPS = ["IW/VV", "IW1/VV"]
-+import pprint; import warnings; warnings.warn("env:\n%s" % pprint.pformat(os.environ.__dict__))
-+
+ at pytest.mark.skipif(
-+ os.getenv("GITLAB_CI") == "true" or not sys.maxsize > 2**32,
++ psutil.virtual_memory().available < (4 * 1024 * 1024 * 1024) or
++ not sys.maxsize > 2**32,
+ reason="Process gets killed"
+)
@pytest.mark.parametrize("data_path,group", zip(DATA_PATHS, GROUPS))
def test_Sentinel1SarProduct(data_path: str, group: str) -> None:
res = sentinel1.Sentinel1SarProduct(data_path, group)
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -7,6 +7,7 @@ dev = [
+ "cfchecker>=4.1.0",
+ "mypy>=1.15.0",
+ "pandas-stubs>=1.4.0",
++ "psutil",
+ "pytest>=7.0",
+ "pytest-cov>=5.0",
+ "setuptools>=64.0",
View it on GitLab: https://salsa.debian.org/debian-gis-team/sarsen/-/commit/20ea2dcda2ed2bda4209876828ada7aee16382ba
--
View it on GitLab: https://salsa.debian.org/debian-gis-team/sarsen/-/commit/20ea2dcda2ed2bda4209876828ada7aee16382ba
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-grass-devel/attachments/20260327/862f3238/attachment-0001.htm>
More information about the Pkg-grass-devel
mailing list