You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by lh...@apache.org on 2024/03/15 08:38:27 UTC

(pulsar) branch branch-2.10 updated: [fix][ci] Tolerate mount option change failing in CI (#22241)

This is an automated email from the ASF dual-hosted git repository.

lhotari pushed a commit to branch branch-2.10
in repository https://gitbox.apache.org/repos/asf/pulsar.git


The following commit(s) were added to refs/heads/branch-2.10 by this push:
     new 524fae1b004 [fix][ci] Tolerate mount option change failing in CI (#22241)
524fae1b004 is described below

commit 524fae1b004ac7dd2396075cc980ac9ca1ea432b
Author: Lari Hotari <lh...@users.noreply.github.com>
AuthorDate: Mon Mar 11 15:40:54 2024 +0200

    [fix][ci] Tolerate mount option change failing in CI (#22241)
    
    (cherry picked from commit 46a0226efb06fba635c09ec6ed3f81cdd6b5af29)
---
 .github/actions/tune-runner-vm/action.yml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/.github/actions/tune-runner-vm/action.yml b/.github/actions/tune-runner-vm/action.yml
index e8914dbe74f..b30a5e06616 100644
--- a/.github/actions/tune-runner-vm/action.yml
+++ b/.github/actions/tune-runner-vm/action.yml
@@ -47,8 +47,8 @@ runs:
             # tune filesystem mount options, https://www.kernel.org/doc/Documentation/filesystems/ext4.txt
             # commit=999999, effectively disables automatic syncing to disk (default is every 5 seconds)
             # nobarrier/barrier=0, loosen data consistency on system crash (no negative impact to empheral CI nodes)
-            sudo mount -o remount,nodiscard,commit=999999,barrier=0 /
-            sudo mount -o remount,nodiscard,commit=999999,barrier=0 /mnt
+            sudo mount -o remount,nodiscard,commit=999999,barrier=0 / || true
+            sudo mount -o remount,nodiscard,commit=999999,barrier=0 /mnt || true
             # 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