]> git.giacomolli.uk - onechat/commit
Run a short replay outside the flake check
authorAnderson A. Giacomolli <redacted>
Sun, 8 Nov 2026 12:23:29 +0000 (09:23 -0300)
committerAnderson A. Giacomolli <redacted>
Sun, 8 Nov 2026 12:23:29 +0000 (09:23 -0300)
commit9bd91a76e6277f7716e206ddb665dc5fe6f5b583
tree8230f231e4c4b4553bdf39491be4c0a46f4b42b4
parent5bb22ac2fc501bad7327c119f1d3ac514e3d5398
Run a short replay outside the flake check

The replay of the synthetic log runs 5,000 messages with -short and
100,000 messages without it. bin/check and the test run of nix build
pass -short, so bin/check takes about 20 seconds instead of more than
two minutes under the race detector. A new flake check runs only
TestReplaySyntheticLog without -short, so nix flake check still runs the
full replay and does not run the other tests a second time.

The test uses testing.Short, because -short is the standard Go flag to
make long tests shorter, and go test and buildGoModule pass it without
new code. An environment variable would need its own name and parsing
for the same result. The short replay gives the chat view 26 batches,
and the test still requires at least one batch.

Issue: e4109b7
README.rst
bin/check
flake.nix
nix/package.nix
nix/replay.nix [new file with mode: 0644]
replay_test.go