ci: Pin openSUSE to second-to-last Tumbleweed snapshot#4368
Merged
Conversation
If tests build an image with a particular `Snapshot=` (as the next commit will do), we need extension builds to use the same snapshot, so that (1) they match the base image, and (2) avoid trying to download newer packages from mirrors which don't have these yet. Read the snapshot from the main mkosi.local.conf and pass it along in `ImageConfig`, for the `--directory ...` extension builds in tests/test_extension.py.
openSUSE Tumbleweed US mirrors frequently lag behind freshly published snapshots. On US-based GitHub action runners the geo-redirector routes to US mirrors that haven't rsync'd the latest snapshot yet, so zypper/dnf get 404s and timeouts on every mirror and abort. (This never reproduces in Germany, as the primary mirrors in Nürnberg sync very quickly.) Pin the second-to-last published snapshot for openSUSE image builds, which should have had time to propagate to all mirrors. Fixes half of systemd#4365.
Contributor
Author
|
As expected, that failure is due to a broken/hanging mirror and zypper not falling back to a different one. Without mirrorlink zypper has no other fallbacks, so that's now in "we have to live with this" territory. @behrmann can we land this one for now, and I shelve #4366? |
behrmann
approved these changes
Jun 22, 2026
Contributor
|
It's already a very decent improvement over the status quo ante. Thanks, Martin! |
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.
This is a version of #4366 without the third commit that moves to metalink. metalink is good for using more mirrors, and auto-falling back away from broken ones (of which there are plenty). However, the metalink entry point
slc-mirror.opensuse.orgis itself unreliable: example, example, example.So we now need to pick our poison: Fail on
slc-mirroras above, or fail on individual broken mirrors like this.Both this PR and #4366 improve the current situation where almost every opensuse run fails, but neither can bring reliable test runs 😢 that really needs fixing the opensuse mirror situation.
See #4365 for details.