Commit e89b6ee
authored
Add scheduled vLLM torch-nightly regression triage (#8447)
## Summary
vLLM's Buildkite pipeline runs three scheduled builds on `main`, all
from the same `HEAD`:
| schedule (America/Los_Angeles) | message | distinguishing env |
|---|---|---|
| `0 23 * * 1,2,4` | `Full CI run torch nightly` | **`TORCH_NIGHTLY=1`**
|
| `0 23 * * *` | `Full CI run - nightly` | — |
| `0 14 * * *` | `Full CI run - daily` | — |
The first two share the 23:00 slot, so on Mon/Tue/Thu they fire **in the
same second on the same commit**, differing only by that one env var.
That pair is a controlled A/B: a job failing in the torch-nightly build
and passing in its sibling is attributable to torch, with the vLLM
variable held constant. Nothing was consuming that signal.
## What this adds
**`tools/torchci/vllm_torch_nightly_triage.py`** — finds the newest
torch-nightly build with a same-commit baseline and:
- buckets every job into **regressed** / **fails on both**
(pre-existing) / **baseline-only**
- excludes `soft_failed` (non-blocking by design) and `retried`
(superseded attempts, otherwise double-counted)
- clusters regressions by job-name family, collapsing shard indices and
hardware qualifiers
- flags agent concentration — failures piled onto one host usually mean
a sick agent, not a torch regression
- optionally fetches one representative Buildkite log per cluster,
ANSI/BKT-marker-stripped and tail-trimmed
**`.github/workflows/vllm-torch-nightly-triage.yml`** — two jobs:
1. `triage` — runs the above Tue/Wed/Fri at 12:00 UTC, after the nightly
has finished. Prints to the job log and run summary, uploads report +
logs as an artifact.
2. `root-cause` — analyses the result with the checked-in
`.claude/skills/vllm-pytorch-ci-triage` skill.
**Reports only. Files nothing anywhere.**
## Why the A/B earns its keep
On build 82195 a naive "what failed on torch nightly" view showed 57
failures. **21 of those fail identically on the baseline** — including
six `Distributed Compile*` timeouts that looked like a
distributed-compile regression and are pre-existing. They would have
been filed upstream wrongly.
## Security posture of the agent job
Logs are fetched by the `triage` job, not the model. So:
- the read-only Buildkite token never enters the agent's tool surface
- the model runs `--allowedTools "Read,Glob,Grep,Write"` — no Bash, no
network, no credentials
- `root-cause` holds no ClickHouse or Buildkite secrets, only Bedrock
via OIDC
- the prompt marks all log content as untrusted data, never instructions
Follows the `greenlight-pr-review.yml` pattern: `claude-code-action`
directly with a literal prompt, `environment: bedrock`. That works from
`schedule`, unlike `_claude-code.yml`, whose gate requires an `@claude`
mention in an issue body.
## Test plan
Verified against live ClickHouse and Buildkite. Latest pair, #82454 vs
#82455 at commit `50c51682a18c`:
```
27 job(s) regressed on torch nightly #82454 versus baseline #82455
- regressed (fails here, passes on baseline): 27
- fails on both (pre-existing, not torch): 6
- fails on baseline only: 4
Failures span 20 agents (heaviest h200-ci-5 with 5). No single-host
concentration, consistent with real signal.
```
Log fetching returns 22 cleaned cluster logs with real failures
surfacing, e.g. `FAILED
v1/test_tensor_ipc_queue.py::test_multiple_api_servers_to_engine -
_queue.Empty`.
CI-verified on a temporary `pull_request` trigger before it was removed:
`triage` green, `root-cause` correctly skipped. Locally clean under the
repo's own linter adapters (PYFMT with the pinned
`ruff==0.14.4`/`usort==1.0.8.post1`, RUFF, MYPY) and `shellcheck` on
every `run:` block.
Reuses the existing `CLICKHOUSE_HUD_USER_*` secrets — no new ClickHouse
credentials.
## Known limitations
This lands as a working example; a follow-up will replace the analysis
core with the substantially better engine in
[morrison-turnansky/vllm-nightly-audit](https://github.com/morrison-turnansky/vllm-nightly-audit),
which compares **test signatures** (`test_id`, `exception_class`,
`exception_chain`) rather than job names, classifies
`NEW`/`PRE_EXISTING`/`NO_BASELINE` against ≥3 main builds, and detects
near-misses.
- **Clustering is weak.** 27 regressions produce ~23 clusters.
`Multi-Modal Processor (CPU) 1-4` collapses correctly, but the
NixlConnector family does not, because its distinguishing token is a
prefix. Keyword clustering would fix it and risks merging unrelated
jobs, so this is deliberately conservative — and superseded by the
follow-up.
- **`BUILDKITE_CI_READ_ONLY` currently returns 401** on every log fetch.
Detection is unaffected, but `root-cause` gates on `log_count != '0'`
and will skip until the token is fixed (likely a trailing newline,
missing `read_build_logs`, or the `vllm` org not selected).
- **`root-cause` is unverified.** It cannot run on PRs by design, so
first real exercise is a `workflow_dispatch` after merge.
- A read-only Buildkite token cannot retry jobs, so the skill's Step 6.5
auto-restart is inert. That is intentional: a cron silently retrying
vLLM CI is a side effect on someone else's infrastructure.1 parent 11bc878 commit e89b6ee
2 files changed
Lines changed: 640 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
0 commit comments