From 0b9edc9e844cb342a510a38cd770d6c8d4103ee0 Mon Sep 17 00:00:00 2001 From: david-streamlio <35466513+david-streamlio@users.noreply.github.com> Date: Thu, 9 Jul 2026 10:16:38 -0700 Subject: [PATCH] [fix][ci] Fix Tune Runner VM failure when no sd* block devices exist The tune-runner-vm action fails on current GitHub runner images because the /sys/block/sd*/queue/discard_max_bytes glob no longer matches any devices, causing tee to exit 1 and abort the job before tests run. Sync the fix from apache/pulsar master: glob all block devices and guard with a file-existence check. --- .github/actions/tune-runner-vm/action.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/actions/tune-runner-vm/action.yml b/.github/actions/tune-runner-vm/action.yml index 00eb084990..d0d93ef110 100644 --- a/.github/actions/tune-runner-vm/action.yml +++ b/.github/actions/tune-runner-vm/action.yml @@ -53,8 +53,10 @@ runs: fi # disable discard/trim at device level since remount with nodiscard doesn't seem to be effective # https://www.spinics.net/lists/linux-ide/msg52562.html - for i in /sys/block/sd*/queue/discard_max_bytes; do - echo 0 | sudo tee $i + for i in /sys/block/*/queue/discard_max_bytes; do + if [ -f "$i" ]; then + echo 0 | sudo tee "$i" + fi done # disable unnecessary timers sudo systemctl stop fstrim.timer fstrim.service \