Public: anyone can read this; the crew can change it.
Full suite red: test/flows-actions.test.ts #17880
Merged 22h 11m ago, live in production
test/flows-actions.test.ts now seeds the preview world once and copies it for each test. The file takes 2.8 s, down from 9.4 s before. The --rerun-each 3 run passed 24 of 24 earlier, and the plain run still passes 8 of 8 after the comment rewrap.
-
Reviews
ApprovedTest-only change. The seed now runs once in beforeAll and each test gets a copy of the closed data dir. The suite passed 3 runs in a row here (8 pass, 3-4s each), so it is not flaky. The seed is closed before it is copied and removed in afterAll. No page, API or terminal change, so no both-doors work is needed. Two things I would do next: (1) pass preserve-mode options to cpSync if a test ever depends on file modes (the file_modes warning shows the copied key file reads as 644 and gets reset to 0600); (2) if other suites repeat the seed-and-copy pattern, move it into a shared test helper.
-
Checks
shipped production is serving it deploy 5ce50ab
-
History
- Rewrap comments (#17879) bbc1ded
- flows-actions test seeds the preview once and copies it per test (#17879) 8fb742b
- Full suite red: test/looks-owner.test.ts (#17878) ba55044
- The checkouts sweep leaves a running check's own TMPDIR (<run>.tmp) alone (su… (#17876) 8e4596d
- Flaky test: a jar is checked and in place before the up, readable, and the old AutoStopper is aside (#17874) 9c0dc23
- family-words reads src/ once, not once per sentence, and leaves SLOW (#17872) 49845bf
- Full suite red: test/security-floor-routes.test.ts (#17870) 27f5834
- An awaited Modrinth lookup waits for the one a sync already began, not "Mods:… (#17868) a544da9
- Full suite red: 3 files in check run 01m8xkn7yvvjtbd07e5qhk1rk4 (#17866) c4333e8
- Sentinel: snapshot-failed was degraded 33 minutes today: The last snapshot failed: list chunks/ failed after 5 attempts: an unexpected error has occurred. The newest that lande… (#17863) 5fa2c54
- Sentinel: cloud-watch:digitalocean/prod was degraded 39 minutes today: The forge could not read digitalocean/prod to check it for stray machines (no answer in time); it is not known to be cl… (#17861) de6ec9b
- Cloud account digitalocean/prod shows more than the forge made (#17857) 137546a
- Cloud account hetzner/prod shows more than the forge made (#17856) be9fa4e
- A repository can have its own account order, tried there without reordering the forge (#17843) 14bd626
- Sentinel: memory-growth was degraded 14 minutes today: The forge's own memory is 4774 MiB, over twice its first-hour 1779 MiB and past the 2176 MiB more its database caches m… (#17860) 8d72195
- Sentinel: backup was degraded 43 minutes today: Primary (s3.us-east-005.backblazeb2.com/openplatform-dr-backups) cannot be read: names snapshots/ failed after 5 attemp… (#17858) ddebb72
- Sentinel: cloud-watch:hetzner/prod was degraded 39 minutes today: The forge could not read hetzner/prod to check it for stray machines (no answer in time); it is not known to be clean. … (#17859) 5c2509f
- A Talk reply names its model, and a turn that reaches its limit says so and offers to go on (#17842) 01d8b2c
- Full suite red: test/page-titles.test.ts (#17847) 63507b9
- The most frequent red checks (client JS/CSS ceilings, batched rows, look prerequisites) are fixed at their cause, no rule loosened (#17836) 339cc69
test/flows-actions.test.tsnow seeds the preview world once and copies it for each test. The file takes 2.8 s, down from 9.4 s before. The--rerun-each 3run passed 24 of 24 earlier, and the plain run still passes 8 of 8 after the comment rewrap.tsc --noEmitis clean, andbun scripts/gate.ts --fixrewrapped one comment, which I committed.Cause:
beforeEachranseedPreviewbefore every test, about 1.4 s each. The first test paid that in its own CPU time and went over the 2 s budget.Change: the first
seedPreviewnow runs once inbeforeAlland the app is closed. Each test then copies that data directory and boots the app and servers on the copy, so tests stay isolated. The test bodies are unchanged. Onlytest/flows-actions.test.tschanged.Left out: I did not make
seedPreviewitself cheaper. I did not run the repeated runs against the full suite's sharding either, since the forge runs that on push.To try it:
bun test ./test/flows-actions.test.ts --rerun-each 10.Closes #17879