Skip to content

[v5] Give machines an optional display name in the API - #645

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

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

Conversation

@ldionne

@ldionne ldionne commented Nov 4, 2026 •

Copy link
Copy Markdown
Member

Give machines an optional display name: how the web UI names a machine, which unlike its name may contain / and %, and need not be unique. The API keeps addressing machines by name. This is the server half of #599; the web UI follows in a stacked PR.

  • {suite}.machine.display_name (VARCHAR(256), nullable), with per-suite migration step 9. display_name becomes a reserved machine field name (server, schema editor, convert-v4-mirror), so a suite declaring one would not migrate (D6).
  • POST and PATCH .../machines/{name} set it (null clears it on PATCH); every machine response carries it. Same rules as a suite's display name (null, or 1 to 256 characters, no NUL): the shared type is renamed from SuiteLabel to DisplayName.
  • A run submission's machine.display_name is creation-only, like tracked: ignored for an existing machine, never matched and never filled in, so a submission cannot undo a display name changed or cleared through PATCH (O1, O2).
  • GET .../machines?search=, and GET .../runs?search= through a run's machine, also match it (O4).
  • lnt v5 convert-v4-mirror: a machine whose name had a / or % replaced gets its v4 name as its display name, with the -import-<id> suffix its v5 name has, if any, so duplicates keep distinct labels.
  • Spec: D5, O1, O2, O4, E2. Regenerated schema.d.ts, and the client's test fixture.

Tested: npm run check, npm run test:integration, npm run test:e2e, and the convert-v4-mirror lit test.

Part of #599.

Give machines an optional display name: how the web UI names a machine,
which unlike its name may contain '/' and '%', and need not be unique.
The API keeps addressing machines by name. This is the server half of
llvm#599; the web UI follows.

- `{suite}.machine.display_name`, with a per-suite migration step. It is
  now a reserved machine field name, so a suite declaring one would not
  migrate (D6); no known schema does.
- `POST` and `PATCH .../machines` set it (null clears it on PATCH), and
  every machine response carries it.
- A run submission's `machine.display_name` is creation-only, like
  `tracked`: it is ignored for an existing machine, never matched and
  never filled in, so a submission cannot undo a display name changed or
  cleared through PATCH (O1, O2).
- Machine search, and run search through a run's machine, also match it
  (O4).
- It follows the rules of a suite's display name: the shared type is
  renamed from `SuiteLabel` to `DisplayName`.
- `lnt v5 convert-v4-mirror` gives a machine whose name had a '/' or '%'
  replaced its v4 name as its display name, with the duplicate suffix
  its v5 name has, if any, so that duplicates stay apart.

Part of llvm#599.
@ldionne
ldionne force-pushed the v5-machine-display-name-server branch from ab539c1 to 75e31cf Compare November 4, 2026 05:12
@ldionne
ldionne merged commit fb1d53f into llvm:main Nov 4, 2026
23 checks passed
@ldionne
ldionne deleted the v5-machine-display-name-server 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.

1 participant