Skip to content

imgtestlib: handle missing sources key in tests#2447

Open
avitova wants to merge 1 commit into
osbuild:mainfrom
avitova:safe-access-curl2
Open

imgtestlib: handle missing sources key in tests#2447
avitova wants to merge 1 commit into
osbuild:mainfrom
avitova:safe-access-curl2

Conversation

@avitova

@avitova avitova commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

Prevent a KeyError crash when accessing org.osbuild.curl for missing sources.

This commit also reconciles dropped changes in imgtestlib.

During the time when the imgtestlib split PR was open [1], some changes were merged and the PR had to be rebased. During the rebase, I (AK) missed some of the changes that were already merged, essentially reverting them.

I went through all functions that were in the monolithic imgtestlib and made sure to bring in all changes that were dropped and adapted them to newer changes.

[1] #2383

@avitova avitova requested review from a team, achilleas-k and thozza as code owners June 19, 2026 13:14
@avitova avitova requested a review from supakeen June 19, 2026 13:14

@achilleas-k achilleas-k left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for cleaning up the mess :)

Prevent a KeyError crash when accessing org.osbuild.curl for missing
sources.

This commit also reconciles dropped changes in imgtestlib.

During the time when the imgtestlib split PR was open [1], some changes
were merged and the PR had to be rebased. During the rebase, I (AK)
missed some of the changes that were already merged, essentially
reverting them.

I went through all functions that were in the monolithic imgtestlib and
made sure to bring in all changes that were dropped and adapted them to
newer changes.

[1] osbuild#2383

Co-authored-by: Achilleas Koutsou <achilleas@koutsou.net>
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