This is an automated email from the ASF dual-hosted git repository.

sadpandajoe pushed a commit to branch ultraset-ci-apt-update-microsoft-repo-403
in repository https://gitbox.apache.org/repos/asf/superset.git

commit 6feba18136a4f63f341cdd230c351f73afbcafee
Author: Joe Li <[email protected]>
AuthorDate: Tue Nov 17 17:54:03 2026 +0000

    fix(ci): drop unused packages.microsoft.com apt sources in setup-backend
    
    Runner images ship apt sources for packages.microsoft.com (microsoft-prod
    and, on ubuntu-slim, azure-cli). When that CDN intermittently answers 403
    on InRelease, apt reports the repository as "no longer signed" and
    `apt-get update` exits 100, failing setup-backend. Over 30 days this hit
    7 of ~4,272 python-dependency-liccheck attempts (ubuntu-slim), including
    two master pushes.
    
    Nothing setup-backend's callers install comes from those repositories
    (libldap2-dev, libsasl2-dev, gettext, graphviz, libfbclient2 are all from
    the Ubuntu archive), so remove their source files, matched by content,
    next to the existing google-chrome removal. `apt-get update` itself is
    unchanged: Ubuntu archive failures still fail the step.
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
---
 .github/actions/setup-backend/action.yml | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/.github/actions/setup-backend/action.yml 
b/.github/actions/setup-backend/action.yml
index 55fa05a079d..547c82d89eb 100644
--- a/.github/actions/setup-backend/action.yml
+++ b/.github/actions/setup-backend/action.yml
@@ -53,9 +53,15 @@ runs:
       if: inputs.install-superset == 'true'
       shell: bash
       run: |
-        # Use the runner's preinstalled Chrome; these dependencies do not need
-        # its apt repository. Mirror index failures must not block their setup.
+        # These dependencies come from the Ubuntu archive only, so drop the
+        # third-party repositories the runner images ship (Google Chrome, whose
+        # preinstalled browser is used; packages.microsoft.com for azure-cli 
and
+        # microsoft-prod). Their mirror index failures, e.g. a 403 reported as
+        # "no longer signed", must not block setup. Microsoft sources are 
matched
+        # by content because file names and formats (.list/.sources) vary by 
image.
         sudo rm -f /etc/apt/sources.list.d/google-chrome*.list 
/etc/apt/sources.list.d/google-chrome*.sources
+        { grep -rlZF --include='*.list' --include='*.sources' 
'packages.microsoft.com' /etc/apt/sources.list.d || [ $? -eq 1 ]; } \
+          | sudo xargs -0r rm -f --
         sudo apt-get update
     - name: Install apt packages
       if: inputs.install-superset == 'true'

Reply via email to