Repository navigation
Move CI to Elixir 1.19.7 / OTP 28 on ubuntu-26.04, pinned in .tool-versions - #194
Merged
Merged
Conversation
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>
floydtree
requested review from
mikeradka and
rmouritzen-splunk
as code owners
November 2, 2026 20:57
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>
Aniak5
approved these changes
Nov 2, 2026
mikeradka
approved these changes
Nov 3, 2026
mikeradka
approved these changes
Nov 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
ubuntu-latestnow 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 pinningubuntu-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-versionsfile.Why Elixir 1.19 / OTP 28
Dockerfilebuilt fromelixir:1.19.5-alpine, which erlef/docker-elixir buildsFROM 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.Dockerfilemove to it together, so they still match.elixir:1.19.7-alpineis alsoFROM erlang:28-alpine(docker-elixir commit 0e268c5), currently OTP 28.5.0.8.ubuntu-26.04builds of OTP 28.5.0.8 and Elixirv1.19.7-otp-28.Dockerfileto Elixir 1.20. That's a reasonable later step, changing.tool-versionsand theDockerfiletogether. The app already compiles and runs on 1.20.5 / OTP 29 locally. The deps to watch then are the older ones,phoenix_swagger0.8.5 and Phoenix 1.7.Changes
.tool-versions:erlang 28.5.0.8andelixir 1.19.7-otp-28. This is now the one place the toolchain is pinned.erlef/setup-beamreads it withversion-file: .tool-versionsandversion-type: strict, and asdf/mise users get the same versions locally.Dockerfile:elixir_imagegoes fromelixir:1.19.5-alpinetoelixir:1.19.7-alpine, with a comment to keep it in step with.tool-versions.runs-on: ubuntu-26.04instead ofubuntu-latest, so the next image move can't silently break the toolchain again.actions/checkout@v3→@v7,actions/cache@v3→@v6. The third-partyerlef/setup-beamis pinned to the v1.24.1 commit SHA.mix compile --warnings-as-errors. Removed the unusedrequire Loggerinlib/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@versionbump: 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
misefrom this PR's.tool-versions, on a clean copy of the tracked files.mix deps.get && mix compile --warnings-as-errorsexits 0 with no warnings from app code. Deps still emit their own warnings, which the flag doesn't cover.lib/schema.ex.--warnings-as-errorsthen failed as expected.Dockerfilesteps (MIX_ENV=prod mix compile && mix release) succeeds, and the release boots:bin/schema_server evalreports Elixir 1.19.7 / OTP 28.ubuntu-26.04. It also exercisessetup-beamreading.tool-versions.Conflict with #193
#193 (still open) pins
runs-on: ubuntu-24.04on the same line. The two PRs conflict trivially there. Whichever merges second should keepubuntu-26.04from this PR.Possible follow-ups (out of scope here)
logger_file_backendto 0.1.🤖 Generated with Claude Code