Your message dated Tue, 18 Feb 2025 22:27:06 +0000
with message-id <e1tkw3w-0072hp...@fasolo.debian.org>
and subject line Bug#1098277: fixed in python-cassandra-driver 3.29.2-5
has caused the Debian Bug report #1098277,
regarding python-cassandra-driver: FTBFS on riscv64: AssertionError: False is
not true
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)
--
1098277: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1098277
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Source: python-cassandra-driver
Version: 3.29.2-4
Severity: serious
Tags: ftbfs patch
User: debian-ri...@lists.debian.org
Usertags: riscv64
X-Debbugs-Cc: debian-ri...@lists.debian.org
Dear Maintainer,
Now python-cassandra-driver has one FTBFS issue due to test failed:
```
=================================== FAILURES ===================================
__________________ StrategiesTest.test_nts_token_performance ___________________
self = <tests.unit.test_metadata.StrategiesTest
testMethod=test_nts_token_performance>
def test_nts_token_performance(self):
"""
[...]
nts = NetworkTopologyStrategy({'dc1': 3})
start_time = timeit.default_timer()
nts.make_token_replica_map(token_to_host_owner, ring)
elapsed_base = timeit.default_timer() - start_time
nts = NetworkTopologyStrategy({'dc1': 1500})
start_time = timeit.default_timer()
nts.make_token_replica_map(token_to_host_owner, ring)
elapsed_bad = timeit.default_timer() - start_time
difference = elapsed_bad - elapsed_base
> self.assertTrue(difference < 1 and difference > -1)
E AssertionError: False is not true
```
See
https://buildd.debian.org/status/fetch.php?pkg=python-cassandra-driver&arch=riscv64&ver=3.29.2-4&stamp=1739528871&raw=0
The code show me that there is a high probability that it is still because of
the timeout problem in riscv64, so I increase the difference range on
riscv64 to pass the test and this works on my Unmatched boards.
Could you apply this on the next upload? Or let me know any issue
please.
--
Regards,
--
Bo YU
diff -Nru python-cassandra-driver-3.29.2/debian/changelog
python-cassandra-driver-3.29.2/debian/changelog
--- python-cassandra-driver-3.29.2/debian/changelog 2025-02-13
13:14:59.000000000 +0000
+++ python-cassandra-driver-3.29.2/debian/changelog 2025-02-18
16:21:22.000000000 +0000
@@ -1,3 +1,11 @@
+python-cassandra-driver (3.29.2-4.1) UNRELEASED; urgency=medium
+
+ * Non-maintainer upload.
+ * Increase difference range to pass test_nts_token_performance test on
+ riscv64. (Closes: #-1)
+
+ -- Bo YU <vi...@debian.org> Tue, 18 Feb 2025 16:21:22 +0000
+
python-cassandra-driver (3.29.2-4) unstable; urgency=medium
* Fix the build of cassandra.io.libevwrapper extension on Python 3.13
diff -Nru
python-cassandra-driver-3.29.2/debian/patches/0008-Increase-difference-on-rv64.patch
python-cassandra-driver-3.29.2/debian/patches/0008-Increase-difference-on-rv64.patch
---
python-cassandra-driver-3.29.2/debian/patches/0008-Increase-difference-on-rv64.patch
1970-01-01 00:00:00.000000000 +0000
+++
python-cassandra-driver-3.29.2/debian/patches/0008-Increase-difference-on-rv64.patch
2025-02-18 16:21:22.000000000 +0000
@@ -0,0 +1,31 @@
+Description: increase the difference range on riscv64
+ workaround on riscv64 because it is slow at this moment
+Author: Bo YU <vi...@debian.org>
+Bug:
https://buildd.debian.org/status/fetch.php?pkg=python-cassandra-driver&arch=riscv64&ver=3.29.2-4&stamp=1739528871&raw=0
+Last-Update: 2025-02-18
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+Index: b/tests/unit/test_metadata.py
+===================================================================
+--- a/tests/unit/test_metadata.py
++++ b/tests/unit/test_metadata.py
+@@ -18,6 +18,7 @@
+ from unittest.mock import Mock
+ import os
+ import timeit
++import platform
+
+ import cassandra
+ from cassandra.cqltypes import strip_frozen
+@@ -268,7 +269,10 @@
+ nts.make_token_replica_map(token_to_host_owner, ring)
+ elapsed_bad = timeit.default_timer() - start_time
+ difference = elapsed_bad - elapsed_base
+- self.assertTrue(difference < 1 and difference > -1)
++ if platform.machine() == 'riscv64':
++ self.assertTrue(difference < 2 and difference > -2)
++ else:
++ self.assertTrue(difference < 1 and difference > -1)
+
+ def test_nts_make_token_replica_map_multi_rack(self):
+ token_to_host_owner = {}
diff -Nru python-cassandra-driver-3.29.2/debian/patches/series
python-cassandra-driver-3.29.2/debian/patches/series
--- python-cassandra-driver-3.29.2/debian/patches/series 2025-02-13
13:14:59.000000000 +0000
+++ python-cassandra-driver-3.29.2/debian/patches/series 2025-02-18
07:25:26.000000000 +0000
@@ -1,3 +1,4 @@
+0008-Increase-difference-on-rv64.patch
Make_unittests_loadable.patch
Disable_GitHub_links_in_doc.patch
0003-Skip-tests-that-fails-on-i386-arch.patch
signature.asc
Description: PGP signature
--- End Message ---
--- Begin Message ---
Source: python-cassandra-driver
Source-Version: 3.29.2-5
Done: Emmanuel Arias <eam...@debian.org>
We believe that the bug you reported is fixed in the latest version of
python-cassandra-driver, 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 1098...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Emmanuel Arias <eam...@debian.org> (supplier of updated python-cassandra-driver
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 ftpmas...@ftp-master.debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Tue, 18 Feb 2025 16:21:22 +0000
Source: python-cassandra-driver
Architecture: source
Version: 3.29.2-5
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Team <team+pyt...@tracker.debian.org>
Changed-By: Emmanuel Arias <eam...@debian.org>
Closes: 1098277
Changes:
python-cassandra-driver (3.29.2-5) unstable; urgency=medium
.
* Increase difference range to pass test_nts_token_performance test on
riscv64 (Closes: #1098277).
- Thanks for patch Bo YU <vi...@debian.org>.
Checksums-Sha1:
2641281d4a7a6bd965451e32a345e1278a44e963 2695
python-cassandra-driver_3.29.2-5.dsc
ca42b648f8f8a653bf9b2fa5a7cfc48140241844 11436
python-cassandra-driver_3.29.2-5.debian.tar.xz
92b8072ea8eef41f8c4b6af21e2fef8b88e60d5d 11041
python-cassandra-driver_3.29.2-5_amd64.buildinfo
Checksums-Sha256:
98ffa491fa063e52ae92c2f14f61d8514adcd5432ec60436a6ee94ee76153dcd 2695
python-cassandra-driver_3.29.2-5.dsc
30e9a44c62c039a73bac1ea29e1e5779c8146ef825d855c2c12d39b0c4676ca7 11436
python-cassandra-driver_3.29.2-5.debian.tar.xz
057f26f497213b6d3b3f47fe72dac4257465ca9170280488ae2856d796895290 11041
python-cassandra-driver_3.29.2-5_amd64.buildinfo
Files:
1cd806bd55421ae00618b1daeae7a4b4 2695 python optional
python-cassandra-driver_3.29.2-5.dsc
fff0e7b4093677716c8686acc04b7cad 11436 python optional
python-cassandra-driver_3.29.2-5.debian.tar.xz
2443c83dc968eb267cd7d03444412394 11041 python optional
python-cassandra-driver_3.29.2-5_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----
iQJGBAEBCgAwFiEEE3lnVbvHK7ir4q61+p3sXeEcY/EFAme1AMQSHGVhbWFudUBk
ZWJpYW4ub3JnAAoJEPqd7F3hHGPx03IP/AvPab41TSBVp6Ui+YggdvBF7iZ1DU2Z
jSMExJFKlDkkQ6KKfAEwtLAsKET7pegGgEeQIuG8rW+n9TD1JCyN8v0G0oJMb5P1
4O1OguPpW3EvS9gHi5w88OGzeyylYOfW7ecFCxTUudRwwlhrex1sYbWlMIKNk1sx
G6Q6EC9sdNmw2aGVq8cMXXuJEgnOGerl+r1lUW7EFGGnYlcSJYWiuNTy3GV5wc+D
rMeMauXwCkoSsyPRDI4iDaFBuiD12yAUJjEPGSl1FfrumQ1ChDTHSUuZE16mrit+
E5qMvieS4lmAy6FoHzEp3Zp12mczr78sSH78lechnnVySxL/4Dn52Jau+A6olu5o
+4uK7vuiWFQ5w/Xd/KbQKdext4I7uBbicWVT1vi46F1iDHCMfR7wuWvK1F6MuvVt
yJL2BPwJ0GNqybHQeYaXTCotGVcGvkD/y1K6Jm5hAhJxs94unGZHaqWxlY0T6IPF
NQPWbIoqcf0IOLjJIcrPVpUGs7ksGrnob4iRfDvSo/RAt+/P0omxhsxyIBEYqjvj
46ofwA1AeKwiMOMA/P14M4lSQLHlNz4Ldb40D9JLQ3+1yUW33BGXe+ywaC6VMmzH
37WzMQ8GLuyDf6183M6nS2bJ1/8Uv2EUHT1Q5PY7JekjYxID2ARNv1Hzx5N3SSWf
Bf4eJieiVf3J
=karZ
-----END PGP SIGNATURE-----
pgp5FnmryNyoG.pgp
Description: PGP signature
--- End Message ---