ci: shard test job + cheap argon2 in test mode #13
Reference in New Issue
Block a user
Delete Branch "ci-faster-tests"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
The CI test job runs ~3m, dominated by
internal/server/http(~156s under-race). Two cheap changes here.What
server-http,store, andrest(computed viago list | grep -v). Each shard gets its own runner with all CPUs to itself, so wall time becomesmax(shard)instead of CPU-starved on a single runner.HashPasswordswaps to 8 KiB / 1 iter / 1 lane whentesting.Testing()returns true. Production params untouched.VerifyPasswordreads params from the encoded hash, so existing test call sites work unchanged.Verification
go vet ./...cleaninternal/authtests passinternal/server/http -racelocally: 18.3s (vs 20s baseline) — speedup is small locally because this box has plenty of CPU; on the weak CI runner where each hash costs many multiples more under-race, the impact should be larger