Skip to content

feat: build noble instead of focal - #1135

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 (squash) November 26, 2026 13:25
@qodo-code-review

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

Copy link
Copy Markdown

PR Summary by Qodo

Build new Python releases on Ubuntu Noble instead of Focal

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

Grey Divider

AI Description

• Replace Focal with Noble in the build matrix and container images because Focal is no longer
 supported.
• Limit Noble builds to Python 3.15.2 onward; keep older releases on Jammy.
• Make Jammy the default distro and document the supported build targets.
Merge Risk 🟡 Medium

Blast radius 🟡 Medium 💥 2 capabilities

  • 2 affected capabilities within one bounded functional scope: python_prebuild_distribution.
  • The Dockerfile selects the Ubuntu build environment used by bin/builder.sh to compile and package Python releases; this is one bounded Python prebuild distribution workflow.
  • The workflow matrix, per-distro configuration, and Docker build stages jointly produce the repository's Python prebuild archives.
  • They are producer and packaging hops of the same bounded distribution workflow, not independent capabilities.
Sources

Dockerfile[4-10]

ARG DISTRO=jammy

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

builder.noble.json[1-9]

{
  "image": "python",
  "depName": "python",
  "datasource": "docker",
  "versioning": "docker",
  "startVersion": "3.15.2",
  "ignoredVersions": [],
  "reverse": true
}
Behavioral complexity 🟡 Medium 🧩 Compatibility cases, Interacting branches

  • Before, one focal build lane and the existing configuration covered the matrix.
  • After, jammy and noble use different version policies, and the workflow conditionally selects configuration per matrix entry.
  • The new correctness conditions are preserving distro/config alignment, ensuring Noble's first supported version boundary is intentional, and keeping independent matrix outputs isolated.
  • The matrix itself is extracted configuration, but the per-distro compatibility policy introduces a real interaction between deployment target and version selection.
Sources

builder.noble.json[1-9]

{
  "image": "python",
  "depName": "python",
  "datasource": "docker",
  "versioning": "docker",
  "startVersion": "3.15.2",
  "ignoredVersions": [],
  "reverse": true
}
Potential damage 🟡 Medium 🩹 Temporary loss

  • If the changed distro selection or image wiring regresses, local Python prebuilds may fail or become unavailable for the selected Ubuntu target.
  • Reverting the Dockerfile restores the prior build target; no persistent application state is changed.
  • Code rollback restores the prior local builder behavior; any failed local output must simply be rebuilt.
Sources

Dockerfile[4-10]

ARG DISTRO=jammy

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

graph TD
  CI["Build workflow"] --> Choice{"Target distro"} -->|noble| Noble["Noble config"] --> Builder["Binary builder"] --> Image["Ubuntu build image"] --> Artifact["Python archive"]
  Choice -->|jammy| Jammy["Default config"] --> Builder
Loading
High-Level Assessment

Keep the separate Noble configuration: it makes the per-distro version floor explicit while preserving Jammy's existing release coverage. A shared configuration with conditional filtering would add coordination without a clear benefit for two targets.

Files changed (4) +19 / -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 supported distro list to use Jammy instead of Focal. Notes that Noble receives only versions released since its introduction.

README.md

Other (3) +15 / -3
build.ymlSelect Noble builds and their release configuration +4/-1

Select Noble builds and their release configuration

• Replaces Focal with Noble in the build matrix and selects builder.noble.json for Noble jobs. Disables fail-fast so one matrix failure does not stop the other builds.

.github/workflows/build.yml

DockerfileReplace the Focal base with Noble +2/-2

Replace the Focal base with Noble

• Removes the Ubuntu 20.04 build stage, adds a pinned Ubuntu 24.04 stage, and changes the default distro to Jammy.

Dockerfile

builder.noble.jsonSet Noble's Python release floor +9/-0

Set Noble's Python release floor

• Adds a Noble-specific binary-builder configuration starting at Python 3.15.2, leaving earlier versions to the existing Jammy configuration.

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 merged commit 0bebb73 into main Nov 26, 2026
7 checks passed
@viceice
viceice deleted the viceice/feat/noble branch November 26, 2026 13:31
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