#1102022 rally: FTBFS: Timing tests will not work in all machines

Package:
src:rally
Source:
src:rally
Submitter:
Santiago Vila
Date:
2025-09-18 12:25:01 UTC
Severity:
normal
Tags:
#1102022#5
Date:
2025-04-03 23:57:46 UTC
From:
To:
Dear maintainer:

During a rebuild of all packages in unstable, your package failed to build:

[ please read the notes at the end ]
----------------------------- Captured stderr call -----------------------------
2025-04-03 06:33:58.561 229776 INFO rally.task.runner [-] Task uuid | ITER: 1 START
2025-04-03 06:33:58.562 229776 INFO rally.task.runner [-] Task uuid | ITER: 1 END: Error TimeoutError:
=========================== short test summary info ============================
FAILED tests/unit/plugins/task/runners/test_constant.py::ConstantForDurationScenarioRunnerTestCase::test_run_scenario_constantly_for_duration
FAILED tests/unit/plugins/task/runners/test_constant.py::ConstantForDurationScenarioRunnerTestCase::test_run_scenario_constantly_for_duration_exception
FAILED tests/unit/plugins/task/runners/test_constant.py::ConstantForDurationScenarioRunnerTestCase::test_run_scenario_constantly_for_duration_timeout
================== 3 failed, 1559 passed, 1 skipped in 24.14s ==================

The above is just how the build ends and not necessarily the most relevant part.
If required, the full build log is available here:

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

About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

In this particular case, the build was made on AWS machines of type
m7a.medium and r7a.medium. Incidentally, those machines have a single CPU,
but at this point it's not clear yet if that's the condition which triggers
the build failure or, for example, the fact that they are overall slower
than other instance types, or maybe some other reason.

If you could not reproduce the bug using GRUB_CMDLINE_LINUX="nr_cpus=1"
please contact me privately, as I am willing to provide ssh access to a
virtual machine where the bug is fully reproducible.

Disclaimer: Please note that this is probably a violation of
Debian Policy 4.2, and the main reason I'm initially reporting
it as "important" is to avoid discussing about the severity.

Note: In this case I do believe that using a single CPU is actually
what triggers the error. I don't think that making timing measurements
is a good idea here, but if this has to be kept, then please skip those
tests when they do not make sense and they are known to fail, as in
the attached patch.

If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:rally, so that this is still
visible in the BTS web page for this package.

Thanks.

#1102022#10
Date:
2025-07-04 12:19:06 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
rally, 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 1102022@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 rally 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: Fri, 04 Jul 2025 13:53:02 +0200
Source: rally
Architecture: source
Version: 4.1.0-4
Distribution: unstable
Urgency: medium
Maintainer: Debian OpenStack <team+openstack@tracker.debian.org>
Changed-By: Thomas Goirand <zigo@debian.org>
Closes: 1102022
Changes:
 rally (4.1.0-4) unstable; urgency=medium
 .
   [ Santiago Vila ]
   * On single-CPU systems, skip tests which are known not to work
     (Closes: #1102022).
Checksums-Sha1:
 1140b14329a63390dac2662b0d08046a096f0164 2638 rally_4.1.0-4.dsc
 b6fa72719bb681fd21d2cb0d67ad76b18cccb718 14364 rally_4.1.0-4.debian.tar.xz
 2b8e856bcc6912fc5b71b3be32af15a0cfdfb3eb 11471 rally_4.1.0-4_amd64.buildinfo
Checksums-Sha256:
 d2d0a7bbcbd910428513f4e028f1ec7ec609a38e657678b975f3fbfb8f5d8a77 2638 rally_4.1.0-4.dsc
 79ca64a68a3fd178c81e010b2450fdd86d2afaeb95079322dba38cafdd175bed 14364 rally_4.1.0-4.debian.tar.xz
 80abc1328ccccd9c691a56802cd4cee0e1b1f93d73ec3c73d42966085e755e3c 11471 rally_4.1.0-4_amd64.buildinfo
Files:
 5d9e6f4bbacb5c92f16d0809ebafb3a5 2638 net optional rally_4.1.0-4.dsc
 04af59ee1dcd4c76140ff160e01f3a8a 14364 net optional rally_4.1.0-4.debian.tar.xz
 d3c04b004cfdf083abdde84d3a3aea94 11471 net optional rally_4.1.0-4_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEoLGp81CJVhMOekJc1BatFaxrQ/4FAmhnwV0ACgkQ1BatFaxr
Q/4dmxAAmHsX2zP6522yYG3/tcyHo4/QlxsdgZfIPAb1PQRqToqV6YYYdhQWlvqX
/jo9qMNX8z8FAcIEn3NM/RQSh/3LTVsJHStcQilsdiigC17+DZVBXE+4zJOpPadt
rVnafuTrrvZslrFnO023VBXyIt2gROeht4VBPPxBNf84dh6VqIb/paBdeLci+jhy
MxA6a6PW4hfjpdwlfsyOB3e7ngJTWy/emfhwPLzc5HjG5u76G2GoFNbcVIbCFGxu
AdTCXR+cmXq45HVFGvXDjX1P+dp7dsywnk0dqeNDs7h7qJF9jY7F0beYPF1wNHdn
rrIAviXtaH+pg0qa6h7ACN+jBjhU5a6UdirgXvveBt8Ubd+KYM+/cYXhnp/V5IXQ
G+/YIUAjr8g6/n2j/PqRXTAElrnr+xNfD9P9QZwMLl7jgZoa0rnXbgI3CPkJTCzY
yZvfodboAFCrtDrTOA/7eyj2KzrXAn9Lc4JjmyWr68VP5x0IuScJ2ne+HKEkLDdd
4eY7i2oRTMcQ7Ta0O/UdNeezl8TGU3yJwUYUaBpL6njSC06FNv9X6tMPtk3t4V6s
4BgFIjibiMeDNeAzjAfIlMwEkl/HiBcQcrZALQ9aMjudnznZ7sCBi2sk1RfiiMos
w+xhTMjoKzjPL5srRkNJW/7wj0V3f4XM/sf6eqfVT5oLNHB74fk=
=JOqy
-----END PGP SIGNATURE-----