fabro/lib/crates/fabro-server/tests/it
Bryan Helmkamp 54a23707d9
Add event append race regression test (#379)
## Summary

Adds a black-box server API regression test for the per-run event append
race observed as projection cache sequence gaps and non-contiguous event
streams.

The test creates a run through the public API, simulates a server
restart with a fresh AppState over the same backing object store, then
concurrently appends events through `POST /api/v1/runs/{id}/events`. The
expected contract is that all appends succeed and the resulting event
sequence is durable and contiguous.

## Test Plan

- `cargo nextest run -p fabro-server --features test-support --test it
concurrent_event_appends_after_restart_keep_projection_cache_contiguous`

Expected current result: fails RED, demonstrating the existing race.
Example observed failure showed duplicate/missing seqs such as `[1, 2,
3, 3, 4, 4, ...]` instead of a contiguous sequence through 66.
2026-05-23 19:25:41 -04:00
..
api Add event append race regression test (#379) 2026-05-23 19:25:41 -04:00
scenario Replace queued with pending/runnable and add approval flow (web + API s… (#371) 2026-05-23 15:34:33 -04:00
event_pagination.rs Render stage activity from scoped events endpoint (#212) 2026-05-05 09:16:52 -04:00
helpers.rs Replace run-scoped sandbox config with named environments (#360) 2026-05-23 13:03:21 -04:00
main.rs Render stage activity from scoped events endpoint (#212) 2026-05-05 09:16:52 -04:00
openapi_conformance.rs refactor(server): gate test app state helpers 2026-05-02 13:02:41 -04:00
pagination.rs Render stage activity from scoped events endpoint (#212) 2026-05-05 09:16:52 -04:00