From 1818db4e54d4d48ca9a04820fa696c308a697cc9 Mon Sep 17 00:00:00 2001 From: Liangsheng Yin Date: Sun, 4 Oct 2026 21:50:53 -0700 Subject: [PATCH] [CI] Drop the echoed command from /rerun-test result replies (#42543) --- .agents/skills/ci-workflow-guide/SKILL.md | 2 +- scripts/ci/utils/slash_command_handler.py | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/.agents/skills/ci-workflow-guide/SKILL.md b/.agents/skills/ci-workflow-guide/SKILL.md index 55aa382107..1aec68cca2 100644 --- a/.agents/skills/ci-workflow-guide/SKILL.md +++ b/.agents/skills/ci-workflow-guide/SKILL.md @@ -396,7 +396,7 @@ group: pr-test-{event_name}-{branch}-{pr_sha}-{stage} | `/tag-and-rerun-ci extra` | Adds both `run-ci` and `run-ci-extra` labels + reruns failed | | `/run-full-ci` | Short form of `/tag-and-rerun-ci extra` (baseline + extra). Alias: `/rerun-full-ci` | | `/run-extra-ci` | Adds both labels + reruns **only** `PR Test Extra`, leaving baseline runs alone. Alias: `/rerun-extra-ci` | -| `/rerun-test [ ...]` | Reruns specific test file(s) via `rerun-test.yml`. A file arg containing a glob metacharacter (`*`, `?`, `[...]`) expands against `test/registered/` and the multimodal test dir to every matching `test_*.py` (e.g. `/rerun-test test_*backend*.py` — wrap in backticks so GitHub doesn't italicize the `*`); matches are deduped, grouped by dispatch shape, and can't carry a `::test` selector. No match → single ⛔ reply, nothing dispatched. Each reply echoes its originating command (`Results for …`) so concurrent commands stay distinguishable | +| `/rerun-test [ ...]` | Reruns specific test file(s) via `rerun-test.yml`. A file arg containing a glob metacharacter (`*`, `?`, `[...]`) expands against `test/registered/` and the multimodal test dir to every matching `test_*.py` (e.g. `/rerun-test test_*backend*.py` — wrap in backticks so GitHub doesn't italicize the `*`); matches are deduped, grouped by dispatch shape, and can't carry a `::test` selector. No match → single ⛔ reply, nothing dispatched. | | `/rerun-group [ ...]` | Expands registered test groups, then reuses `/rerun-test` | Handled by `scripts/ci/utils/slash_command_handler.py` → `.github/workflows/slash-command-handler.yml`. diff --git a/scripts/ci/utils/slash_command_handler.py b/scripts/ci/utils/slash_command_handler.py index 67df8aa293..c61fc67d0e 100644 --- a/scripts/ci/utils/slash_command_handler.py +++ b/scripts/ci/utils/slash_command_handler.py @@ -1589,11 +1589,6 @@ def handle_rerun_test( lines.append(f"⛔ `{r['spec']}`: {r['error']}") body = "\n\n".join(lines) - # Echo the originating command so each reply is self-identifying when - # several /rerun-test commands are in flight at once. Backtick-wrapping - # also keeps any `*` in the pattern from rendering as italics. - if command_label: - body = f"Results for `{command_label}`:\n\n{body}" successes = [dr for dr in dispatch_results if dr["success"]] if successes: