service: the org is the service's own, and the mcl_om pin is 1.9 (#16) #18

Closed
hygiea wants to merge 0 commits from hygiea/16-bundle-member into main
Member

The last piece of the wave-2 package for macula-services/mcl-stations#16, on hex mcl_om 1.9.0 (mcl-om#8). Follows PR 17, which landed as 12b164d.

Changed:

  • {mcl_om, "~> 1.9"} — the release where one node hosts several services, a service's org comes from its own info/0, and mcl_om_singleton exists. dependency_floors_tests moves with it to 1.9.0, so a build on 1.8 fails by name.
  • org => <<"mcl-stations">> in info/0 (C6): the service advertises under its own org, which is what lets a bundle host several without one shared env.
  • the {org, ...} literal leaves config/sys.config.src (C9). It no longer overrides anything; a test parses the baked config and fails if it comes back.

Not changed, deliberately: ingest_node_records is not wrapped in mcl_om_singleton, by Mars's ruling (2026-12-02, option a), after this package's own code showed the wrap would break serving:

  • list_stations answers from this node's read model — station_read_model:fold/2 (station_read_model.erl:117) folds station_store's ETS table, protected, written only by its owner (station_store.erl:57);
  • ingest_node_records is that table's only writer;
  • a singleton runs the work on one node, so every other node would keep an empty table while still advertising Org/list_stations, and its health would be permanently {degraded, not_subscribed_to_records} (subscribed/0 and links_up/0 catch noproc and answer false).

The reasoning is in mcl_stations_sup's module doc beside the feeder, and on the issue.

Mutants M6 (org out of info/0) and M7 (org back into the shared env) each turn their named test red; M1–M5 from the switch commit still hold. Local on OTP 28.4.3: lint, xref, eunit (142 tests), dialyzer, as prod release — green.

Refs #16.

