Repository navigation
[v5] Give machines an optional display name in the API - #645
Merged
Merged
Conversation
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
force-pushed
the
v5-machine-display-name-server
branch
from
November 4, 2026 05:12
ab539c1 to
75e31cf
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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_namebecomes a reserved machine field name (server, schema editor,convert-v4-mirror), so a suite declaring one would not migrate (D6).POSTandPATCH .../machines/{name}set it (nullclears 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 fromSuiteLabeltoDisplayName.machine.display_nameis creation-only, liketracked: 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=, andGET .../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.schema.d.ts, and the client's test fixture.Tested:
npm run check,npm run test:integration,npm run test:e2e, and theconvert-v4-mirrorlit test.Part of #599.