From: Yu Watanabe Date: Fri, 4 Apr 2025 15:21:16 +0000 (+0900) Subject: TEST-64-UDEV-STORAGE: enable debug logging and set timeout X-Git-Tag: v258-rc1~912 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c3c905c6c1391a917919563bd6b05c479dc0fbcb;p=thirdparty%2Fsystemd.git TEST-64-UDEV-STORAGE: enable debug logging and set timeout For debugging the following failure: ``` 41/95 systemd:integration-tests / TEST-64-UDEV-STORAGE-mdadm_basic TIMEOUT 1800.02s killed by signal 15 SIGTERM [ 30.902392] TEST-64-UDEV-STORAGE.sh[517]: + sfdisk --wipe=always /dev/md/mdmirpar [ 31.326202] TEST-64-UDEV-STORAGE.sh[517]: + udevadm trigger --settle --parent-match /dev/md/mdmirpar [ 900.971338] kauditd_printk_skb: 10 callbacks suppressed [ 900.971343] audit: type=1130 audit(1743767825.783:146): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-tmpfiles-clean comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success' [ 900.974057] audit: type=1131 audit(1743767825.786:147): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-tmpfiles-clean comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success' Finishing after writing 68494 entries qemu-kvm: terminating on signal 15 from pid 131949 (/usr/bin/python3) ``` --- diff --git a/test/units/TEST-64-UDEV-STORAGE.sh b/test/units/TEST-64-UDEV-STORAGE.sh index 52914c4b3e7..e868104d7b6 100755 --- a/test/units/TEST-64-UDEV-STORAGE.sh +++ b/test/units/TEST-64-UDEV-STORAGE.sh @@ -1165,7 +1165,9 @@ uuid="deadbeef-dead-dead-beef-111111111111", name="mdpart1", size=8M uuid="deadbeef-dead-dead-beef-222222222222", name="mdpart2", size=32M uuid="deadbeef-dead-dead-beef-333333333333", name="mdpart3", size=16M EOF - udevadm trigger --settle --parent-match "$raid_dev" + # FIXME: For some reasons, the command sometimes stuck and the test will timeout. + # Let's enable debug logging and set a timeout to make not consume CI resource. + SYSTEMD_LOG_LEVEL=debug timeout 30 udevadm trigger --settle --parent-match "$raid_dev" udevadm wait --settle --timeout=30 "/dev/disk/by-id/md-uuid-$uuid-part2" mkfs.ext4 -L "$part_name" "/dev/disk/by-id/md-uuid-$uuid-part2" udevadm trigger --settle "/dev/disk/by-id/md-uuid-$uuid-part2"