-
Notifications
You must be signed in to change notification settings - Fork 107
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
Add depsolving and package search to cloudapi #4390
Open
bcl
wants to merge
9
commits into
osbuild:main
Choose a base branch
from
bcl:main-cloudapi-packages
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains 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
Note, this builds on the depsolving PR so I've closed it in favor of this one. Last 2 commits are package search and the previous ones lay the groundwork and implement depsolve. |
bcl
changed the title
Main cloudapi packages
Add depsolving and package search to cloudapi
Sep 27, 2024
bcl
force-pushed
the
main-cloudapi-packages
branch
2 times, most recently
from
October 15, 2024 21:14
ef7f046
to
80d2024
Compare
This PR is stale because it has been open 30 days with no activity. Remove "Stale" label or comment or this will be closed in 7 days. |
If included it overrides the architecture in the compose image request. Related: RHEL-60125
This will allow depsolving blueprints and returning package metadata for the dependencies. Related: RHEL-60125
This function only depends on the Blueprint (cloudapi request type, not the internal/blueprint) so move it to a function on that so that it can be reused by other users of the cloudapi Blueprint. Related: RHEL-60125
Related: RHEL-60125
In order to reuse PackageMetadata with DepsolveResponse and not include unused fields this changes the sigmd5 entry to an optional field. This doesn't effect the use of PackageMetadata in the Compose response since it is always set, and it allows it to be omitted in the response for depsolving. Also adds a basic test for stagesToPackageMetadata Related: RHEL-60125
This also adds an actual repository json file for the test-disro. Without this the repo.ListDistros() function doesn't return any actual distros. Related: RHEL-60125
This converts the request's blueprint to an internal/blueprint, optionally selects the blueprint's distro and arch to override the host's and depsolves the blueprint. Also adds mock dnfjson depsolving to the test framework. And tests for the new behavior. Resolves: RHEL-60125
This will be used to retrieve information about specific packages, or packages matching a search glob pattern. Related: RHEL-60136
This takes the same input as depsolving (a blueprint and an optional list of repositories), searches the package metadata and returns the info about the matching packages in a structure that is similar to that returned by the weldrapi projects API. If the distro and/or arch are set in the blueprint they override the host's distro and arch. Resolves: RHEL-60136
bcl
force-pushed
the
main-cloudapi-packages
branch
from
November 15, 2024 18:18
80d2024
to
2a20e5c
Compare
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 pull request includes: