mirror of
https://github.com/devvmhq/devvm.git
synced 2026-12-01 16:27:33 -10:00
The CLI tests' devvm is built with -cover, and every script set one GOCOVERDIR. Go names a run's temporary meta-data file by the time (time.Now().UnixNano(), microseconds on macOS) with no process ID, so two devvm runs from parallel scripts that start together write the same temporary file; the first renames it and the second's rename fails, and devvm prints "coverage meta-data emit failed" on stderr, failing any script that checks stderr (seen in ls.txtar and version.txtar). - script_test.go: scriptCoverDir sets GOCOVERDIR to a folder of the script's own (os.MkdirTemp under CLI_GOCOVERDIR). - scripts/test.sh: covdata merge takes the unit folder and every non-empty script folder as one comma-separated -i list, so percent and the baselines read the same counters as before. - Contributing's Coverage section says each script writes to a folder of its own, and why. Co-Authored-By: Claude Opus 5.5 <[email protected]>