#1151162 python-stestr: FTBFS: ImportError: 'test_user' module incorrectly imported from '/tmp/tmpywnpkbk5'. Expected '/tmp/tmpo_cfnt4f'. Is this module globally installed?

#1151162#5
Date:
2026-10-17 16:15:34 UTC
From:
To:
Dear maintainer:

During a rebuild of all packages in unstable, this package failed to build.
Full build log is available here:

https://people.debian.org/~sanvila/build-logs/202610/

After trying 21 times, this package failed to build for me:

100% of the time on machines with 1 CPU
 46% of the time on machines with 2 CPUs

Therefore I recommend GRUB_CMDLINE_LINUX="nr_cpus=1" to reproduce.
(And, if that does not work, I can offer a VM, as always).

Thanks.
---------------------------------------------------------------------- Ran 322 tests in 61.204s FAILED (failures=1, skipped=2) make[1]: *** [debian/rules:22: override_dh_install] Error 1 make[1]: Leaving directory '/<<PKGBUILDDIR>>' make: *** [debian/rules:10: binary] Error 2 dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2 --------------------------------------------------------------------------------
#1151162#8
Date:
2026-10-17 21:42:19 UTC
From:
To:
Hello,

Bug #1151162 in python-stestr reported by you has been fixed in the
Git repository and is awaiting an upload. You can see the commit
message below and you can check the diff of the fix at:

https://salsa.debian.org/openstack-team/libs/python-stestr/-/commit/75d82fac77f3d7297f432a0b6fbbb5b92072c556
------------------------------------------------------------------------
Fixed sys.modules leak between dynamic worker tests

Fixed a sys.modules state leak between the in-process dynamic worker
discovery tests in stestr/tests/test_test_processor.py that leads to
FTBFS (Closes: #1151162), adding patch "Pop the dynamic worker fixture
modules out of sys.modules":

- Fix-sys.modules-leak-in-dynamic-worker-tests.patch
------------------------------------------------------------------------

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/1151162

#1151162#15
Date:
2026-10-17 22:06:02 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
python-stestr, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1151162@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Thomas Goirand <zigo@debian.org> (supplier of updated python-stestr package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Sat, 17 Oct 2026 23:38:19 +0200
Source: python-stestr
Architecture: source
Version: 4.2.1-8
Distribution: unstable
Urgency: medium
Maintainer: Debian OpenStack <team+openstack@tracker.debian.org>
Changed-By: Thomas Goirand <zigo@debian.org>
Closes: 1151162
Changes:
 python-stestr (4.2.1-8) unstable; urgency=medium
 .
   * Fixed a sys.modules state leak between the in-process dynamic worker
     discovery tests in stestr/tests/test_test_processor.py that leads to
     FTBFS (Closes: #1151162), adding patch "Pop the dynamic worker
     fixture modules out of sys.modules":
     - Fix-sys.modules-leak-in-dynamic-worker-tests.patch
Checksums-Sha1:
 68865eb7394be1c4c971e1e85c7bce96525cdc83 2480 python-stestr_4.2.1-8.dsc
 95c6adf3849412947ed3dc939982c46966e97a88 28320 python-stestr_4.2.1-8.debian.tar.xz
 93dd0e9e83be58388aec455484ec44784ee5c294 8676 python-stestr_4.2.1-8_amd64.buildinfo
Checksums-Sha256:
 e4266d40d18088d6691d7786a9839dd830cde6a0b4442428248443f5737838ac 2480 python-stestr_4.2.1-8.dsc
 afade2ebfd3fb3038d6b04a27af96c1b0a4a8f205038455a4f32eebf67fbcf61 28320 python-stestr_4.2.1-8.debian.tar.xz
 58a15a28afbe41e459d22669a207e6ff39e168d05a4bf0efb2d3a959a9b24f2a 8676 python-stestr_4.2.1-8_amd64.buildinfo
Files:
 8b6938462c2f43e3ffa574d697b5dd9b 2480 python optional python-stestr_4.2.1-8.dsc
 a69ab56d68c9a53125e495deb3b2dec7 28320 python optional python-stestr_4.2.1-8.debian.tar.xz
 483c0c15b6e688d2a3bd7adea0b8a4c7 8676 python optional python-stestr_4.2.1-8_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEoLGp81CJVhMOekJc1BatFaxrQ/4FAmrT61MACgkQ1BatFaxr
Q/4IoBAAj0o48sL3m34iTyNfpkU34PzqHQNJgDXxDE/S9t/TffLfIP1tPuhUM+Qg
5Nh7+yLCePe5R4ONNCPyXB5AYS2ooczcNTzVBE1UJzxb6JQOw4Ry3a7U9daepJN2
Vmgy/YQaN5A5/Dgt1A2aZUrS5nTcAUvNwn1pSyaYXF1vWsVHthRtDJboKvfy7XYw
zuM+Ac8Rqya7On72sbig56NeknJiQd3hSyh3UFNcEFhWJxJ3h3vtEBuPNFq+b9PA
fRVTs7kASYEm9yge83jSlfnjQW6JyB9WRQ5jy/i/dpyUQIWaaDJsI/RXtqTIwvv5
vQq8CSq5cIFvnwCFFucrgxU4PNlr8uwX1S0nYqooZE9PY4tcUlZqJOKb8uzyiI+w
ofM5zOyu+2GuRwT/r4P9tOw1cgPC0bV8zylseNfhNLfRdQoOP353msLCkT2ifGzQ
oZcbTSRvpW6mj8CWboIsbZbaxbtIWpb3lTcX8qUuTFvoiXckbGbP1jX0lABmFI+z
MdVen9TRAYifZ/SlPAn84mTMU9mjKPX46LbKLeBmn+HNrTMLSEC8ZM14JyXaT4f7
lCdZYzemJn5/bYSwePuNdnMmDocQvEKHjB6WFoGD2cAuivQhvxYWoo/4UGwREdIS
EQMj4MkRg5zAxHk+j/uExSkhkK23hy5Wn2gOAoF174hiYvTryu4=
=6jLB
-----END PGP SIGNATURE-----