Flaky eunit: bookclub_initiated_v1_to_sqlite_clubs_tests times out on bookclub_read_model_store during replay #11
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Purpose (reliability):
rebar3 euniton the forge gives the same verdict on every run of one commit. A projection test that times out on the shared sqlite store means a green tip can come back red and need a rerun.What happened.
bookclub_initiated_v1_to_sqlite_clubs_tests:an_archived_club_moves_the_row_to_archived/0failed once on a commit that touches no projection code. Every other test passed (Failed: 1, Passed: 128).It was raised in
project_bookclub_test_env:await_rows/3(test_env.erl:64). Just before that,bookclub_archived_v1_to_sqlite_clubs:handle_event/4(src/bookclub_archived/bookclub_archived_v1_to_sqlite_clubs.erl:25) timed out on its owngen_server:call(bookclub_read_model_store, {exec, "INSERT OR REPLACE INTO clubs ...", ...})after 5000 ms, while replaying (replaying => true,global_position => 4). The evoq handler then terminated, and the store's subscription shut down. Around every projection test the log also shows[evoq] Failed to ack progress ... {subscription_not_found, ...}warnings and=ERROR REPORTlines on shared-store teardown, so the projection suites share evoq and sqlite state.Attempts
81754b14(PR #10, mcl-bookclub#9): red as above. The dispatcher ruled one rerun of job 25919: green. The same commit passed eunit twice on msi00 in the same CI image (macula-ci-otp:20261124-0509) that day.Not investigated further: the cause is open. A store process blocked during replay, and teardown order between projection suites, are the two leads the log gives.
Refs macula-services/mcl-bookclub#9