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 066b0881f88cc20aad001428670de182d9aba905
Author: Chang chen <[email protected]>
AuthorDate: Sun Apr 26 23:26:58 2026 +0800

    [GLUTEN-10134][VL] Optimize AI context size and comment lookup efficiency
    
    Cap test names per group to 10, remove redundant failure_count field,
    and use reverse-sorted single-page comment lookup instead of paginating all 
comments.
    
    Co-Authored-By: Claude Opus 4 <[email protected]>
---
 .github/skills/ansi-analysis/analyze-ansi.py | 4 ++--
 .github/workflows/velox_backend_ansi.yml     | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/.github/skills/ansi-analysis/analyze-ansi.py 
b/.github/skills/ansi-analysis/analyze-ansi.py
index 43173c9c9f..9492cc36eb 100644
--- a/.github/skills/ansi-analysis/analyze-ansi.py
+++ b/.github/skills/ansi-analysis/analyze-ansi.py
@@ -437,7 +437,8 @@ def _build_ai_context(summary, suites):
         suite = f["suite"].split(".")[-1]
         key = (cause, suite)
         groups[key]["count"] += 1
-        groups[key]["tests"].append(f["test"])
+        if len(groups[key]["tests"]) < 10:
+            groups[key]["tests"].append(f["test"])
         if not groups[key]["sample_msg"]:
             groups[key]["sample_msg"] = _extract_short_message(
                 f.get("message", ""))[:120]
@@ -464,7 +465,6 @@ def _build_ai_context(summary, suites):
     output = {
         "records": summary["json_record_count"],
         "by_color": json_colors,
-        "failure_count": len(summary["failures"]),
         "failures": grouped_failures,
         "categories": dict(compact_cats),
     }
diff --git a/.github/workflows/velox_backend_ansi.yml 
b/.github/workflows/velox_backend_ansi.yml
index 019031c4ed..8d290a91ba 100644
--- a/.github/workflows/velox_backend_ansi.yml
+++ b/.github/workflows/velox_backend_ansi.yml
@@ -570,9 +570,9 @@ jobs:
             RUN_ID="$EXPLICIT_RUN_ID"
           else
             echo "Searching PR #${PR_NUM} comments for latest full-mode run..."
-            RUN_ID=$(gh api 
"repos/${REPO}/issues/${PR_NUM}/comments?per_page=100" --paginate \
+            RUN_ID=$(gh api 
"repos/${REPO}/issues/${PR_NUM}/comments?per_page=100&sort=created&direction=desc"
 \
               --jq '.[] | select(.user.login == "github-actions[bot]") | 
select(.body | test("ansi-mode:full ansi-run:[0-9]+")) | .body' \
-              | grep -oP 'ansi-run:\K[0-9]+' | tail -1 || echo "")
+              | grep -oP 'ansi-run:\K[0-9]+' | head -1 || echo "")
             if [[ -n "$RUN_ID" ]]; then
               echo "Found run_id=${RUN_ID} from PR comment"
             fi


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

Reply via email to