Commit 813ce81
authored
Group ARC runners by mt-* label on runners HUD (#8097)
Runners with names like `mt-l-x86aavx2-189-704-a10g-8-c8z6d-runner-4q77c` were all collapsing into the `unknown` bucket on https://hud.pytorch.org/runners/pytorch.
OSDC runners for some reason are registered on GitHub with `labels: []` and `os: "unknown"` (checked by running `orgs/pytorch/actions/runners` API directly). The label-based grouping in `getRunnerGroupLabel` has nothing to match on, and the existing name-based fallback only recognizes dotted prefixes (ROCm-style), so every ARC pod fell through to `unknown`.
Fix: parse the runner name. ARC pod names always have the shape `<scaleset>-<replicaset-hash>-runner-<pod-hash>`, where `<scaleset>` is also what workflows put after `runs-on:` and what is stored in `torchci/lib/arcRunnerMapping.ts`. A new fallback regex `^(mt-.+)-[a-z0-9]+-runner-[a-z0-9]+$` strips the suffix and returns the scaleset, so all pods in the same scaleset now group together.
Today only the `mt-` (Meta) provider prefix is in active use. A `TODO` is left to expand to other providers (`lf/am/in/nv/ib`) and the `c-` canary prefix once those fleets come online. The scaleset format is documented in [pytorch/ci-infra:osdc/docs/runner_naming_convention.md](https://github.com/pytorch/ci-infra/blob/main/osdc/docs/runner_naming_convention.md):
```
[c-]{provider}-[rel-]{os}-[b]{arch}{vendor}{features}-{vcpu}-{memory}[-{gpu}[-{n}]]
```
Also drive-by: the search bar now trims leading/trailing whitespace before filtering, so a stray space no longer breaks results.1 parent f237260 commit 813ce81
2 files changed
Lines changed: 19 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
| 36 | + | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
| |||
55 | 56 | | |
56 | 57 | | |
57 | 58 | | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
58 | 72 | | |
59 | 73 | | |
60 | 74 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
164 | | - | |
165 | | - | |
166 | | - | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
167 | 168 | | |
168 | 169 | | |
169 | 170 | | |
| |||
0 commit comments