Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
python-cassandra-driver
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Debian Python Team
packages
python-cassandra-driver
Commits
73ade07f
Commit
73ade07f
authored
3 months ago
by
Emmanuel Arias
Browse files
Options
Downloads
Patches
Plain Diff
Increase difference range to pass test_nts_token_performance test on riscv64 (Closes: #1098277).
- Thanks for patch Bo YU <vimer@debian.org>.
parent
0bc7c75b
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
debian/changelog
+8
-0
8 additions, 0 deletions
debian/changelog
debian/patches/0008-Increase-difference-on-rv64.patch
+31
-0
31 additions, 0 deletions
debian/patches/0008-Increase-difference-on-rv64.patch
debian/patches/series
+1
-0
1 addition, 0 deletions
debian/patches/series
with
40 additions
and
0 deletions
debian/changelog
+
8
−
0
View file @
73ade07f
python-cassandra-driver (3.29.2-5) UNRELEASED; urgency=medium
* Increase difference range to pass test_nts_token_performance test on
riscv64 (Closes: #1098277).
- Thanks for patch Bo YU <vimer@debian.org>.
-- Emmanuel Arias <eamanu@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
...
...
This diff is collapsed.
Click to expand it.
debian/patches/0008-Increase-difference-on-rv64.patch
0 → 100644
+
31
−
0
View file @
73ade07f
Description: increase the difference range on riscv64
workaround on riscv64 because it is slow at this moment
Author: Bo YU <vimer@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 = {}
This diff is collapsed.
Click to expand it.
debian/patches/series
+
1
−
0
View file @
73ade07f
...
...
@@ -6,3 +6,4 @@ Disable_GitHub_links_in_doc.patch
drop-nose-sure
0007-Remove-trailing-from-python_version-if-any.patch
remove-obsolete-code-to-fix-libevwrapper.patch
0008-Increase-difference-on-rv64.patch
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment