This is an automated email from the ASF dual-hosted git repository.
merlimat pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar-connectors.git
The following commit(s) were added to refs/heads/master by this push:
new 05bc47f4 [fix][ci] Fix Tune Runner VM failure when no sd* block
devices exist (#40)
05bc47f4 is described below
commit 05bc47f4debe8218b4191408cc1889fd321fa4e2
Author: David Kjerrumgaard <[email protected]>
AuthorDate: Thu Jul 9 10:23:40 2026 -0700
[fix][ci] Fix Tune Runner VM failure when no sd* block devices exist (#40)
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 00eb0849..d0d93ef1 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 \