Files
devvm/scripts
w3cjandClaude Opus 5.5 6f9259b514 test: give each CLI test script its own coverage folder
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]>
2026-11-02 22:04:17 -07:00
..