Skip to content

feat: build noble instead of focal - #1106

Merged
viceice merged 1 commit into
mainfrom
viceice/feat/noble
Nov 26, 2026
Merged

viceice merged 1 commit into
mainfrom
viceice/feat/noble

Conversation

@viceice

@viceice viceice commented Nov 26, 2026

Copy link
Copy Markdown
Member

Changes

  • Build noble instead of focal: containerbase dropped focal in v14 and Ubuntu 20.04 is out of standard support since May 2025.
  • noble only builds new releases, from the current latest version on (builder.noble.json); older versions fall back to jammy and may be rebuilt later.
  • Default DISTRO to jammy where it was focal.

Context

Please select one of the following:

  • This closes an existing Issue, Closes: #
  • This doesn't close an Issue, but I accept the risk that this PR may be closed if maintainers disagree with its opening or implementation

AI assistance disclosure

Did you use AI tools to create any part of this pull request?

Please select one option and, if yes, briefly describe how AI was used (e.g., code, tests, docs) and which tool(s) you used.

  • No — I did not use AI for this contribution.
  • Yes — minimal assistance (e.g., IDE autocomplete, small code completions, grammar fixes).
  • Yes — substantive assistance (AI-generated non‑trivial portions of code, tests, or documentation).
  • Yes — other (please describe):

Use of AI in replying to PR comments

Who answers review comments:

  • @viceice will read and reply directly. Name the account.
  • An agent will draft replies and @username will read them before they are posted. Name the account.
  • An agent will draft replies and reply autonomously. This is heavily discouraged, and we prefer that there are humans in the loop
  • Nobody has explicitly committed to replying.

Documentation (please check one with an [x])

  • I have updated the documentation, or
  • No documentation update is required

How I've tested my work (please select one)

I have verified these changes via:

  • Code inspection only, or
  • Newly added/modified tests

Drafted by Claude Code (Claude Opus 5.5, low effort) on behalf of @viceice.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <michael.kriese+claude-code@mend.io>
@viceice
viceice enabled auto-merge November 26, 2026 09:20
@qodo-code-review

qodo-code-review Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

PR Summary by Qodo

Build Ruby releases on Ubuntu Noble instead of Focal

✨ Enhancement ⚙️ Configuration changes 📝 Documentation 🕐 10-20 Minutes

Grey Divider

AI Description

• Replace unsupported Focal builds with Noble while retaining Jammy for older Ruby releases.
• Limit Noble builds to releases starting at 4.0.10; keep the existing Jammy version range.
• Make Jammy the default local build target and document the supported distributions.
Merge Risk 🟡 Medium

Blast radius 🟡 Medium 💥 2 capabilities

  • 2 affected capabilities within one bounded functional scope: ruby_prebuild_build_integration.
  • The changed Docker stages select the OS environment used by the repository's builder entrypoint; this is one bounded Ruby prebuild build integration rather than a separate deployment or storage capability.
  • The workflow matrix, per-distro configuration, and generated archives are parts of one bounded Ruby prebuild publication integration.
  • The noble configuration is a release-partition rule within that integration, not an independent storage capability.
Sources

Dockerfile[4-10]

ARG DISTRO=jammy

#--------------------------------------
# base images
#--------------------------------------
FROM ghcr.io/containerbase/ubuntu:22.04@sha256:f64b2ffc2f10ab8f8505aa56b2664bd846cbb9df87c7e2532e30f7667021c0e6 AS build-jammy
FROM ghcr.io/containerbase/ubuntu:24.04@sha256:fe81560990fae86dc4743202b2cb4d3df98d0bcf949173cecef15ce1127ef852 AS build-noble

builder.noble.json[1-9]

{
  "image": "ruby",
  "depName": "ruby",
  "datasource": "ruby-version",
  "versioning": "ruby",
  "startVersion": "4.0.10",
  "ignoredVersions": [],
  "reverse": true
}

.github/workflows/build.yml[110-115]

        with:
          command: binary-builder
          dry-run: ${{github.ref != 'refs/heads/main'}}
          # noble only gets new releases
          config: ${{ matrix.distro == 'noble' && 'builder.noble.json' || 'builder.json' }}
          token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/build.yml[89-91]

        distro:
          - jammy
          - noble
