The relx release still says 0.6.0 while the application is 0.7.0 #7

Closed
opened 2026-11-24 00:53:04 +00:00 by juno · 1 comment
Member

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.

  • apps/mcl_stations/src/mcl_stations.app.src:3 is {vsn, "0.7.0"}, moved there by e4f3186 (the ETS read model, macula-services/mcl-stations#1). /health reports that value, and mcl_stations_service_tests:info_version_matches_the_application_test guards it.
  • rebar.config:55 still names the relx release {release, {mcl_stations, "0.6.0"}, ...}; that line was last moved by 82bd80d, which shipped 0.6.0.
  • relx writes releases/0.6.0/ and the RELEASES entry from that line, so an image built from main — and a v0.7.0 tag off it — carries a release that calls itself 0.6.0.
  • The sibling services move both together, so this is a miss, not a choice: mcl-mail carries 0.6.2 in its app.src and in its relx release, mcl-rag 0.11.0, mcl-graph 0.6.0.

What it costs: the release's own version is what the release directory, the start script and the RELEASES file say. Reading the version of a running box from the release gives the pre-ETS number, and a tag that says v0.7.0 ships a release whose files say 0.6.0.

No check is proposed: the fix is the one-line bump in rebar.config, and no test reads the relx release version today.

Found while verifying macula-services/mcl-stations#1 against main.

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. - `apps/mcl_stations/src/mcl_stations.app.src:3` is `{vsn, "0.7.0"}`, moved there by `e4f3186` (the ETS read model, macula-services/mcl-stations#1). `/health` reports that value, and `mcl_stations_service_tests:info_version_matches_the_application_test` guards it. - `rebar.config:55` still names the relx release `{release, {mcl_stations, "0.6.0"}, ...}`; that line was last moved by `82bd80d`, which shipped 0.6.0. - relx writes `releases/0.6.0/` and the `RELEASES` entry from that line, so an image built from main — and a `v0.7.0` tag off it — carries a release that calls itself 0.6.0. - The sibling services move both together, so this is a miss, not a choice: `mcl-mail` carries `0.6.2` in its `app.src` and in its relx release, `mcl-rag` `0.11.0`, `mcl-graph` `0.6.0`. What it costs: the release's own version is what the release directory, the start script and the `RELEASES` file say. Reading the version of a running box from the release gives the pre-ETS number, and a tag that says `v0.7.0` ships a release whose files say 0.6.0. No check is proposed: the fix is the one-line bump in `rebar.config`, and no test reads the relx release version today. Found while verifying macula-services/mcl-stations#1 against main.
Author
Member

Purpose (defect) met: a release built from main names itself 0.7.0, the version the application already carries.

Landed by forge PR 8, merged --no-ff as 08024f2a, which is main's head. On that commit rebar.config:55 reads:

{release, {mcl_stations, "0.7.0"}, [mcl_stations, sasl]},

and 0.6.0 no longer appears in the file. The range was one line, as this issue proposed, and apps/mcl_stations/src/mcl_stations.app.src still says 0.7.0, so the two agree again.

Proven where it bites, not only in the diff: on the reviewed tip (a3c7a08, file-identical to what main holds) rebar3 release wrote _build/default/rel/mcl_stations/releases/0.7.0/ and start_erl.data named 0.7.0, while the same tree with the line put back to 0.6.0 wrote releases/0.6.0/. Nothing else changed in the branch.

Still open, not this issue's fix: a v0.7.0 tag is blocked on this repository's standing reds — c4-model x2, Dependency advisories and erlang in . (container) are red on every commit (push runs 15/16), and the tag script wants a push run whose tasks all succeeded or were skipped. Details are with Mars.

No check is proposed, as this issue says: no test reads the relx release version.

Purpose (defect) met: a release built from main names itself 0.7.0, the version the application already carries. Landed by forge PR 8, merged `--no-ff` as `08024f2a`, which is main's head. On that commit `rebar.config:55` reads: {release, {mcl_stations, "0.7.0"}, [mcl_stations, sasl]}, and `0.6.0` no longer appears in the file. The range was one line, as this issue proposed, and `apps/mcl_stations/src/mcl_stations.app.src` still says `0.7.0`, so the two agree again. Proven where it bites, not only in the diff: on the reviewed tip (`a3c7a08`, file-identical to what main holds) `rebar3 release` wrote `_build/default/rel/mcl_stations/releases/0.7.0/` and `start_erl.data` named 0.7.0, while the same tree with the line put back to `0.6.0` wrote `releases/0.6.0/`. Nothing else changed in the branch. Still open, not this issue's fix: a `v0.7.0` tag is blocked on this repository's standing reds — `c4-model` x2, `Dependency advisories` and `erlang in . (container)` are red on every commit (push runs 15/16), and the tag script wants a push run whose tasks all succeeded or were skipped. Details are with Mars. No check is proposed, as this issue says: no test reads the relx release version.
juno closed this issue 2026-11-24 01:27:50 +00:00
Sign in to join this conversation.
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-stations#7
No description provided.