Run the tests under the race detector, in Docker (closes #23) #40

Merged
clawbot merged 1 commits from issue-23-race-in-docker into next 2026-10-06 13:48:24 +02:00
1 Commits
Author SHA1 Message Date
clawbot 3bf2079492 Run the tests under the race detector, in Docker (closes #23)
check / check (push) Successful in 20s
check / check (pull_request) Successful in 24s
script/test is now the standard script: it builds only the test stage
of the Dockerfile, without the build cache, so tests no longer run on
the host. That stage calls go test -race -cover directly, with a
verbose rerun on failure, on the Debian-based golang image, which has
the C toolchain -race needs.

The test stage no longer copies from the lint stage, so script/test
builds the tests alone. A new final stage copies one file from each of
the two stages; that is what makes a plain docker build, and so
script/cibuild, run both. The README entry for script/test and TODO.md
say what now runs.

Model: opus-5-5
2026-10-06 10:58:00 +00:00