Skip to content

[v5] Name machines by their display name in the web UI - #646

Merged
ldionne merged 1 commit into
llvm:mainfrom
ldionne:v5-machine-display-name-client
Nov 4, 2026
Merged

ldionne merged 1 commit into
llvm:mainfrom
ldionne:v5-machine-display-name-client

Conversation

@ldionne

@ldionne ldionne commented Nov 4, 2026 •

Copy link
Copy Markdown
Member

Name a machine by its label (its display name when it has one, its name otherwise) wherever the web UI shows it, per a new AR23 "Machines" section modelled on AR22. Links, URLs, API requests, the text typed to confirm a deletion and the rename prompt keep using names.

  • Name still in view where it matters: machine pickers (comboboxes, the Add indicators list) and the Machines tab show a machine that has a display name by its label followed by its name, muted, since bots, command lines and URLs know it by name, and display names are not unique. Pickers also find a machine, and Enter picks it, by its name.
  • Order and filtering: machines are ordered by label (as suites are), and client-side machine filters (pickers, Commit Detail's machine filter, Regression Detail's indicator filter) match the label or the name.
  • Labels for references by name: runs, indicators and trend items name a machine only (I4), so useMachineLabels(suite) looks labels up in the suite's machine list (the same cached query the pickers use), falling back silently to the name while it loads or if it fails. Series, traces, chips and maps stay keyed by name; tests check that two machines with the same label stay apart (Graph traces and baselines, sparklines, pickers).
  • Machine Detail: the heading names the machine by its label; a new Display name row is edited in place, and empty or whitespace-only input clears it.
  • Seed: two synthetic libcxx machines get a display name, one with a /.
  • Spec: AR23, plus edits to AR14, AR18, TS1, TS3, DT1, DT3, GR1, GR10 and DA2 only where they would otherwise contradict it.

Tested: npm run check, npm run test:e2e (with a new test on a suite of its own: setting a display name with a / on Machine Detail, then seeing it on the Machines tab, the Runs tab and the Graph's picker, and clearing it).

Fixes #599.

@ldionne
ldionne force-pushed the v5-machine-display-name-client branch from 1e06bd5 to cc12076 Compare November 4, 2026 09:58
Name a machine by its label, its display name when it has one and its
name otherwise, wherever the web UI shows it (AR23, a new section modelled
on AR22). Links, URLs, requests, the text typed to confirm a deletion and
the rename prompt keep using names.

- Unlike a suite's, a machine's name stays in view where the user finds a
  machine among others: pickers and the Machines tab show a machine with a
  display name by its label followed by its name, muted, since the name is
  what bots, command lines and URLs know it by, and display names are not
  unique. Pickers also find a machine, and Enter picks it, by its name.
- Machines are ordered by label, as suites are, and client-side machine
  filters match the label or the name.
- Responses that name a machine (runs, indicators, trends) carry its name
  alone (I4), so `useMachineLabels` looks the labels up in the suite's
  machine list, the same cached query the pickers use, falling back to the
  name, silently, while it loads or if it fails. Series, traces, chips and
  maps stay keyed by name, so two machines sharing a label stay apart.
- Machine Detail names the machine by its label in its heading and edits
  its display name in place; emptying the input clears it.
- The seed gives two synthetic machines a display name, one with a '/'.

Page sections of the spec change only where they would contradict AR23:
AR14, AR18, TS1, TS3, DT1, DT3, GR1, GR10 and DA2.

Fixes llvm#599.
@ldionne
ldionne force-pushed the v5-machine-display-name-client branch from cc12076 to 0e717a0 Compare November 4, 2026 12:29
@ldionne
ldionne enabled auto-merge (squash) November 4, 2026 12:30
@ldionne
ldionne merged commit bc34ac2 into llvm:main Nov 4, 2026
9 checks passed
@ldionne
ldionne deleted the v5-machine-display-name-client branch November 4, 2026 12:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[v5] Allow machines to have a display name

1 participant