Skip to content

Fix get_ci_runner_distro_for() - #2718

Merged
achilleas-k merged 2 commits into
osbuild:mainfrom
achilleas-k:fix/runner-distro-getter
Sep 25, 2026
Merged

achilleas-k merged 2 commits into
osbuild:mainfrom
achilleas-k:fix/runner-distro-getter

Conversation

@achilleas-k

Copy link
Copy Markdown
Member

The get_ci_runner_distro_for() function returns the base distribution name given a runner string from the Schutzfile. It assumed all runners were of the form <cloud>/<distro>-<architecture>. This was valid until recently when we added -kvm variants for certain runners.

This PR adds a unit test that covers the runner strings we currently use and fixes the funciton to return the distro name for all variants.

The buggy function is currently causing failures in osbuild's CI because it uses the library to fetch images from the build cache.

@avitova avitova left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I appreciate those comments. 👌

@achilleas-k

achilleas-k commented Sep 25, 2026 •

Copy link
Copy Markdown
Member Author

I appreciate those comments. 👌

Oh no, but now I noticed that after a certain point, the variable name distro_arch is wrong!

(I'm not going to fix it in this PR)

@achilleas-k
achilleas-k added this pull request to the merge queue Sep 25, 2026
Merged via the queue into osbuild:main with commit 07a6694 Sep 25, 2026
52 of 54 checks passed
@achilleas-k
achilleas-k deleted the fix/runner-distro-getter branch September 25, 2026 20:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants