mirror of
https://github.com/devvmhq/devvm.git
synced 2026-12-01 21:36:40 -10:00
A terminal, an editor or a test harness can give devvm files past the standard three without close-on-exec (testscript's ttyin puts a pty on descriptor 3), and devvm's background processes then held them, keeping that terminal or pipe open as long as they ran: on Linux a script hung until its timeout. devvm now marks every file it was given from descriptor 3 up close-on-exec as it starts (platform.CloseInheritedOnExec, called first in main), which covers every process it starts, Lima's included, and keeps them open itself. TestCloseInheritedOnExec re-runs the test binary with an extra file on descriptor 3, starts a detached process and checks it doesn't hold it (/proc/<pid>/fd on Linux, lsof on macOS); layer_add.txtar now answers yes in a terminal. Co-Authored-By: Claude Opus 5.5 <[email protected]>
44 lines
1.1 KiB
Plaintext
44 lines
1.1 KiB
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/agentlogin 94.4
|
|
internal/backend 95.7
|
|
internal/backend/backendtest 74.4
|
|
internal/backend/lima 88.4
|
|
internal/backend/registry 100.0
|
|
internal/build 87.3
|
|
internal/cli 88.5
|
|
internal/cli/docgen 85.1
|
|
internal/daemon 97.9
|
|
internal/desktop 77.2
|
|
internal/devcontainer 96.8
|
|
internal/fetch 96.6
|
|
internal/from 91.3
|
|
internal/gitprotect 92.2
|
|
internal/hostgit 100.0
|
|
internal/image 97.5
|
|
internal/jsonc 97.1
|
|
internal/msg 68.6
|
|
internal/msg/gen 93.3
|
|
internal/netpolicy 87.4
|
|
internal/paths 97.8
|
|
internal/platform 81.4
|
|
internal/ports 90.0
|
|
internal/project 91.5
|
|
internal/proxy 88.9
|
|
internal/secrets 91.3
|
|
internal/settings 95.3
|
|
internal/shell 100.0
|
|
internal/sshagent 84.2
|
|
internal/sshconfig 88.3
|
|
internal/state 93.8
|
|
internal/stubtest 81.0
|
|
internal/testbuild 100.0
|
|
internal/tools 89.4
|
|
internal/trust 93.9
|
|
internal/ubuntu 92.5
|
|
internal/ui 94.4
|
|
internal/vm 85.6
|
|
internal/vmname 100.0
|
|
internal/vmssh 87.7
|