From: Rishabh Dave Date: Mon, 8 Dec 2025 12:54:47 +0000 (+0530) Subject: qa/cephfs: give more time to tests in test_clone_stats.py X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=241cfc6c06d11a8245222a20d4ed615c8dbcb63b;p=ceph.git qa/cephfs: give more time to tests in test_clone_stats.py Currently tests wait for 10 seconds for clone progress bar to appear and it usually takes 8 seconds to find it. In case of the host where test is being run is slow, the progress bar can take more time to appear and the test can fail unnecessarily. To avoid this, increase the waiting duration. Signed-off-by: Rishabh Dave --- diff --git a/qa/tasks/cephfs/volumes/test_clone_stats.py b/qa/tasks/cephfs/volumes/test_clone_stats.py index 5b5c41ee32f..299107cfdad 100644 --- a/qa/tasks/cephfs/volumes/test_clone_stats.py +++ b/qa/tasks/cephfs/volumes/test_clone_stats.py @@ -376,7 +376,7 @@ class TestCloneProgressReporter(CloneProgressReporterHelper): self.run_ceph_cmd(f'fs subvolume snapshot clone {v} {sv} {ss} {c}') - with safe_while(tries=10, sleep=1) as proceed: + with safe_while(tries=10, sleep=2) as proceed: while proceed(): pev = self.get_pevs_from_ceph_status(c) @@ -425,7 +425,7 @@ class TestCloneProgressReporter(CloneProgressReporterHelper): self.run_ceph_cmd(f'fs subvolume snapshot clone {v} {sv} {ss} {c} ' f'--group-name {group}') - with safe_while(tries=10, sleep=1) as proceed: + with safe_while(tries=10, sleep=2) as proceed: while proceed(): pev = self.get_pevs_from_ceph_status(c) @@ -521,7 +521,7 @@ class TestCloneProgressReporter(CloneProgressReporterHelper): for i in c: self.run_ceph_cmd(f'fs subvolume snapshot clone {v} {sv} {ss} {i}') - with safe_while(tries=10, sleep=1) as proceed: + with safe_while(tries=10, sleep=2) as proceed: while proceed(): pev = self.get_pevs_from_ceph_status(c) @@ -573,7 +573,7 @@ class TestCloneProgressReporter(CloneProgressReporterHelper): msg = ('messages for progress bars for snapshot cloning are not how ' 'they were expected') - with safe_while(tries=20, sleep=1, action=msg) as proceed: + with safe_while(tries=20, sleep=2, action=msg) as proceed: while proceed(): pevs = self.get_pevs_from_ceph_status(c)