Skip to content

Commit 9e4616e

Browse files
jdatcmdclaude
andcommitted
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) <noreply@anthropic.com>
1 parent 519628f commit 9e4616e

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,18 @@ jobs:
2525
steps:
2626
- uses: actions/checkout@v4
2727

28+
- name: Drop the Microsoft apt repository
29+
# The hosted runner image ships a packages.microsoft.com source that
30+
# this build needs nothing from. Its InRelease fetch fails now and then
31+
# ("Clearsigned file isn't valid, got 'NOSPLIT'"), which aborts
32+
# apt-get update and kills an otherwise healthy matrix job.
33+
run: |
34+
stale=$(grep -rlF packages.microsoft.com /etc/apt/sources.list.d \
35+
2>/dev/null || true)
36+
if [ -n "$stale" ]; then
37+
echo "$stale" | xargs sudo rm -f
38+
fi
39+
2840
- name: Install system Ruby
2941
if: matrix.ruby == 'system'
3042
run: |

0 commit comments

Comments
 (0)