Skip to content

Conversation

@achilleas-k
Copy link
Member

@achilleas-k achilleas-k commented Oct 29, 2024

This is a small update that only includes one PR from osbuild/images: osbuild/images#946

The second and third commits change the behaviour of osbuild-composer's startup when no repositories are configured.

Weldr (running on-prem) requires local repository configurations, while the API (SaaS) doesn't. However, at the time during startup when reporegistry.LoadAllRepositories() is called, it is still not known whether the Weldr API will be initialised.

Since lack of repository configurations is no longer a stop condition for osbuild-composer's startup, the Weldr API will now return with an error when no repositories are configured during its initialisation.

@achilleas-k achilleas-k force-pushed the deps/images/v0.95.0 branch 2 times, most recently from fe48bb7 to 7f38ffb Compare October 31, 2024 18:39
@achilleas-k
Copy link
Member Author

achilleas-k commented Nov 1, 2024

Bunch of failures here and I suspect I missed a test config that should have the new option enabled.

Looking at the journal log from one of the API-module-hotfixes tests, I see that ignore_missing_repos is disabled and composer did in fact stop when no repositories were found.

But, if I'm reading the test setup correctly:

🤔

@achilleas-k
Copy link
Member Author

Bunch of failures here and I suspect I missed a test config that should have the new option enabled.

Looking at the journal log from one of the API-module-hotfixes tests, I see that ignore_missing_repos is disabled and composer did in fact stop when no repositories were found.

But, if I'm reading the test setup correctly:

🤔

Oh, I see...

thozza
thozza previously approved these changes Nov 1, 2024
Copy link
Member

@thozza thozza left a comment

Choose a reason for hiding this comment

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

Amazing, thanks!

@achilleas-k
Copy link
Member Author

Sorry, missed a couple of more test configs. -_-
Updated.

osbuild/images added an error type that's returned when the reporegistry
loader doesn't find any repository configurations to load [1].  This
lets callers decide whether to stop or continue execution based on
whether repository configurations are required.

A new top-level configuration option is added for osbuild-composer that
makes it possible to start the service without having static rpm
repositories configured.  This is useful in certain (SaaS) modes where
build requests specify their own repository configurations.
If weldr tries to initialise when there are no repositories set and
ignore_missing_repos is enabled, return with an error.
@thozza thozza force-pushed the deps/images/v0.95.0 branch from 78cf7da to 02b3c02 Compare November 4, 2024 08:12
Copy link
Member

@thozza thozza left a comment

Choose a reason for hiding this comment

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

LGTM

@lzap
Copy link
Contributor

lzap commented Nov 4, 2024

All green!

@lzap lzap merged commit c9e412f into osbuild:main Nov 5, 2024
@achilleas-k achilleas-k deleted the deps/images/v0.95.0 branch November 5, 2024 09:06
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.

3 participants