Repository navigation
CI: stop running apt upgrade on Ubuntu runners - #1609
Merged
Merged
Conversation
`sudo apt upgrade` upgraded every preinstalled package on the runner image (apache2, firefox, snapd, ssh, curl, tzdata, ...), none of which the build uses. The firefox upgrade installs a snap, so the job depended on api.snapcraft.io being reachable. An HTTP 408 from it failed the Ubuntu clang build on main (run 39057056406) before compiling anything. `apt install` still upgrades any dependency that the installed packages need, so dropping the blanket upgrade only skips unrelated packages and saves about a minute per Ubuntu job. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 of 2 tasks
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.
Summary
sudo apt upgradefrom the Ubuntu dependency step incpp-ci-serial-programs-base.yml.Why
The Ubuntu clang job on main (run 39057056406) failed before compiling anything.
apt upgradewas upgrading all 22 preinstalled packages that had updates (apache2, firefox, snapd, ssh, curl, tzdata, ...). The firefox package now installs a snap, and fetching it fromapi.snapcraft.iotimed out with HTTP 408, so dpkg failed and the step exited with code 100.None of those packages are used by the build.
apt installstill upgrades any dependency thatclang-tools,libopencv-dev,libsystemd-devor the libdpp .deb need, so the only change is that unrelated packages are no longer upgraded. Each Ubuntu job also gets about a minute faster.Test plan
🤖 Generated with Claude Code