From 79aecacac991da5d87290fbf1cf4ba5dc28dab7d Mon Sep 17 00:00:00 2001 From: Rajas Date: Mon, 2 Nov 2026 15:57:05 -0500 Subject: [PATCH 1/2] Move CI to Elixir 1.19.5 / OTP 28 on ubuntu-26.04 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 Co-Authored-By: Claude Opus 5.5 --- .github/workflows/elixir.yml | 15 ++++++++------- lib/schema.ex | 1 - 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/elixir.yml b/.github/workflows/elixir.yml index 4d884da0..0744a35f 100644 --- a/.github/workflows/elixir.yml +++ b/.github/workflows/elixir.yml @@ -13,17 +13,18 @@ jobs: build: name: Build and test - runs-on: ubuntu-latest + runs-on: ubuntu-26.04 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v7 - name: Set up Elixir - uses: erlef/setup-beam@v1 + uses: erlef/setup-beam@54075bcc5e249e4758d363f27d099f55d843f124 # v1.24.1 with: - elixir-version: '1.14.0' # Define the elixir version [required] - otp-version: '25' # Define the OTP version [required] + # Keep in sync with elixir_image in the Dockerfile (elixir:1.19.5-alpine, OTP 28) + elixir-version: '1.19.5' + otp-version: '28' - name: Restore dependencies cache - uses: actions/cache@v3 + uses: actions/cache@v6 with: path: deps key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }} @@ -31,4 +32,4 @@ jobs: - name: Install dependencies run: mix deps.get - name: Run tests - run: mix compile + run: mix compile --warnings-as-errors diff --git a/lib/schema.ex b/lib/schema.ex index 53d267ea..98959676 100644 --- a/lib/schema.ex +++ b/lib/schema.ex @@ -18,7 +18,6 @@ defmodule Schema do alias Schema.SingleRepo alias Schema.Utils - require Logger @dialyzer :no_improper_lists From 18f1223ec5bb63032fe94e69011d6cc207db818b Mon Sep 17 00:00:00 2001 From: Rajas Date: Mon, 2 Nov 2026 16:04:53 -0500 Subject: [PATCH 2/2] Pin Elixir 1.19.7 / OTP 28 in .tool-versions for CI and Docker 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 Co-Authored-By: Claude Opus 5.5 --- .github/workflows/elixir.yml | 5 ++--- .tool-versions | 4 ++++ Dockerfile | 4 +++- 3 files changed, 9 insertions(+), 4 deletions(-) create mode 100644 .tool-versions diff --git a/.github/workflows/elixir.yml b/.github/workflows/elixir.yml index 0744a35f..a3ca21e8 100644 --- a/.github/workflows/elixir.yml +++ b/.github/workflows/elixir.yml @@ -20,9 +20,8 @@ jobs: - name: Set up Elixir uses: erlef/setup-beam@54075bcc5e249e4758d363f27d099f55d843f124 # v1.24.1 with: - # Keep in sync with elixir_image in the Dockerfile (elixir:1.19.5-alpine, OTP 28) - elixir-version: '1.19.5' - otp-version: '28' + version-file: .tool-versions + version-type: strict - name: Restore dependencies cache uses: actions/cache@v6 with: diff --git a/.tool-versions b/.tool-versions new file mode 100644 index 00000000..244d166a --- /dev/null +++ b/.tool-versions @@ -0,0 +1,4 @@ +# Toolchain used by CI (erlef/setup-beam) and by asdf/mise locally. +# Keep elixir_image in the Dockerfile in step with these versions. +erlang 28.5.0.8 +elixir 1.19.7-otp-28 diff --git a/Dockerfile b/Dockerfile index dc9f741a..e8c98fa9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,6 @@ -ARG elixir_image=elixir:1.19.5-alpine +# Keep in step with .tool-versions (the CI toolchain): elixir:1.19.7-alpine is +# Elixir 1.19.7 on erlang:28-alpine. +ARG elixir_image=elixir:1.19.7-alpine FROM ${elixir_image} AS builder