Skip to content

Move CI to Elixir 1.19.7 / OTP 28 on ubuntu-26.04, pinned in .tool-versions - #194

Merged
floydtree merged 2 commits into
ocsf:mainfrom
floydtree:ci/elixir-1.19-otp-28
Nov 3, 2026
Merged

floydtree merged 2 commits into
ocsf:mainfrom
floydtree:ci/elixir-1.19-otp-28

Conversation

@floydtree

@floydtree floydtree commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Why

ubuntu-latest now resolves to Ubuntu 26.04, and there are no Erlang/OTP 25 builds for 26.04, so the Elixir 1.14.0 / OTP 25 job can no longer install its toolchain. #193 works around this by pinning ubuntu-24.04. This PR is the lasting fix: CI and the production image now use the same toolchain, Elixir 1.19.7 / OTP 28, pinned in one .tool-versions file.

Why Elixir 1.19 / OTP 28

  • Production already runs it. Before this PR, the Dockerfile built from elixir:1.19.5-alpine, which erlef/docker-elixir builds FROM erlang:28-alpine (commit 77e28bf, "Bump Elixir to v1.19.5"). CI was testing 1.14.0 / OTP 25, so a green check said nothing about the release; matching production fixes that.
  • 1.19.7 rather than 1.19.5. It's the latest 1.19 patch release, which only fixes bugs. CI and the Dockerfile move to it together, so they still match. elixir:1.19.7-alpine is also FROM erlang:28-alpine (docker-elixir commit 0e268c5), currently OTP 28.5.0.8.
  • It runs on current runners. hex.pm has ubuntu-26.04 builds of OTP 28.5.0.8 and Elixir v1.19.7-otp-28.
  • Why not the newest (Elixir 1.20.5 / OTP 29)? CI would then test versions production doesn't ship. Elixir 1.19 builds stop at OTP 28, so moving to OTP 29 also means moving the Dockerfile to Elixir 1.20. That's a reasonable later step, changing .tool-versions and the Dockerfile together. The app already compiles and runs on 1.20.5 / OTP 29 locally. The deps to watch then are the older ones, phoenix_swagger 0.8.5 and Phoenix 1.7.

Changes

  • New .tool-versions: erlang 28.5.0.8 and elixir 1.19.7-otp-28. This is now the one place the toolchain is pinned. erlef/setup-beam reads it with version-file: .tool-versions and version-type: strict, and asdf/mise users get the same versions locally.
  • Dockerfile: elixir_image goes from elixir:1.19.5-alpine to elixir:1.19.7-alpine, with a comment to keep it in step with .tool-versions.
  • Runner: runs-on: ubuntu-26.04 instead of ubuntu-latest, so the next image move can't silently break the toolchain again.
  • Actions: actions/checkout@v3 → @v7, actions/cache@v3 → @v6. The third-party erlef/setup-beam is pinned to the v1.24.1 commit SHA.
  • Compile step: now mix compile --warnings-as-errors. Removed the unused require Logger in lib/schema.ex. Elixir 1.19 doesn't flag it, but 1.20 does, so this keeps the build clean for the next upgrade.

The job name (Build and test) is unchanged, so required-check settings aren't affected. No @version bump: the only shipped change is an Elixir patch release with no app behavior change.

Testing

All local checks used Elixir 1.19.7 / OTP 28.5.0.8, installed by mise from this PR's .tool-versions, on a clean copy of the tracked files.

  • mix deps.get && mix compile --warnings-as-errors exits 0 with no warnings from app code. Deps still emit their own warnings, which the flag doesn't cover.
  • To check the gate works, I added an unused variable to lib/schema.ex. --warnings-as-errors then failed as expected.
  • A prod build following the Dockerfile steps (MIX_ENV=prod mix compile && mix release) succeeds, and the release boots: bin/schema_server eval reports Elixir 1.19.7 / OTP 28.
  • I didn't build the Docker image itself locally, and CI doesn't build it either.
  • The CI run on this PR is the check on ubuntu-26.04. It also exercises setup-beam reading .tool-versions.

Conflict with #193

#193 (still open) pins runs-on: ubuntu-24.04 on the same line. The two PRs conflict trivially there. Whichever merges second should keep ubuntu-26.04 from this PR.

Possible follow-ups (out of scope here)

  • Upgrade Phoenix to 1.8.
  • Upgrade logger_file_backend to 0.1.

🤖 Generated with Claude Code

ubuntu-latest now resolves to Ubuntu 26.04, which has no Erlang/OTP 25
builds, so the Elixir 1.14.0 / OTP 25 job can no longer install its
toolchain. Build CI with the toolchain production ships instead: the
Dockerfile's elixir:1.19.5-alpine image runs on OTP 28.

- Pin the runner to ubuntu-26.04 so a future ubuntu-latest move cannot
  silently break the toolchain again.
- Bump actions/checkout to v7 and actions/cache to v6, and pin
  erlef/setup-beam to the v1.24.1 commit SHA.
- Compile with --warnings-as-errors. Drop the unused `require Logger`
  in Schema, which Elixir 1.20 reports as a warning.

Signed-off-by: Rajas <panat.r@northeastern.edu>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Move CI and the Dockerfile together to Elixir 1.19.7, the latest 1.19
patch release (bug fixes only). The elixir:1.19.7-alpine image is built
on erlang:28-alpine, currently OTP 28.5.0.8.

Keep the toolchain in one .tool-versions file. erlef/setup-beam reads it
with version-file and version-type: strict, and asdf/mise use it for
local development. The Dockerfile's elixir_image ARG carries a comment
to keep it in step with that file.

Signed-off-by: Rajas <panat.r@northeastern.edu>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@floydtree floydtree changed the title Move CI to Elixir 1.19.5 / OTP 28 on ubuntu-26.04 Move CI to Elixir 1.19.7 / OTP 28 on ubuntu-26.04, pinned in .tool-versions Nov 2, 2026
@floydtree
floydtree merged commit d92c8b0 into ocsf:main Nov 3, 2026
1 check passed
@floydtree
floydtree deleted the ci/elixir-1.19-otp-28 branch November 3, 2026 13:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants