Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use distro repos in cloudapi #3928

Merged
merged 3 commits into from
Mar 11, 2024
Merged

Use distro repos in cloudapi #3928

merged 3 commits into from
Mar 11, 2024

Conversation

bcl
Copy link
Contributor

@bcl bcl commented Feb 3, 2024

This pull request includes:

  • adequate testing for the new functionality or fixed issue
  • adequate documentation informing people about the change such as

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.

Overall, this looks good. 👍 I added one question, but nothing serious.

internal/cloudapi/v2/handler.go Outdated Show resolved Hide resolved
internal/cloudapi/v2/v2_test.go Outdated Show resolved Hide resolved
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.

I found one problem that I commented on.

Other than that, I'm wondering if it would be worth to extend some of the existing functional test cases to also cover this feature, or at least adding a new unit test for it.

The rest looks good 👍

internal/cloudapi/v2/compose.go Outdated Show resolved Hide resolved
@bcl bcl force-pushed the main-cloudapi-repos branch 2 times, most recently from 2568bdd to ef8fe72 Compare March 5, 2024 17:58
@bcl
Copy link
Contributor Author

bcl commented Mar 5, 2024

I'm wondering if it would be worth to extend some of the existing functional test cases to also cover this feature, or at least adding a new unit test for it.

Added a unit test to check it. I had to hard-code a path traversal so I could load the repos, it seems stable, but let me know if there's a better way.

@supakeen supakeen self-requested a review March 6, 2024 21:55
Copy link
Member

@supakeen supakeen left a comment

Choose a reason for hiding this comment

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

Neat.

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.

Thanks for adding the test case.

internal/cloudapi/v2/compose_test.go Show resolved Hide resolved
bcl added 3 commits March 8, 2024 15:35
This is so that both the weldr and cloud api's can use it as the source
of their repositories.
In order to support cloudapi blueprint requests from the cmdline using
composer-cli it needs to select the repositories based on the selected
distribution instead of requiring the user to include them with the
request.

If the image request includes repositories they are used, which matches
the current behavior. If the repository list is empty it will use the
distribution name to select from the repositories shipped with
osbuild-composer.
@bcl bcl enabled auto-merge (rebase) March 8, 2024 23:36
@bcl bcl merged commit 57ebfb4 into osbuild:main Mar 11, 2024
59 of 78 checks passed
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