Skip to content

Conversation

@cpuguy83
Copy link
Collaborator

archive.ubuntu.com has frequent outages causing CI to fail. Given CI is in Azure anyway, it is best to use Azure's mirror.

What this PR does / why we need it:

Which issue(s) this PR fixes (optional, using fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when the PR gets merged):
Fixes #

Special notes for your reviewer:

@cpuguy83 cpuguy83 force-pushed the ci_ubuntu_azure branch 27 times, most recently from fe64448 to ad4019f Compare January 28, 2026 15:51
@cpuguy83 cpuguy83 self-assigned this Jan 28, 2026
@cpuguy83 cpuguy83 marked this pull request as ready for review January 28, 2026 18:22
Copilot AI review requested due to automatic review settings January 28, 2026 18:22
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates CI to use Azure’s Ubuntu archive mirror by introducing a reusable composite action that DNS-spoofs archive.ubuntu.com/security.ubuntu.com to azure.archive.ubuntu.com, and wiring it into the integration and e2e workflows.

Changes:

  • Adds a composite GitHub Action (dns-spoof-ubuntu-archive) that configures dnsmasq and Docker to route Ubuntu archive traffic via Azure’s mirror.
  • Integrates the new action into the integration test job before pre-building base images.
  • Integrates the new action into the e2e job before setting up the builder, ensuring all Docker-based operations use the Azure mirror.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
.github/workflows/ci.yml Calls the new dns-spoof-ubuntu-archive composite action in the integration and e2e jobs to ensure CI uses Azure’s Ubuntu archive mirror.
.github/actions/dns-spoof-ubuntu-archive/action.yml Defines the composite action that configures dnsmasq and Docker DNS so archive.ubuntu.com and security.ubuntu.com resolve to azure.archive.ubuntu.com.

archive.ubuntu.com is extremely unreliable and is the cause of many test
re-runs.
Luckily there is a mirror: azure.archive.ubuntu.com

The GHA agetns are already setup to use it, however inside containers it
points at the main archive.ubuntu.com.
This change uses dnsmasq to make requests to archive.ubuntu.com resolve
to azure.archive.ubuntu.com's IP address.

Signed-off-by: Brian Goff <[email protected]>
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