#14 Don't run tests when package is bootstrapped
Merged 8 months ago by jcapitao. Opened 8 months ago by ksurma.
rpms/ ksurma/python-pbr bcond  into  rawhide

file modified
+7 -7
@@ -1,17 +1,14 @@ 

  %global pypi_name pbr

  # Disable bootstrap

- %bcond_with bootstrap

+ %bcond bootstrap 1

  

- %if 0%{?fedora}

- %bcond_without tests

- %else

  # EPEL does not have the necessary testing dependencies

- %bcond_with tests

- %endif

+ # During the bootstrap the test dependencies are not ready yet

+ %bcond tests %[%{defined fedora} && %{without bootstrap}]

  

  Name:           python-%{pypi_name}

  Version:        5.11.1

- Release:        4%{?dist}

+ Release:        5%{?dist}

  Summary:        Python Build Reasonableness

  

  License:        ASL 2.0
@@ -94,6 +91,9 @@ 

  %{_bindir}/pbr-3

  

  %changelog

+ * Fri Oct 20 2023 Karolina Surma <ksurma@redhat.com> - 5.11.1-5

+ - When boostrapping the package switch off the tests

+ 

  * Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 5.11.1-4

  - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild

  

During the bootstrap of Python 3.13 in Copr I discovered this package fails to build due to unmet tox dependencies. Don't try to run tests when package is bootstrapped.

Build failed. More information on how to proceed and troubleshoot errors available at https://fedoraproject.org/wiki/Zuul-based-ci
https://fedora.softwarefactory-project.io/zuul/buildset/22c8cc99b0074f17b611d48586328dbe

hello @ksurma

stestr is not yet compatible with py3.12, they are working on it [1].
In the meantime, could you enable the bootstrapping mode, in order to not run the %check ?

[1] https://github.com/mtreinish/stestr/pull/353

rebased onto 69fc4d5

8 months ago

Hi @jcapitao,
I've just pushed an amended commit which switches on the bootstrap for now.

Pull-Request has been merged by jcapitao

8 months ago

Build succeeded.
https://fedora.softwarefactory-project.io/zuul/buildset/44a8ab9afa0b4da1842ca743c13a47f2

Metadata