From 138c7c6b498bd625a688b9f56214108ee2e6c122 Mon Sep 17 00:00:00 2001 From: Auke Kok Date: Thu, 8 May 2025 09:50:56 -0700 Subject: [PATCH] Extend orphan-inodes timeout. This test regularly fails in CI when the 15 seconds elapses and the system still hasn't concluded the mount log merges and orphan inode scans needed to unlink the test files. Instead of just extending the timeout value, we test-and-retry for 120s. This hopefully is faster in most cases. My smallest VM needs about 6s-8s on average. Signed-off-by: Auke Kok --- tests/tests/orphan-inodes.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tests/tests/orphan-inodes.sh b/tests/tests/orphan-inodes.sh index 9f2b6e3f..156450f5 100644 --- a/tests/tests/orphan-inodes.sh +++ b/tests/tests/orphan-inodes.sh @@ -82,7 +82,15 @@ done # wait for orphan scans to run t_set_all_sysfs_mount_options orphan_scan_delay_ms 1000 # also have to wait for delayed log merge work from mount -sleep 15 +C=120 +while (( C-- )); do + brk=1 + for ino in $inos; do + inode_exists $ino && brk=0 + done + test $brk -eq 1 && break + sleep 1 +done for ino in $inos; do inode_exists $ino && echo "$ino still exists" done