Skip to content

feat: build noble instead of focal - #1187

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

Replace Focal builds with Noble for new PHP releases

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

Grey Divider

AI Description

• Replace Ubuntu 20.04 builds with Ubuntu 24.04 across the CI build matrix and Dockerfile.
• Limit Noble builds to PHP 8.6.0 onward; keep earlier eligible releases on Jammy.
• Document supported distributions and Noble’s release cutoff.
Merge Risk 🟡 Medium

Blast radius 🟡 Medium 💥 2 capabilities

  • 2 affected capabilities within one bounded functional scope: php_prebuild_release_pipeline.
  • The Docker stages and workflow matrix jointly determine which Ubuntu environments build PHP release artifacts.
  • They are one bounded release pipeline behavior rather than independent technical layers.
  • Version discovery and publication are a distinct outcome within the same bounded PHP release pipeline: the noble build receives a different eligible-version policy, while the resulting artifacts remain part of the same distribution process.
Sources

.github/workflows/build.yml[88-90]

        distro:
          - jammy
          - noble

Dockerfile[10-11]

FROM ghcr.io/containerbase/ubuntu:24.04@sha256:fe81560990fae86dc4743202b2cb4d3df98d0bcf949173cecef15ce1127ef852 AS build-noble
FROM ghcr.io/containerbase/ubuntu:26.04@sha256:d66b366dac61b575bee2aef07e9c26e8070096fbe84a3d4d3eb0da069b5d76db AS build-resolute
Behavioral complexity 🟡 Medium 🧩 Compatibility cases

  • Before: the matrix built focal, jammy and resolute against matching Docker stages.
  • After: focal is removed and noble is added with a new pinned Ubuntu image.
  • New correctness condition: the matrix distro names, Docker stage names and Ubuntu-specific build dependencies must remain aligned for every architecture.
  • This is a compatibility condition across supported distribution variants, not a new algorithm or concurrency protocol.
Sources

.github/workflows/build.yml[88-90]

        distro:
          - jammy
          - noble

Dockerfile[10-11]

FROM ghcr.io/containerbase/ubuntu:24.04@sha256:fe81560990fae86dc4743202b2cb4d3df98d0bcf949173cecef15ce1127ef852 AS build-noble
FROM ghcr.io/containerbase/ubuntu:26.04@sha256:d66b366dac61b575bee2aef07e9c26e8070096fbe84a3d4d3eb0da069b5d76db AS build-resolute
Potential damage 🟡 Medium 🩹 Temporary loss

  • If the noble image or removal of focal is incompatible with the build tooling, builds for that distro can fail and corresponding artifacts will not be produced.
  • The repository shows no fallback from a failed matrix entry to another distro.
  • Reverting restores the previous focal-capable matrix, while artifacts already absent or failed require rerunning the build.
  • A code revert stops new failures; missed artifacts require a successful rebuild and republishing.
  • No automatic repair worker or retry policy is defined in this repository.
Sources

.github/workflows/build.yml[88-90]

        distro:
          - jammy
          - noble

Dockerfile[10-11]

FROM ghcr.io/containerbase/ubuntu:24.04@sha256:fe81560990fae86dc4743202b2cb4d3df98d0bcf949173cecef15ce1127ef852 AS build-noble
FROM ghcr.io/containerbase/ubuntu:26.04@sha256:d66b366dac61b575bee2aef07e9c26e8070096fbe84a3d4d3eb0da069b5d76db AS build-resolute
Assessed commit 38bb62d
Diagram

graph TD
  M["CI build matrix"] --> D{"Noble target?"} -->|Yes| N["Noble config"] --> B["Distro builder"] --> A["PHP archives"]
  D -->|No| S["Standard config"] --> B
Loading
High-Level Assessment

The per-distribution config is a straightforward way to introduce Noble without rebuilding older eligible releases. A shared version configuration would not express Noble’s distinct cutoff as clearly. Note that the Dockerfile’s default DISTRO remains resolute; this diff does not change a default from Focal to Jammy.

Files changed (4) +17 / -3

Documentation (1) +3 / -1
README.mdDocument supported distributions and Noble’s cutoff +3/-1

Document supported distributions and Noble’s cutoff

• Lists Noble in place of Focal and explains that Noble receives only versions released since its introduction.

README.md

Other (3) +14 / -2
build.ymlBuild Noble instead of Focal in CI +3/-1

Build Noble instead of Focal in CI

• Replaces Focal with Noble in the distribution matrix. Selects builder.noble.json for Noble while Jammy and Resolute continue using builder.json.

.github/workflows/build.yml

DockerfileReplace the Focal base stage with Noble +1/-1

Replace the Focal base stage with Noble

• Removes the Ubuntu 20.04 base stage and adds a digest-pinned Ubuntu 24.04 stage for Noble builds.

Dockerfile

builder.noble.jsonSet the Noble PHP version floor +10/-0

Set the Noble PHP version floor

• Adds a dedicated binary-builder configuration starting at PHP 8.6.0, leaving the existing configuration for other distributions 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 09d1af3 Nov 26, 2026
9 checks passed
@viceice
viceice deleted the viceice/feat/noble branch November 26, 2026 10:01
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