Land batch: #8 PR 10 + #4 PR 7 on 0a964e9a #12

Closed
terra wants to merge 0 commits from terra/batch-8-4 into main
Member

Batch land on main 0a964e9a: macula-services/mcl-bookclub-phoenix#8 (PR 10, mercurius/8-test-tmp-dirs e9cc2372, PASS r=1) then #4 (PR 7, mercurius/4-pr1-test-store 8465878a, PASS r=2). Tip cbe8061c. Refs #8 #4

Batch land on main 0a964e9a: macula-services/mcl-bookclub-phoenix#8 (PR 10, mercurius/8-test-tmp-dirs e9cc2372, PASS r=1) then #4 (PR 7, mercurius/4-pr1-test-store 8465878a, PASS r=2). Tip cbe8061c. Refs #8 #4
HostBookclub.TestStore opens a real reckon-db store in the test VM,
through :reckon_db_sup.start_store/1, under the store id evoq's config
names and in the directory the facade gives it (MCL_DATA_DIR, a fresh
temp dir on every test run). When the umbrella's facade has opened that
store already, the fixture uses it and leaves it open. The initiate,
archive and plan_party desks are now dispatched through the store, and
each case reads its result back off the stream. A division boundary test
keeps the CMD sources free of the read-model library and the mesh SDK.

reckon_db joins host_bookclub as a test-only dependency, at the facade's
requirement (~> 5.11).

Ports, from macula-services/mcl-bookclub 0ce055a:
- apps/host_bookclub/test/host_bookclub_test_store.erl
- apps/host_bookclub/test/initiate_bookclub_tests.erl (store_test_, the CMD mesh boundary test)
- apps/host_bookclub/test/archive_bookclub_tests.erl (store_test_)
- apps/host_bookclub/test/plan_party_tests.erl (store_test_)

Refs macula-services/mcl-bookclub-phoenix#4
config/runtime.exs gives every :test run a fresh
mcl_bookclub_test_<unique> dir under System.tmp_dir!() and nothing
removed it. It now registers System.at_exit/1 for that exact dir, so
it goes once the last suite in the VM is done, pass or fail, without
touching the exit code. A per-app ExUnit.after_suite would remove it
under the next app's open stores in the umbrella run.

Refs macula-services/mcl-bookclub-phoenix#8
Refs macula-services/mcl-bookclub-phoenix#4
Merge remote-tracking branch 'origin/main' into mercurius/8-test-tmp-dirs
All checks were successful
c4 model / c4-model-1 (pull_request) Successful in 2s
c4 model / c4-model (pull_request) Successful in 0s
ci / gates (OTP 28.4.3 / Elixir 1.18.4) (pull_request) Successful in 10m22s
9a60c0819a
TestStore.stream/1 called :reckon_db_streams.read/5, which Dialyzer cannot
see: reckon_db is outside the PLT (no debug_info). It now reads through
:evoq_event_store.read/5, the path an aggregate loads from, so the store
cases read each event as evoq's flat map instead of reckon_gater's #event{}
record, and the record macro is gone.

Refs macula-services/mcl-bookclub-phoenix#4
The test run's data dir gets a random name, not System.unique_integer
All checks were successful
c4 model / c4-model-1 (pull_request) Successful in 3s
c4 model / c4-model (pull_request) Successful in 0s
ci / gates (OTP 28.4.3 / Elixir 1.18.4) (pull_request) Successful in 6m44s
6700f1f9ae
unique_integer is unique only inside one VM and starts near the same value
in every fresh one, so two test runs at once could share a dir, and the
at_exit rm_rf of the first to exit would delete the other's live stores
(review r1 of macula-services/mcl-bookclub-phoenix#8).
Merge remote-tracking branch 'origin/main' into mercurius/4-pr1-test-store
All checks were successful
c4 model / c4-model-1 (pull_request) Successful in 6s
c4 model / c4-model (pull_request) Successful in 0s
ci / gates (OTP 28.4.3 / Elixir 1.18.4) (pull_request) Successful in 6m56s
8465878a26
Merge remote-tracking branch 'origin/main' into mercurius/8-test-tmp-dirs
All checks were successful
c4 model / c4-model-1 (pull_request) Successful in 3s
c4 model / c4-model (pull_request) Successful in 0s
ci / gates (OTP 28.4.3 / Elixir 1.18.4) (pull_request) Successful in 6m46s
c4 model / c4-model-1 (push) Successful in 4s
c4 model / c4-model (push) Successful in 0s
ci / gates (OTP 28.4.3 / Elixir 1.18.4) (push) Successful in 7m14s
e9cc237263
Land macula-services/mcl-bookclub-phoenix#4 (PASS r=2)
All checks were successful
c4 model / c4-model-1 (pull_request) Successful in 4s
c4 model / c4-model (pull_request) Successful in 0s
ci / gates (OTP 28.4.3 / Elixir 1.18.4) (pull_request) Successful in 7m42s
c4 model / c4-model-1 (push) Successful in 6s
c4 model / c4-model (push) Successful in 0s
ci / gates (OTP 28.4.3 / Elixir 1.18.4) (push) Successful in 11m55s
cbe8061c4d
Author
Member

Superseded on Mars's ruling: PR 10 landed alone by fast-forward (main e9cc2372); PR 7 merges the new main and lands by itself.

Superseded on Mars's ruling: PR 10 landed alone by fast-forward (main e9cc2372); PR 7 merges the new main and lands by itself.
terra closed this pull request 2026-12-01 06:00:20 +00:00
All checks were successful
c4 model / c4-model-1 (pull_request) Successful in 4s
c4 model / c4-model (pull_request) Successful in 0s
ci / gates (OTP 28.4.3 / Elixir 1.18.4) (pull_request) Successful in 7m42s
c4 model / c4-model-1 (push) Successful in 6s
c4 model / c4-model (push) Successful in 0s
ci / gates (OTP 28.4.3 / Elixir 1.18.4) (push) Successful in 11m55s

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
macula-services/mcl-bookclub-phoenix!12
No description provided.