Package: python-oslo.concurrency
Version: 5.2.0-2

Package tries to set core rlimit in one of its tests:
https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/python-oslo.concurrency.html

There has already been a skip for test_setrlimit_error of the same test
suite:
https://salsa.debian.org/openstack-team/oslo/python-oslo.concurrency/-/commit/66c7efb2b51570e0aa88d3100dcef378dae9aa13

I did not find the issue in the upstream:
https://bugs.launchpad.net/oslo.concurrency, and the tests are unchanged
there, so I assume the preferred approach for Debian packaging is skipping
that test.

Here's a patch that worked for me:

Description: Skip test_core_size of the prlimit suite
Author: Andrey Feofilaktov <[email protected]>
Last-Update: 2023-11-20
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
Index: python-oslo.concurrency-5.2.0/debian/rules
===================================================================
--- python-oslo.concurrency-5.2.0.orig/debian/rules
+++ python-oslo.concurrency-5.2.0/debian/rules
@@ -20,7 +20,7 @@ ifeq (,$(findstring nocheck, $(DEB_BUILD
        set -e ; set -x ; for i in $(PYTHON3S) ; do \
                rm -rf .stestr ;\
                PATH=$$PATH:$(CURDIR)/debian/exe-test
PYTHONPATH=$(CURDIR)/debian/tmp/usr/lib/python3/dist-packages
PYTHON=python$$i TEST_EVENTLET=0 lockutils-wrapper stestr run --parallel
--subunit
'oslo_concurrency\.tests\.unit\.(?!test_processutils\.PrlimitTestCase\.test_setrlimit_error)'
| subunit2pyunit ; \
-               PATH=$$PATH:$(CURDIR)/debian/exe-test
PYTHONPATH=$(CURDIR)/debian/tmp/usr/lib/python3/dist-packages
PYTHON=python$$i TEST_EVENTLET=1 lockutils-wrapper stestr run --parallel
--subunit
'oslo_concurrency\.tests\.unit\.(?!test_processutils\.PrlimitTestCase\.test_setrlimit_error)'
| subunit2pyunit ; \
+               PATH=$$PATH:$(CURDIR)/debian/exe-test
PYTHONPATH=$(CURDIR)/debian/tmp/usr/lib/python3/dist-packages
PYTHON=python$$i TEST_EVENTLET=1 lockutils-wrapper stestr run --parallel
--subunit
'oslo_concurrency\.tests\.unit\.(?!test_processutils\.PrlimitTestCase\.(test_setrlimit_error\|test_core_size))'
| subunit2pyunit ; \
        done
 endif

-- 
Regards,
Andrey

Reply via email to