Repository navigation
promote: Merge latest prod-staging changes to prod-stable - #652
Open
unikraft-bot wants to merge 81 commits into
Open
unikraft-bot wants to merge 81 commits into
unikraft-bot wants to merge 81 commits into
Conversation
Signed-off-by: Justin Chadwell <justin@unikraft.com>
Reviewed-by: Cezar Craciunoiu <cezar.craciunoiu@unikraft.com> Approved-by: Cezar Craciunoiu <cezar.craciunoiu@unikraft.com>
The registry mirror was a flat profile key, so no other registry setting could go next to it. `registry_mirror` is now `registry.mirror`. The old key is ignored and dropped on the next save. Signed-off-by: Cezar Craciunoiu <cezar@unikraft.io>
Token requests did not use the insecure client, so a self-signed registry failed at the token step. The authorizer uses the insecure client for the insecure hosts, also for `--insecure-registry`, `--insecure-registries` and the metro index `insecure`. Signed-off-by: Cezar Craciunoiu <cezar@unikraft.io>
Only unikraft.io and index.unikraft.io got the profile token and the mirror, so no other registry host could get them. `registry.host` adds a host that gets both, and `registry.insecure` skips TLS for these hosts. Signed-off-by: Cezar Craciunoiu <cezar@unikraft.io>
Login ignored the registry host that the control plane returns. Login stores it in `registry.host`. It keeps the old value only if the response has none and the control plane is the same. Signed-off-by: Cezar Craciunoiu <cezar@unikraft.io>
A tag can be moved to any commit, so what we run can change under us without a PR. Pin each one by commit instead, with the version in a comment, which Dependabot keeps updating. Signed-off-by: Justin Chadwell <justin@unikraft.com>
A tag can be pushed over, so what we build from can change under us without a PR. Pin the golang and alpine images by digest, and alpine to the patch release its tag points at today. And drop the syntax line. That pulled the latest dockerfile frontend at build time, and the one built into buildkit already has everything we use. Signed-off-by: Justin Chadwell <justin@unikraft.com>
The action installed whatever goreleaser release was latest, so a new release ran in our CI without a PR. Pin the one it resolves to today. Signed-off-by: Justin Chadwell <justin@unikraft.com>
Reviewed-by: Dragos Gheorghioiu <dragosg@unikraft.com> Approved-by: Dragos Gheorghioiu <dragosg@unikraft.com>
Reviewed-by: Cezar Craciunoiu <cezar.craciunoiu@unikraft.com> Approved-by: Cezar Craciunoiu <cezar.craciunoiu@unikraft.com>
Other CLIs cannot import the MCP tools of the CLI, since newMCPServer and the config are under internal/. So add pkg/mcpserver/cli, with New for the server of unikraft mcp and WithToken for the profile of one request. A config with no file is not read again on each tool call. Signed-off-by: Dragos Gheorghioiu <dragosg@unikraft.com>
The tests of pkg/mcpserver were in package mcpserver_test, while most tests of the CLI are in the package that they test. So move them into package mcpserver. The test index is now testDocsIndex, since docs.go has a docsIndex. Signed-off-by: Dragos Gheorghioiu <dragosg@unikraft.com>
Reviewed-by: Justin Chadwell <justin@unikraft.com> Reviewed-by: Cezar Craciunoiu <cezar.craciunoiu@unikraft.com> Approved-by: Justin Chadwell <justin@unikraft.com> Approved-by: Cezar Craciunoiu <cezar.craciunoiu@unikraft.com>
The QEMU setup pulls its binfmt image from Docker Hub. It ran before the login, so the pull was anonymous and could hit the pull rate limit. Move the login above the QEMU setup in both integration jobs. Signed-off-by: Dragos Gheorghioiu <dragosg@unikraft.com>
Reviewed-by: Cezar Craciunoiu <cezar.craciunoiu@unikraft.com> Approved-by: Cezar Craciunoiu <cezar.craciunoiu@unikraft.com>
Scanners flag v1.1.1 for CVE-2026-111497, but that's in the C brotli decoder, not this Go port - the version number just happens to land in the affected range. So bump it out of that range to stop the false positive. Signed-off-by: Justin Chadwell <justin@unikraft.com>
A UDP port could not be published: `-p 53:53/udp` sent `udp` as a handler, and the API rejected it. Take the protocol and IP as `53:53/udp@IP` in --service and --publish. A plain TCP port sends the same request as before, and get shows the protocol and IP of each port. Signed-off-by: Cezar Craciunoiu <cezar@unikraft.io>
Reviewed-by: Alex-Andrei Cioc <andrei.cioc@unikraft.io> Approved-by: Alex-Andrei Cioc <andrei.cioc@unikraft.io>
A bare --remote skipped UNIKRAFT_BUILD_URL, so the build went to the build_url of the profile, or to the public service. Use the variable before the profile when the flag has no value. Closes: TOOL-1875 Signed-off-by: Dragos Gheorghioiu <dragosg@unikraft.com>
The builder commands failed without a build_url in the profile, while build --remote fell back to the public build service. Fall back to https://controlplane.unikraft.com in the builder commands too. Closes: TOOL-1886 Signed-off-by: Dragos Gheorghioiu <dragosg@unikraft.com>
The builder commands took an http:// build service and sent the bearer token of the profile in plain text. unikraft build refused such a URL. Share the scheme check of unikraft build with the builder commands. Closes: TOOL-1897 Signed-off-by: Dragos Gheorghioiu <dragosg@unikraft.com>
The builder commands sent no metro, so the build service used the first metro of the org. A builder in another metro was listed, but could not be inspected, pruned or deleted. Add --metro to create, get, du, prune and delete, and show the metro of each builder in the list. Closes: TOOL-1881 Signed-off-by: Dragos Gheorghioiu <dragosg@unikraft.com>
When the CLI gave up on the progress stream of a remote build, it left the build running. The build kept its builder slot until it failed at the push. Cancel the build on each error of the progress stream, not only when the CLI itself is interrupted. Closes: TOOL-1902 Signed-off-by: Dragos Gheorghioiu <dragosg@unikraft.com>
Ctrl+C during a remote build cancelled the build but printed nothing, so the user could not tell if the cancel had arrived. Log the build ID once the build is cancelled, or a warning that the build may still run. Cancel after the progress display closes, so that the display does not draw over the line. Closes: TOOL-1910 Signed-off-by: Dragos Gheorghioiu <dragosg@unikraft.com>
--build-arg KEY sent an empty value when KEY was not in the environment. The empty value replaced the default of the ARG in the Dockerfile. Leave the argument out when the variable does not exist, as Docker does. Closes: TOOL-1899 Signed-off-by: Dragos Gheorghioiu <dragosg@unikraft.com>
A remote build of a path that does not exist failed with the raw error of stat. Give the message of a local build instead. Closes: TOOL-1904 Signed-off-by: Dragos Gheorghioiu <dragosg@unikraft.com>
The help said that a bare Dockerfile requires --arch. That holds for a local build only: a remote build defaults to x86_64. Closes: TOOL-1894 Signed-off-by: Dragos Gheorghioiu <dragosg@unikraft.com>
The build service refuses an output without a tag, and the help of --output did not say that a remote build needs one. Closes: TOOL-1906 Signed-off-by: Dragos Gheorghioiu <dragosg@unikraft.com>
The value of --remote is optional, so --remote <url> with a space fails to parse. The help did not say to write --remote=<url>. Closes: TOOL-1898 Signed-off-by: Dragos Gheorghioiu <dragosg@unikraft.com>
The help of `--plugin-image` said that it attaches the sandbox plugin, but it only does after a prompt, so never without a terminal. The hint printed then said to edit the instance while it is stopped, which is not needed. Say in the help that it asks first, and end the hint with the restart or start that loads the plugin. Signed-off-by: Dragos Gheorghioiu <dragosg@unikraft.com>
The test added in #672 pasted t.TempDir() into raw JSON, so on Windows the `\U` of `C:\Users` was an invalid escape, and the test failed before it called the tool. Quote the ROM spec with json.Marshal. Signed-off-by: Dragos Gheorghioiu <dragosg@unikraft.com>
Reviewed-by: Cezar Craciunoiu <cezar.craciunoiu@unikraft.com> Approved-by: Cezar Craciunoiu <cezar.craciunoiu@unikraft.com>
Reviewed-by: Cezar Craciunoiu <cezar.craciunoiu@unikraft.com> Approved-by: Cezar Craciunoiu <cezar.craciunoiu@unikraft.com>
Reviewed-by: Justin Chadwell <justin@unikraft.com> Reviewed-by: Alex-Andrei Cioc <andrei.cioc@unikraft.io> Approved-by: Alex-Andrei Cioc <andrei.cioc@unikraft.io> Approved-by: Justin Chadwell <justin@unikraft.com>
A caller that serves more than the protocol, or checks each request first, had to copy Serve to serve its own handler. Add Server.Wrap, whose middleware Serve puts around Handler. Also close idle connections after a minute. Signed-off-by: Dragos Gheorghioiu <dragosg@unikraft.com>
Reviewed-by: Cezar Craciunoiu <cezar.craciunoiu@unikraft.com> Approved-by: Cezar Craciunoiu <cezar.craciunoiu@unikraft.com>
Reviewed-by: Justin Chadwell <justin@unikraft.com> Approved-by: Justin Chadwell <justin@unikraft.com>
Takes the EROFS, tar and CPIO fixes of go-archivefs. Signed-off-by: Alex-Andrei Cioc <andrei.cioc@unikraft.io>
Reviewed-by: Cezar Craciunoiu <cezar.craciunoiu@unikraft.com> Approved-by: Cezar Craciunoiu <cezar.craciunoiu@unikraft.com>
A tool call kept all of its output in memory. A command such as `yes` in a sandbox grew it until the server ran out of memory, also for the other clients of a hosted server. The output now stops at 1 MiB, and the call fails with an error that says the rest is left out. Signed-off-by: Cezar Craciunoiu <cezar@unikraft.io>
`sandbox_exec` ran a command with no time limit unless the call set `timeout_ms`, although the schema promised a default. Such a call held its server resources for as long as the client waited. A command now stops after 5 minutes by default, and `timeout_ms` takes 30 minutes at most. Signed-off-by: Cezar Craciunoiu <cezar@unikraft.io>
Reviewed-by: Dragos Gheorghioiu <dragosg@unikraft.com> Approved-by: Dragos Gheorghioiu <dragosg@unikraft.com>
It brings the size limit on ReadFile, from unikraft-cloud/go-sdk#366. Signed-off-by: Cezar Craciunoiu <cezar@unikraft.io>
sandbox_read loaded the whole file into the memory of the server, which a hosted server shares among its users. A big file could run it out of memory. Read at most the 1 MiB that a tool call can give, and say so in the description of the tool. Signed-off-by: Cezar Craciunoiu <cezar@unikraft.io>
Reviewed-by: Dragos Gheorghioiu <dragosg@unikraft.com> Approved-by: Dragos Gheorghioiu <dragosg@unikraft.com>
It brings the lineage package, from unikraft-cloud/go-sdk#356 and unikraft-cloud/go-sdk#364. Signed-off-by: Cezar Craciunoiu <cezar@unikraft.io>
The panel stack sends every message to all subpanels, so a second reader panel took the reader of the first and doubled its polls. Reader messages now carry their panel, and other panels skip them. Signed-off-by: Cezar Craciunoiu <cezar@unikraft.io>
A reader panel fetched its reader as soon as it was shown, which is costly when the reader lists a whole metro. LoadOnFocus makes a panel fetch it the first time it gets focus. Signed-off-by: Cezar Craciunoiu <cezar@unikraft.io>
The history commands listed only checkpoints, so the clones and templates around an instance stayed hidden. instance, checkpoint and the new template history now draw the whole lineage tree as a graph column of the table. They list the metro and read the checkpoint histories to build it. The TUI shows the graph in a History panel of the instance view. Closes: TOOL-1772 Signed-off-by: Cezar Craciunoiu <cezar@unikraft.io>
Reviewed-by: Jesús Rascón <jesus@unikraft.io> Approved-by: Jesús Rascón <jesus@unikraft.io>
Bump build and image-spec together, since build needs the accessor's resolver from the same commit. Build now returns a Built, with the images or else what the packer pushed. A build here never sets Push, so it only has images. Signed-off-by: Justin Chadwell <justin@unikraft.com>
The sandbox tests ran on plugins/sandbox:latest, which does not know the max_size field from #679, so file reads failed with 400. Use plugins/sandbox:staging, which the plugins repo publishes from its prod-staging branch. Only the staging tests use the plugin. Signed-off-by: Cezar Craciunoiu <cezar@unikraft.io>
Reviewed-by: Dragos Gheorghioiu <dragosg@unikraft.com> Approved-by: Dragos Gheorghioiu <dragosg@unikraft.com>
charmbracelet/lipgloss#746 has merged, so we don't need our fork for the Windows startup hang anymore. No release has it yet though, so pin to the merge commit instead. That moves us past v2.1.1, up from the v2.0.6 we required before. Signed-off-by: Justin Chadwell <justin@unikraft.com>
A node pulls a tag other than latest only once, so the staging node kept an old plugins/sandbox:staging and the tests that start a command failed with 400. Set pull-policy=always on the plugin in the sandbox tests, so the node resolves the tag again on every run. Signed-off-by: Dragos Gheorghioiu <dragosg@unikraft.com>
Reviewed-by: Dragos Gheorghioiu <dragosg@unikraft.com> Approved-by: Dragos Gheorghioiu <dragosg@unikraft.com>
Task kills the clone of the x Taskfile after 5 seconds. On the Windows runners the clone often takes that long, so about one job in ten failed before any test ran. So give it 60 seconds. Signed-off-by: Dragos Gheorghioiu <dragosg@unikraft.com>
Reviewed-by: Cezar Craciunoiu <cezar.craciunoiu@unikraft.com> Approved-by: Cezar Craciunoiu <cezar.craciunoiu@unikraft.com>
Reviewed-by: Cezar Craciunoiu <cezar.craciunoiu@unikraft.com> Approved-by: Cezar Craciunoiu <cezar.craciunoiu@unikraft.com>
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.
Opened automatically by the
promoteworkflow.