Behavioral complexity 🟡 Medium 🧩 Compatibility cases

  • Before: focal was the default and focal/jammy stages were available.
  • After: jammy is the default and only jammy/noble stages exist.
  • New correctness condition: every caller must select one of the remaining stages, while the selected Ubuntu environment must still support the Ruby build tooling.
Sources

Dockerfile[4-10]

ARG DISTRO=jammy

#--------------------------------------
# base images
#--------------------------------------
FROM ghcr.io/containerbase/ubuntu:22.04@sha256:f64b2ffc2f10ab8f8505aa56b2664bd846cbb9df87c7e2532e30f7667021c0e6 AS build-jammy
FROM ghcr.io/containerbase/ubuntu:24.04@sha256:fe81560990fae86dc4743202b2cb4d3df98d0bcf949173cecef15ce1127ef852 AS build-noble
Potential damage 🟡 Medium 🩹 Temporary loss

  • If an existing caller still requests focal, the builder image cannot be constructed for that caller.
  • Reverting restores the focal stage; no persistent state or external effect is created by the image build itself.
  • Rebuild the image after reverting or updating the caller to jammy or noble.
Sources

Dockerfile[4-10]

ARG DISTRO=jammy

#--------------------------------------
# base images
#--------------------------------------
FROM ghcr.io/containerbase/ubuntu:22.04@sha256:f64b2ffc2f10ab8f8505aa56b2664bd846cbb9df87c7e2532e30f7667021c0e6 AS build-jammy
FROM ghcr.io/containerbase/ubuntu:24.04@sha256:fe81560990fae86dc4743202b2cb4d3df98d0bcf949173cecef15ce1127ef852 AS build-noble
Assessed commit abc873e
Diagram

graph TD
  CI["Build matrix"] --> Pick{"Which distro?"} --> Noble["Noble config"] --> Builder["Binary builder"] --> Image["Distro image"] --> Archive["Ruby archives"]
  Pick --> Jammy["Default config"] --> Builder
Loading
High-Level Assessment

Keep separate version configurations: Noble can start with current releases without rebuilding the historical Jammy range. A single shared configuration would require conditional version filtering elsewhere in the build workflow.

Files changed (4) +18 / -5

Documentation (1) +4 / -2
README.mdDocument Jammy and Noble build targets +4/-2

Document Jammy and Noble build targets

• Updates the local build example and DISTRO defaults. Notes that Noble receives only versions released since its introduction.

README.md

Other (3) +14 / -3
build.ymlSwitch the CI distro matrix from Focal to Noble +3/-1

Switch the CI distro matrix from Focal to Noble

• Builds Jammy and Noble on both architectures. Selects the Noble-specific version configuration only for Noble matrix jobs.

.github/workflows/build.yml

DockerfileReplace the Focal base with Noble and default to Jammy +2/-2

Replace the Focal base with Noble and default to Jammy

• Removes the Focal build stage, adds a pinned Ubuntu 24.04 Noble stage, and changes the default DISTRO to Jammy.

Dockerfile

builder.noble.jsonSet Noble's Ruby release starting point +9/-0

Set Noble's Ruby release starting point

• Adds a Noble-specific binary-builder configuration starting at Ruby 4.0.10, leaving the existing Jammy configuration unchanged.

builder.noble.json

@qodo-code-review

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)

Grey Divider

Great, no issues found!

Qodo reviewed your code and found no material issues that require review

Grey Divider

Tip of the day
💡 Did you know, you can tweak Display settings with a live preview to see your comment before it ships

More tips ↗ | Customize Qodo ↗ | Qodo docs ↗

Grey Divider

Qodo Logo

@viceice
viceice added this pull request to the merge queue Nov 26, 2026
Merged via the queue into main with commit 74f2701 Nov 26, 2026
7 checks passed
@viceice
viceice deleted the viceice/feat/noble branch November 26, 2026 10:04
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.

1 participant