Skip to content

Harden Android NDK setup against apt mirror outages#29159

Draft
Copilot wants to merge 4 commits into
mainfrom
copilot/fix-android-ci-pipeline-again
Draft

Harden Android NDK setup against apt mirror outages#29159
Copilot wants to merge 4 commits into
mainfrom
copilot/fix-android-ci-pipeline-again

Conversation

Copilot AI commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

Description

Android CI Pipeline failed in Setup Android NDK before build/test due to transient apt connectivity to azure.archive.ubuntu.com.
This change makes the package bootstrap resilient so Android jobs proceed when the primary Ubuntu mirror is flaky.

  • NDK setup bootstrap hardening

    • Short-circuit install when ninja and realpath are already present.
    • Replace one-shot apt install with bounded retries.
    • On repeated failure, rewrite Ubuntu mirror from Azure mirror to archive.ubuntu.com and retry.
  • Mirror fallback correctness

    • Use a URL pattern that matches both http and https Azure mirror entries.
if ! retry_apt_install; then
  sudo sed -i 's|https\?://azure.archive.ubuntu.com/ubuntu|http://archive.ubuntu.com/ubuntu|g' /etc/apt/sources.list
  retry_apt_install
fi

Motivation and Context

Android CI Pipeline (job 82229165144) failed because apt could not fetch ninja-build from azure.archive.ubuntu.com (timeout), causing early exit in the shared Android NDK setup action.
The workflow now tolerates transient mirror/network failures without changing downstream build logic.

Copilot AI changed the title [WIP] Fix failing GitHub Actions job Android CI Pipeline Harden Android NDK setup against apt mirror outages Jun 18, 2026
Copilot AI requested a review from crvineeth97 June 18, 2026 20:52
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.

2 participants