Skip to content

qa: fix TypeError in delay#67476

Merged
vshankar merged 1 commit intoceph:mainfrom
joscollin:wip-73922-random-range
Mar 2, 2026
Merged

qa: fix TypeError in delay#67476
vshankar merged 1 commit intoceph:mainfrom
joscollin:wip-73922-random-range

Conversation

@joscollin
Copy link
Member

@joscollin joscollin commented Feb 24, 2026

Fixes: https://tracker.ceph.com/issues/75090

Contribution Guidelines

  • To sign and title your commits, please refer to Submitting Patches to Ceph.

  • If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.

  • When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an x between the brackets: [x]. Spaces and capitalization matter when checking off items this way.

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands

You must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.

@github-actions github-actions bot added the tests label Feb 24, 2026
@joscollin joscollin added the cephfs Ceph File System label Feb 24, 2026
@joscollin joscollin requested review from a team and vshankar February 24, 2026 02:06
@joscollin joscollin force-pushed the wip-73922-random-range branch from 6481e7a to 1942086 Compare February 24, 2026 03:29
@vshankar
Copy link
Contributor

cc @rishabh-d-dave since I guess that @rishabh-d-dave would be fixing it.

Copy link
Contributor

@vshankar vshankar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@joscollin
Copy link
Member Author

cc @rishabh-d-dave since I guess that @rishabh-d-dave would be fixing it.

@vshankar Rishabh has to fix it in mds_thrash also. Do you want to include mds_thrash change also in this PR?

@vshankar
Copy link
Contributor

cc @rishabh-d-dave since I guess that @rishabh-d-dave would be fixing it.

@vshankar Rishabh has to fix it in mds_thrash also. Do you want to include mds_thrash change also in this PR?

Yes. Let's have the related fixes in one PR 👍

@joscollin joscollin force-pushed the wip-73922-random-range branch from 1942086 to 480b10d Compare February 24, 2026 05:46
@joscollin
Copy link
Member Author

@vshankar Done.

Copy link
Contributor

@rishabh-d-dave rishabh-d-dave left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be nice to have a commit message explaining why we see this error now, why we didn't see it before and why using random.uniform() fixes it.

random.randrange() asserts TypeError for arguments of type 'float'.
So use random.uniform() to fix this.

Fixes: https://tracker.ceph.com/issues/75090
Signed-off-by: Jos Collin <jcollin@redhat.com>
@joscollin joscollin force-pushed the wip-73922-random-range branch from c0f21ea to 027400d Compare February 24, 2026 08:08
@vshankar
Copy link
Contributor

This PR is under test in https://tracker.ceph.com/issues/75130.

vshankar added a commit to vshankar/ceph that referenced this pull request Feb 25, 2026
* refs/pull/67476/head:

Reviewed-by: Rishabh Dave <ridave@redhat.com>
Reviewed-by: Venky Shankar <vshankar@redhat.com>
Copy link
Contributor

@vshankar vshankar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vshankar vshankar merged commit 5155f8e into ceph:main Mar 2, 2026
13 checks passed
@joscollin joscollin deleted the wip-73922-random-range branch March 2, 2026 12:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cephfs Ceph File System tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants