Repository navigation
Engine & CLI: restore missing unpacked layers, fix macOS k8s idle CPU (#989), and add kiri engine (#983) - #996
Merged
Merged
Conversation
This was referenced Nov 27, 2026
libracoder
added a commit
that referenced
this pull request
Nov 27, 2026
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.
Summary
start-restores-layer(crates/kiri/src/daemon/vmlink.rs,crates/kiri/src/daemon/engine.rs): Evicts staleVmLink::layersentries viaforget_layers, re-runsrestore_layers, and retriesvm.runonce when the guest reportslayer sha256:… is not unpackedafter an unpacked layer directory disappears on disk while the VM stays up.crates/kiri/src/daemon/engine.rs,crates/kiri-init/src/linux/hostopts.rs,crates/kiri-init/src/linux/container.rs):dev.kiri.k8snode containers frommac_bind_sources()andwsl_bind_sources()sokiri-k8s's/Usersand/Volumes(and/mnt)hostPathmounts no longer open a 50 msFSEvents/ directory-change watcher across the entire host filesystem.10 mstimer coalescing (timerslack_ns = 10000000) tokiri-k8sbeforeexecvesok3s's dozens of staggered100 mswatch_progress/kine/cAdvisortickers coalesce cleanly instead of waking virtual CPUs thousands of times per second./bin/k3s kubectl get svc -Apolling loop instart_k8s_lbwith an event-drivenkubectl get svc -A --watch-onlystream.crates/kiri/src/engine_cli.rs,crates/kiri/src/main.rs,crates/kiri/src/wsl.rs,crates/kiri-win/src/refuse.rs,crates/kiri-win/src/serve.rs,crates/kiri-win/src/engine.rs):kiri engine start | stop | restart | status [--json]across macOS, Linux, and Windows while preservingkiri startfor backwards compatibility.kiri engine status [--json]uses background probes (X-Kiri-Background: 1, and on Windows checks%LOCALAPPDATA%\Kiri\stopped+wsl --list --running --quiet+WaitNamedPipeWwithoutkiri-start) so inspecting engine state never wakes a sleeping VM or boots a stopped WSL distro; exits0forrunning/asleepand1forstopped/not_running.kiri-win.exe(window, tray,%LOCALAPPDATA%\Kiri\stopped, and dedicatedkiriWSL distro termination) whenPOST /kiri/stoparrives from the CLI over\\.\pipe\kiri.Closes #989
Closes #983