build: the relx release names 0.7.0, the version the application reports (mcl-stations#7) #8

Closed
juno wants to merge 0 commits from juno/7-relx-vsn into main
Member

Refs macula-services/mcl-stations#7.

Purpose (defect): a release built from main names itself 0.6.0 while the application it carries is 0.7.0, so the release a box runs and the version it is never agree.

The change is one line: rebar.config:55, the relx release {mcl_stations, "0.6.0"} -> "0.7.0", matching apps/mcl_stations/src/mcl_stations.app.src (already 0.7.0 since e4f3186) and the sibling services, which move both together. No test reads the relx release version, so no test changes.

Proven where it bites, on msi00 in the pinned macula-ci-otp digest test.yml uses (sha256:3e202cf7…), by building the release with main's line and then with the fix:

  • before: _build/default/rel/mcl_stations/releases/ holds 0.6.0, start_erl.data is 16.3.1 0.6.0, while the app's vsn is 0.7.0;
  • after: the release directory is 0.7.0 and start_erl.data is 16.3.1 0.7.0.

Gates on the fixed tree: rebar3 lint rc=0, rebar3 xref rc=0, rebar3 eunit all 132 tests passed, rebar3 dialyzer rc=0.

Refs macula-services/mcl-stations#7. Purpose (defect): a release built from main names itself 0.6.0 while the application it carries is 0.7.0, so the release a box runs and the version it is never agree. The change is one line: `rebar.config:55`, the relx release `{mcl_stations, "0.6.0"}` -> `"0.7.0"`, matching `apps/mcl_stations/src/mcl_stations.app.src` (already 0.7.0 since `e4f3186`) and the sibling services, which move both together. No test reads the relx release version, so no test changes. Proven where it bites, on msi00 in the pinned `macula-ci-otp` digest `test.yml` uses (`sha256:3e202cf7…`), by building the release with main's line and then with the fix: - before: `_build/default/rel/mcl_stations/releases/` holds `0.6.0`, `start_erl.data` is `16.3.1 0.6.0`, while the app's vsn is 0.7.0; - after: the release directory is `0.7.0` and `start_erl.data` is `16.3.1 0.7.0`. Gates on the fixed tree: `rebar3 lint` rc=0, `rebar3 xref` rc=0, `rebar3 eunit` all 132 tests passed, `rebar3 dialyzer` rc=0.
build: the relx release names 0.7.0, the version the application reports (mcl-stations#7)
Some checks failed
c4 model / c4-model-1 (pull_request) Failing after 4s
c4 model / c4-model (pull_request) Failing after 0s
Test / rebar3 lint, xref, eunit, dialyzer (OTP 28.4.3) (pull_request) Successful in 3m2s
Test / guard-1 (pull_request) Successful in 4s
Test / erlang in . (pull_request) Has been skipped
Test / guard (pull_request) Successful in 0s
Test / erlang in . (container) (pull_request) Failing after 8s
Test / Dependency advisories (pull_request) Failing after 0s
Test / File the tested resolve for the signer (pull_request) Has been skipped
Test / The tested lock arrives whole (pull_request) Successful in 2s
a3c7a089c9
`apps/mcl_stations/src/mcl_stations.app.src` moved to 0.7.0 with the ETS
read model (e4f3186), and /health reports that value; the relx release
line was still 0.6.0, so a release built from main wrote
`releases/0.6.0/` and called itself 0.6.0.

The sibling services move both together (mcl-mail 0.6.2, mcl-rag
0.11.0, mcl-graph 0.6.0), so this is the second half of a bump that was
missed, not a new convention. No test reads the relx release version,
so no test changes.
Member

Landed by hand as 08024f2a68 (--no-ff, gated).

Landed by hand as 08024f2a68345547b38c5ba2bdadce82a0bbfa16 (--no-ff, gated).
terra closed this pull request 2026-11-24 01:26:21 +00:00
Member

Landed as 08024f2a68 (--no-ff, gated). Lands on main 8ded83a's standing reds (push runs 15/16): c4-model x2, Dependency advisories, erlang in . (container). Nothing new is red.

Landed as 08024f2a68345547b38c5ba2bdadce82a0bbfa16 (--no-ff, gated). Lands on main 8ded83a's standing reds (push runs 15/16): c4-model x2, Dependency advisories, erlang in . (container). Nothing new is red.
Some checks failed
c4 model / c4-model-1 (pull_request) Failing after 4s
c4 model / c4-model (pull_request) Failing after 0s
Test / rebar3 lint, xref, eunit, dialyzer (OTP 28.4.3) (pull_request) Successful in 3m2s
Test / guard-1 (pull_request) Successful in 4s
Test / erlang in . (pull_request) Has been skipped
Test / guard (pull_request) Successful in 0s
Test / erlang in . (container) (pull_request) Failing after 8s
Test / Dependency advisories (pull_request) Failing after 0s
Test / File the tested resolve for the signer (pull_request) Has been skipped
Test / The tested lock arrives whole (pull_request) Successful in 2s

Pull request closed

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