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

baibaichen pushed a commit to branch ansi-test-trigger
in repository https://gitbox.apache.org/repos/asf/gluten.git

commit 40029be36849146b5be6c4da41a90f0ebbcf9b28
Author: Chang chen <[email protected]>
AuthorDate: Sun Apr 26 23:11:17 2026 +0800

    [GLUTEN-10134][VL] Fix --run parsing to use head -1 with explicit fallback
    
    grep -m1 stops after matching 1 line, but multiple --run tokens on the
    same line still produce multiple outputs. Use head -1 to guarantee a
    single value, with explicit empty check for inputs.run_id fallback
    (pipeline exit code from head would mask grep failure).
    
    Co-Authored-By: Claude Opus 4 <[email protected]>
---
 .github/workflows/velox_backend_ansi.yml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/velox_backend_ansi.yml 
b/.github/workflows/velox_backend_ansi.yml
index 7bd4cdc990..019031c4ed 100644
--- a/.github/workflows/velox_backend_ansi.yml
+++ b/.github/workflows/velox_backend_ansi.yml
@@ -76,7 +76,8 @@ jobs:
         run: |
           AI_MODEL=$(echo "$COMMENT" | grep -oP '(?<=--model\s)\S+' || echo "")
           echo "ai_model=${AI_MODEL}" >> $GITHUB_OUTPUT
-          RUN_ID=$(echo "$COMMENT" | grep -oPm1 '(?<=--run\s)\d+' || echo "${{ 
inputs.run_id }}")
+          RUN_ID=$(echo "$COMMENT" | grep -oP '(?<=--run\s)\d+' | head -1)
+          [[ -z "$RUN_ID" ]] && RUN_ID="${{ inputs.run_id }}"
           if [[ -n "$RUN_ID" ]] && ! [[ "$RUN_ID" =~ ^[0-9]+$ ]]; then
             echo "::error::Invalid run_id: ${RUN_ID}"; exit 1
           fi


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to