The last piece of the wave-2 package for macula-services/mcl-stations#16, on hex mcl_om 1.9.0 (mcl-om#8). Follows PR 17, which landed as `12b164d`. **Changed:** - `{mcl_om, "~> 1.9"}` — the release where one node hosts several services, a service's org comes from its own `info/0`, and `mcl_om_singleton` exists. `dependency_floors_tests` moves with it to 1.9.0, so a build on 1.8 fails by name. - `org => <<"mcl-stations">>` in `info/0` (C6): the service advertises under its own org, which is what lets a bundle host several without one shared env. - the `{org, ...}` literal leaves `config/sys.config.src` (C9). It no longer overrides anything; a test parses the baked config and fails if it comes back. **Not changed, deliberately:** `ingest_node_records` is **not** wrapped in `mcl_om_singleton`, by Mars's ruling (2026-12-02, option a), after this package's own code showed the wrap would break serving: - `list_stations` answers from this node's read model — `station_read_model:fold/2` (`station_read_model.erl:117`) folds `station_store`'s ETS table, `protected`, written only by its owner (`station_store.erl:57`); - `ingest_node_records` is that table's only writer; - a singleton runs the work on one node, so every other node would keep an empty table while still advertising `Org/list_stations`, and its health would be permanently `{degraded, not_subscribed_to_records}` (`subscribed/0` and `links_up/0` catch `noproc` and answer false). The reasoning is in `mcl_stations_sup`'s module doc beside the feeder, and on the issue. Mutants M6 (org out of `info/0`) and M7 (org back into the shared env) each turn their named test red; M1–M5 from the switch commit still hold. Local on OTP 28.4.3: `lint`, `xref`, `eunit` (142 tests), `dialyzer`, `as prod release` — green. Refs #16.
service: the org is the service's own, and the mcl_om pin is 1.9 (#16)
All checks were successful
Test / erlang in . (pull_request) Has been skipped
c4 model / c4-model-1 (pull_request) Successful in 3s
c4 model / c4-model (pull_request) Successful in 0s
Test / guard-1 (pull_request) Successful in 3s
Test / guard (pull_request) Successful in 0s
Test / erlang in . (container) (pull_request) Successful in 19s
Test / Dependency advisories (pull_request) Successful in 0s
Test / rebar3 lint, xref, eunit, dialyzer (OTP 28.4.3) (pull_request) Successful in 3m39s
Test / File the tested resolve for the signer (pull_request) Has been skipped
Test / Release (forge, v* tag) (pull_request) Has been skipped
Test / The tested lock arrives whole (pull_request) Successful in 2s
23a8d56a57
The last piece of the wave-2 package, on hex mcl_om 1.9.0 (mcl-om#8):

- `{mcl_om, "~> 1.9"}`, the release where one node hosts several services, a
  service's org comes from its own info/0, and mcl_om_singleton exists. The
  floor test moves with it to 1.9.0, so a build on 1.8 fails by name.
- `org => <<"mcl-stations">>' in info/0 (C6): the service advertises under its
  own org, which is what lets a bundle host several without one shared env.
- the `{org, ...}' literal leaves config/sys.config.src (C9). It used not to
  override info/0 and would only look authoritative; a test parses the baked
  config and fails if it comes back.
- ingest_node_records is NOT wrapped in mcl_om_singleton, by Mars's ruling
  (2026-12-02, option a) after this package's own code showed the wrap would
  break serving: list_stations answers from this node's ETS read model
  (station_read_model.erl:117 folding station_store.erl:57), the feeder is its
  only writer, and a singleton would leave every other node empty while
  advertising the procedure and permanently degraded
  (not_subscribed_to_records). The reasoning sits in mcl_stations_sup beside
  the feeder, so it is not "fixed" back.

Mutants M6 (org out of info/0) and M7 (org back into the shared env) each turn
their named test red; M1-M5 from the switch commit still hold. Local on OTP
28.4.3: lint, xref, eunit (142 tests), dialyzer and `as prod release` green.

Refs macula-services/mcl-stations#16, macula-services/mcl-om#8.
comments: stations needs 1.9 for the bundle and the org, not a singleton (#16)
All checks were successful
Test / guard-1 (push) Successful in 10s
Test / erlang in . (pull_request) Has been skipped
c4 model / c4-model-1 (pull_request) Successful in 4s
c4 model / c4-model (pull_request) Successful in 0s
Test / guard (pull_request) Successful in 0s
Test / guard-1 (pull_request) Successful in 2s
Test / erlang in . (container) (pull_request) Successful in 18s
Test / Dependency advisories (pull_request) Successful in 0s
Test / rebar3 lint, xref, eunit, dialyzer (OTP 28.4.3) (pull_request) Successful in 3m21s
Test / File the tested resolve for the signer (pull_request) Has been skipped
Test / Release (forge, v* tag) (pull_request) Has been skipped
Test / The tested lock arrives whole (pull_request) Successful in 4s
Test / erlang in . (push) Has been skipped
c4 model / c4-model-1 (push) Successful in 3s
c4 model / c4-model (push) Successful in 0s
Test / guard (push) Successful in 0s
Test / erlang in . (container) (push) Successful in 11s
Test / Dependency advisories (push) Successful in 0s
Test / rebar3 lint, xref, eunit, dialyzer (OTP 28.4.3) (push) Successful in 3m47s
Test / The tested lock arrives whole (push) Has been skipped
Test / Release (forge, v* tag) (push) Has been skipped
Test / File the tested resolve for the signer (push) Successful in 1s
520a811c06
Member

Landed by fast-forward: main is 520a811c06 (from 12b164d9). This repository does not allow the manually-merged style, so the PR is closed by hand.

Landed by fast-forward: main is 520a811c06b6139b15320e86fabc444ea92fd614 (from 12b164d9). This repository does not allow the manually-merged style, so the PR is closed by hand.
terra closed this pull request 2026-12-02 10:01:49 +00:00
All checks were successful
Test / guard-1 (push) Successful in 10s
Test / erlang in . (pull_request) Has been skipped
c4 model / c4-model-1 (pull_request) Successful in 4s
c4 model / c4-model (pull_request) Successful in 0s
Test / guard (pull_request) Successful in 0s
Test / guard-1 (pull_request) Successful in 2s
Test / erlang in . (container) (pull_request) Successful in 18s
Test / Dependency advisories (pull_request) Successful in 0s
Test / rebar3 lint, xref, eunit, dialyzer (OTP 28.4.3) (pull_request) Successful in 3m21s
Test / File the tested resolve for the signer (pull_request) Has been skipped
Test / Release (forge, v* tag) (pull_request) Has been skipped
Test / The tested lock arrives whole (pull_request) Successful in 4s
Test / erlang in . (push) Has been skipped
c4 model / c4-model-1 (push) Successful in 3s
c4 model / c4-model (push) Successful in 0s
Test / guard (push) Successful in 0s
Test / erlang in . (container) (push) Successful in 11s
Test / Dependency advisories (push) Successful in 0s
Test / rebar3 lint, xref, eunit, dialyzer (OTP 28.4.3) (push) Successful in 3m47s
Test / The tested lock arrives whole (push) Has been skipped
Test / Release (forge, v* tag) (push) Has been skipped
Test / File the tested resolve for the signer (push) Successful in 1s

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
3 participants
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-stations!18
No description provided.