Drop the Microsoft apt repository in CI - #8
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
CI intermittently fails a single PostgreSQL matrix job during environment
setup, with nothing wrong in the change under test:
Seen on PR #6 (PG 17 job) and PR #7 (PG 12 job), both docs-only changes with
empty
regression.diffsand every other job green.Cause
The
ubuntu-24.04runner image ships apackages.microsoft.comentry in/etc/apt/sources.list.d. The firstsudo apt-get updatein the workflowfetches it, and a bad mirror response aborts the whole update. plruby installs
nothing from that repository.
Fix
Remove any
sources.list.dfile naming that host before the first apt call, sosetup only talks to the Ubuntu archive and PGDG.
The step is a no-op if the image stops shipping the repository, and stays exit-0
with or without
pipefail.🤖 Generated with Claude Code