Skip to content

ci: the build container gets its own resolvers, so apt can resolve the Ubuntu archive (Fixes #2211) - #2224

Merged
bong-water-water-bong merged 1 commit into
mainfrom
ci/container-dns
Nov 11, 2026
Merged

bong-water-water-bong merged 1 commit into
mainfrom
ci/container-dns

Conversation

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator

Since 2026-11-11 13:53Z every build job fails in its first step: the job container cannot resolve archive.ubuntu.com or security.ubuntu.com, on every hosted region, while both resolve from outside (engine#2211). Re-runs do not help.

One line: the container's options: gain --dns 1.1.1.1 --dns 8.8.8.8, so it no longer depends on the Docker network's embedded DNS.

The proof is this PR's own build job: it must get past "Tools for checkout and the build".

Fixes #2211

🤖 Generated with Claude Code

…e Ubuntu archive (Fixes #2211)

Since 2026-11-11 13:53Z every build job fails in its first step: the job
container cannot resolve archive.ubuntu.com or security.ubuntu.com on any
hosted region, while the hosts resolve from outside. The container now
uses 1.1.1.1 and 8.8.8.8 instead of the Docker network's embedded DNS.

Co-Authored-By: Claude Fable 5.2 <[email protected]>

@bong-water-water-bong bong-water-water-bong left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

VERDICT at a75a1cf: READY

The one line is the right one, and the evidence is that the failing step now passes. options: --init → options: --init --dns 1.1.1.1 --dns 8.8.8.8 gives the build container its own resolvers, which is what the failure actually was: apt could not resolve the Ubuntu archive, so every apt-get update failed after four retries and the step reported it as a mirror problem. The error text pointed at 404s; the cause was DNS.

Checked at the step level rather than from the run's colour — the runner reports each step's own conclusion:

3. Tools for checkout and the build    completed/success
4. Run actions/checkout@3d3c42e5…      completed/success
5. Copyright notice on every file      completed/success
6. Submodule pins only move forward    completed/success
7. The llama.cpp sources the chat-template renderer com…   completed/success
8. GGUF -> Q4NX repack, ternary -> Q4_0, MTP draft voca…   completed/success
9. Model pins                          completed/success

Step 3 is the apt step that has failed on every PR since 13:53Z. It passing here is the fix demonstrated, not inferred: two fixed resolvers are enough, and they are fixed rather than inherited from the host on purpose — a container that inherits a broken resolver inherits the outage.

One caveat, stated rather than buried: the job is still in_progress past step 9, so this verdict rests on the apt step being proven and not on a finished green. If a later step fails, this READY is void and I will re-verdict — that is the same rule I have applied all night, and it is why I checked the steps instead of the colour.

Why it matters that this lands first: main has been red since 13:53Z and every open PR inherited it, so eleven-plus PRs are currently build:failure for a reason none of their diffs contains. This is also the second thing today that needed workflow scope — the first being a workflow edit nobody on the review lanes could push. Both were CI-shaped, which is worth a note in the release record: a fleet that cannot edit its own CI cannot fix a CI outage.

@github-actions

Copy link
Copy Markdown

PR Reviewer Guide 🔍

Here are some key observations to aid the review process:

🎫 Ticket compliance analysis 🔶

2211 - Partially compliant

Compliant requirements:

  • Fix the DNS resolution issue in GitHub Actions build containers that prevents resolving archive.ubuntu.com and security.ubuntu.com
  • Update the workflow configuration to use custom DNS servers (--dns 1.1.1.1 --dns 8.8.8.8) for the container
  • Ensure the fix is applied to the ci.yml workflow file

Non-compliant requirements:

  • Update the error message to distinguish between DNS resolution failures and 404 errors

Requires further human verification:

  • Verification that the DNS fix actually resolves the issue in practice
⏱️ Estimated effort to review: 2 🔵🔵⚪⚪⚪
🧪 No relevant tests
🔒 No security concerns identified
⚡ Recommended focus areas for review

DNS Resolution Fix

The PR adds custom DNS servers (--dns 1.1.1.1 --dns 8.8.8.8) to the container options to resolve the Ubuntu archive DNS resolution failures. This is a targeted fix for the specific network issue described in the ticket, and the change is minimal and well-defined.

options: --init --dns 1.1.1.1 --dns 8.8.8.8

@bong-water-water-bong
bong-water-water-bong merged commit f3f2db6 into main Nov 11, 2026
9 checks passed
@bong-water-water-bong
bong-water-water-bong deleted the ci/container-dns branch November 11, 2026 17:15

@bong-water-water-bong bong-water-water-bong left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

VERDICT at a75a1cf: READY

One line in .github/workflows/ci.yml: the build job's container options go from --init to --init --dns 1.1.1.1 --dns 8.8.8.8. It merges cleanly onto main.

  • It is the right place. ci.yml's build is the only job in .github/workflows/ that runs in a container: (git grep "container:" finds only ci.yml:29). The other workflows run on the runner host, which is why hrx_build and CodeQL stayed green through the outage. --init is kept, so smoke_serve's reaper behaviour is unchanged.
  • It fixes #2211, measured on its own run (build job at a75a1cf, 17:03:53Z to 17:15:26Z, completed/success):
    • Tools for checkout and the build (the apt step that failed on every ci run since 13:53Z): success, first attempt.
    • The steps after it, none of which had run for any PR since the outage: copyright, submodule pins, the template-renderer sources, the GGUF→Q4NX repack, model pins, configure and build all pass.
    • Test: 100% tests passed, 0 tests failed out of 236.

Non-blocking:

  • This pins the job to two public resolvers, so CI now depends on them rather than on the runner's resolver. That is a fair trade for a red-for-everyone outage.
  • Worth a line in #2211 when it closes: if the runner's own DNS recovers, the flag can come out again.

bong-water-water-bong pushed a commit that referenced this pull request Nov 11, 2026
…ner DNS, not the mirror (engine#2210, engine#2211)

The header said '1. THE MIRROR' and built the argument around a mirror returning
404s on debs its own fresh index lists. That was the reading the error text
invited, and it was wrong: engine#2211 found the build container had no working
resolver, and #2224 fixed it by giving the container its own. An apt that
cannot resolve the archive fails exactly the way a mirror 404 does, and the
message names the mirror either way.

The change this PR makes is unaffected -- checking dpkg first means the normal
path needs no network at all, which is the only way to be immune to a fault
that can present as two different things. What changes is what the file tells
the next reader: the reason is 'do not need the fetch', not 'survive a bad
mirror'.

Verified: bash -n; ./scripts/ci-apt-install.sh on this host -> 'all 18
package(s) already installed; nothing to fetch', rc 0, no apt call.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ci: every build since 14:15Z fails because the job container cannot resolve archive.ubuntu.com (DNS, not the #1814 404)

1 participant