Skip to content

feat(instances): Add the remaining boot timing fields - #543

Open
jedevc wants to merge 3 commits into
prod-stagingfrom
jedevc/instance-timing
Open

jedevc wants to merge 3 commits into
prod-stagingfrom
jedevc/instance-timing

Conversation

@jedevc

@jedevc jedevc commented Oct 9, 2026

Copy link
Copy Markdown
Member

The API has had a bunch of boot timing fields the CLI never showed: the developer-only vmm_* stages, plus start_prereq_time_us, vmm_prestart_time_us and checkpoint_time_us which only got into the spec with https://github.com/unikraft-cloud/platform-api/pull/22. Now -f timing shows the whole start sequence in order.

Also fixes timing fields the API never sent rendering as 0s when explicitly selected, since they're now mirrored into pointers.

jedevc added 3 commits October 9, 2026 15:29
Picks up the start_prereq_time_us, vmm_prestart_time_us and
checkpoint_time_us instance fields that the spec only just started
documenting.

Signed-off-by: Justin Chadwell <justin@unikraft.com>
The platform only emits uptime, boot and net times once they are
known, but the CLI mirrored them into plain durations, so a field the
API never sent rendered as 0s whenever it was explicitly selected.

Mirror them into pointers instead, so a missing field stays nil and
prints blank, while a genuine zero still shows as 0s.

Signed-off-by: Justin Chadwell <justin@unikraft.com>
The API reports the whole start sequence as offsets from the start
request, but the CLI only surfaced boot and net time, so the stages
before them were invisible.

Mirror start-prereq, vmm-prestart, vmm-start, vmm-load and vmm-ready
into the timing group, ordered as the timeline they form, and add the
template and checkpoint creation times to their own resources. They
are all long fields rather than hidden: the vmm ones are developer
only on the platform side, so for everyone else they are simply
absent.

Signed-off-by: Justin Chadwell <justin@unikraft.com>
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