Keep make test under 2 GB of memory (closes #344) #404

Merged
clawbot merged 1 commits from issue-344-test-memory into next 2026-10-02 03:02:29 +02:00
1 Commits
Author SHA1 Message Date
sneak 508f246b5b Keep make test under 2 GB of memory (closes #344)
check / check (push) Successful in 3m31s
Every test that starts a database hashed the bootstrap admin password
with Argon2id at 64 MB, which under -race holds about 150 MB per hash,
across dozens of parallel tests. HashPassword now hashes at 1 MB when
testing.Testing() reports a test binary, so every test package gets
the lower cost and a binary built by go build never does. One test
still hashes and verifies through HashPassword at the shipped
parameters, which are unchanged.

script/test also runs at most four packages and eight parallel tests
at once: unbounded, a many-core host linked and ran every test binary
together.

Model: opus-5-5
2026-10-01 23:22:59 +00:00