mirror of
https://github.com/devvmhq/devvm.git
synced 2026-12-01 16:27:33 -10:00
Lima is devvm's only backend. The backend architecture stays (Backend, Caps, Features, Review/Require, the registry, backendtest.Fake), so another backend is an addition. State from a smolvm VM reads as an unknown backend (backend_unknown_vm, gc_orphans_unknown); nothing migrates it. The image keys of layers/docker.sh, layers/nix.sh and features/desktop.sh change, so images rebuild once. Lima's port forwarder moves off smolvm's files first: newForwarderCmd and forwarderMain from internal/cli/smolvmports.go to limaports.go, and assets/container/ports.sh to assets/guest/ports.sh (sent by the forwarder at run time, so no image key changes). Removed: - internal/backend/smolvm (4,070 lines with tests), _smolvm-ports, its registry entry, registry.Experimental and backend_experimental. - The decider: backend.Decider/UsesDecider, Confinement.Decider and DeciderToken, internal/proxy/decider.go and its test, the proxy's -decider, -decider-to and -decider-token-file, netpolicy's KeyDeciderPort, KeyDeciderToken and deciderToken, the decider port in vm's forwarding and UsedPorts. - backend.AgentStarter/AgentUnchosen, vm's checkAgentStart and agent_unchosen_stop. - vmssh/key.go (EnsureKey, Public, HostKey, ServicesArgs, Capped). - paths.Smolvm/SmolvmImage and space's smolvm folders; paths.VM's Record, Key, KnownHosts and ProxyURL; project.Detect, which nothing called (a test helper now). - ubuntu.ContainerRepo/ContainerDigest/ContainerRef/ContainerOrigin and bump.sh's ubuntu_image, with its part of bump.txtar. - assets/smolvm/ and assets/container/; the no-init-system branches of layers/docker.sh, layers/nix.sh and guest/sync.sh, and the notes in features/desktop.sh and guest/ca.sh. - Messages: smolvm_* (14), vm_no_ssh, vm_no_sshd, ports_no_ssh, creating_from_image, packing_image, pack_failed, backend_experimental, agent_unchosen_stop; descriptions naming smolvm reworded. - Tests: smolvm.txtar, the smolvm stub, registry, decider, netpolicy and sshagent cases; gc_backend, gc_skipped, gc_orphans and space test a failing or hanging Lima listing instead (the limactl stub's list-fails and list-hangs); the --backend smolvm examples; e2e's --backend smolvm and its section (about 1,130 lines), the smol_* helpers and the link section's backend switch. - Coverage: internal/backend/smolvm's lines in both baselines. - Docs: backends/smolvm.md, internals/smolvm.md, design.md's smolvm notes (Ports on Lima now holds the forwarder's description), the backends table's smolvm column, every page naming smolvm, the README, the home page's backends art, and AGENTS.md's smolvm rows and gotchas (and the Docker bind-mount gotcha, which nothing refers to). Kept: the docker layer, on Lima; --from's local Docker; --backend, the BACKEND column and setup's backend choice, which the next commit removes. Co-Authored-By: Claude Opus 5.5 <[email protected]>
41 lines
1022 B
Plaintext
41 lines
1022 B
Plaintext
# Each package's test coverage, in percent: the unit tests and the CLI tests together.
|
|
# mise run test fails when a package drops below its line; mise run coverage raises them.
|
|
cmd/devvm 100.0
|
|
internal/backend 95.7
|
|
internal/backend/backendtest 46.3
|
|
internal/backend/lima 87.6
|
|
internal/backend/registry 90.5
|
|
internal/backend/vmssh 87.5
|
|
internal/build 87.3
|
|
internal/cli 88.2
|
|
internal/cli/docgen 85.1
|
|
internal/daemon 97.8
|
|
internal/desktop 77.2
|
|
internal/devcontainer 96.8
|
|
internal/fetch 95.2
|
|
internal/from 91.3
|
|
internal/gitprotect 91.1
|
|
internal/hostgit 100.0
|
|
internal/image 96.1
|
|
internal/msg 65.1
|
|
internal/msg/gen 92.5
|
|
internal/netpolicy 87.1
|
|
internal/paths 97.1
|
|
internal/platform 79.7
|
|
internal/project 91.5
|
|
internal/proxy 88.2
|
|
internal/secrets 90.3
|
|
internal/settings 95.0
|
|
internal/shell 100.0
|
|
internal/sshagent 83.4
|
|
internal/sshconfig 84.8
|
|
internal/state 92.6
|
|
internal/stubtest 81.0
|
|
internal/testbuild 100.0
|
|
internal/tools 89.2
|
|
internal/trust 93.9
|
|
internal/ubuntu 92.5
|
|
internal/ui 94.0
|
|
internal/vm 85.1
|
|
internal/vmname 100.0
|