Skip to content

feat(cmd): Manage builders through the build API - #594

Merged
dragosgheorghioiu merged 1 commit into
prod-stagingfrom
dragosg/tool-1740-restructure-the-clis-buildkit-subcommands
Oct 30, 2026
Merged

dragosgheorghioiu merged 1 commit into
prod-stagingfrom
dragosg/tool-1740-restructure-the-clis-buildkit-subcommands

Conversation

@dragosgheorghioiu

@dragosgheorghioiu dragosgheorghioiu commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

unikraft buildkit created and pruned the builder on the platform itself, so it had to know the build service's instance names and sizes (buildkit-default, 4 vCPUs, 4096 MiB, a 20480 MiB cache).

Rename it to unikraft builder, whose create, du and prune each make one call to the build service at --remote (or $UNIKRAFT_BUILD_URL) through the go-sdk build client, for the builder named by an optional [name] that defaults to default. --metro goes away, since the service decides the metro. There is no buildkit alias: it only shipped in the v0.7.0-staging.2 and .3 prereleases. TestBuilder replaces TestBuildkit and runs against the service at UNIKRAFT_X_TEST_BUILD_URL, like the remote build test.

The commands work in the js CLI too, since unikraft-cloud/go-sdk#305 builds the client for js.

Closes: TOOL-1740

@dragosgheorghioiu
dragosgheorghioiu marked this pull request as draft October 30, 2026 14:53
@dragosgheorghioiu
dragosgheorghioiu force-pushed the dragosg/tool-1740-restructure-the-clis-buildkit-subcommands branch from 504fe7e to 2d30fb2 Compare October 30, 2026 14:58
unikraft buildkit created and pruned the builder on the platform
itself, so it had to know the build service's instance names and
sizes, and it does not find the builders the service now names
remote-builder-<name>.

Rename it to unikraft builder, which asks the build service at
--remote to create a builder, or to report or prune its cache.

Signed-off-by: Dragos Gheorghioiu <dragosg@unikraft.com>
@dragosgheorghioiu
dragosgheorghioiu force-pushed the dragosg/tool-1740-restructure-the-clis-buildkit-subcommands branch from 2d30fb2 to 58caa6e Compare October 30, 2026 15:09
@dragosgheorghioiu
dragosgheorghioiu marked this pull request as ready for review October 30, 2026 15:09
@dragosgheorghioiu

Copy link
Copy Markdown
Contributor Author

this will unblock #592

@craciunoiuc craciunoiuc left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All good here. Thanks!

Reviewed-by: Cezar Craciunoiu <cezar.craciunoiu@unikraft.com>
Approved-by: Cezar Craciunoiu <cezar.craciunoiu@unikraft.com>

@dragosgheorghioiu
dragosgheorghioiu merged commit 86b3b75 into prod-staging Oct 30, 2026
17 of 19 checks passed
@dragosgheorghioiu
dragosgheorghioiu deleted the dragosg/tool-1740-restructure-the-clis-buildkit-subcommands branch October 30, 2026 15:59
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.

2 participants