From 2da9fc22371fcd48d02a9ca2b01c47a9d855798f Mon Sep 17 00:00:00 2001 From: "Joshua D. Drake" Date: Wed, 26 Aug 2026 12:53:40 -0600 Subject: [PATCH] Drop the Microsoft apt repository in CI The hosted runner image ships a packages.microsoft.com source that this build needs nothing from. Its InRelease fetch fails intermittently with E: Failed to fetch https://packages.microsoft.com/.../InRelease Clearsigned file isn't valid, got 'NOSPLIT' which aborts apt-get update and fails a single matrix job while every other PostgreSQL version passes. Remove any sources.list.d file naming that host before the first apt call, so setup only talks to the Ubuntu archive and PGDG. The step is a no-op if the image stops shipping the repository, and it stays exit-0 with or without pipefail. Co-Authored-By: Claude Opus 5 (1M context) --- .github/workflows/ci.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8b147bc..c4a30ba 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,6 +25,18 @@ jobs: steps: - uses: actions/checkout@v4 + - name: Drop the Microsoft apt repository + # The hosted runner image ships a packages.microsoft.com source that + # this build needs nothing from. Its InRelease fetch fails now and then + # ("Clearsigned file isn't valid, got 'NOSPLIT'"), which aborts + # apt-get update and kills an otherwise healthy matrix job. + run: | + stale=$(grep -rlF packages.microsoft.com /etc/apt/sources.list.d \ + 2>/dev/null || true) + if [ -n "$stale" ]; then + echo "$stale" | xargs sudo rm -f + fi + - name: Install system Ruby if: matrix.ruby == 'system' run: |