Skip to content

tentacle: qa/tasks/rbd_mirror_thrash: don't use random.randrange() on floats#67163

Merged
yuriw merged 1 commit intoceph:tentaclefrom
idryomov:wip-74676-tentacle
Feb 6, 2026
Merged

tentacle: qa/tasks/rbd_mirror_thrash: don't use random.randrange() on floats#67163
yuriw merged 1 commit intoceph:tentaclefrom
idryomov:wip-74676-tentacle

Conversation

@idryomov
Copy link
Copy Markdown
Contributor

@idryomov idryomov commented Feb 2, 2026

This stopped working in Python 3.12:

  Changed in version 3.12: Automatic conversion of non-integer types
  is no longer supported. Calls such as randrange(10.0) and
  randrange(Fraction(10, 1)) now raise a TypeError.

Fixes: https://tracker.ceph.com/issues/74676
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
(cherry picked from commit d663359)
@idryomov idryomov added this to the tentacle milestone Feb 2, 2026
@idryomov idryomov requested a review from a team as a code owner February 2, 2026 12:41
@idryomov idryomov requested a review from ajarr February 2, 2026 12:53
@yuriw yuriw merged commit 155f4e2 into ceph:tentacle Feb 6, 2026
13 of 14 checks passed
@idryomov idryomov deleted the wip-74676-tentacle branch February 6, 2026 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants