From 77cd9605244a0df1f553af3b3e7e899b0088fb1b Mon Sep 17 00:00:00 2001 From: Mengqing Cao Date: Sat, 27 Dec 2025 17:30:34 +0800 Subject: [PATCH] [Misc] fast fail for exiting if tools/install_flash_infer_attention_score_ops_a2.sh (#5422) ### What this PR does / why we need it? Use `set -euo pipefail` to exit if tools/install_flash_infer_attention_score_ops_a2.sh failed in any line - vLLM version: release/v0.13.0 - vLLM main: https://github.com/vllm-project/vllm/commit/81786c87748b0177111dfdc07af5351d8389baa1 --------- Signed-off-by: MengqingCao Signed-off-by: Mengqing Cao Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> --- tools/install_flash_infer_attention_score_ops_a2.sh | 2 ++ tools/install_flash_infer_attention_score_ops_a3.sh | 2 ++ 2 files changed, 4 insertions(+) diff --git a/tools/install_flash_infer_attention_score_ops_a2.sh b/tools/install_flash_infer_attention_score_ops_a2.sh index aa3126bc..2e4589a8 100644 --- a/tools/install_flash_infer_attention_score_ops_a2.sh +++ b/tools/install_flash_infer_attention_score_ops_a2.sh @@ -18,6 +18,8 @@ # This file is a part of the vllm-ascend project. # +set -euo pipefail +trap 'echo "Error on line $LINENO: command \`$BASH_COMMAND\` failed with exit code $?" >&2' ERR cd /vllm-workspace # download fused_infer_attention_score related source files diff --git a/tools/install_flash_infer_attention_score_ops_a3.sh b/tools/install_flash_infer_attention_score_ops_a3.sh index 1ad0a356..21819c16 100644 --- a/tools/install_flash_infer_attention_score_ops_a3.sh +++ b/tools/install_flash_infer_attention_score_ops_a3.sh @@ -17,6 +17,8 @@ # limitations under the License. # This file is a part of the vllm-ascend project. # +set -euo pipefail +trap 'echo "Error on line $LINENO: command \`$BASH_COMMAND\` failed with exit code $?" >&2' ERR cd /vllm-workspace # download fused_infer_attention_score related source files