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

Add depsolving and package search to cloudapi #4390

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

bcl
Copy link
Contributor

@bcl bcl commented Sep 27, 2024

This pull request includes:

  • adequate testing for the new functionality or fixed issue
  • adequate documentation informing people about the change such as
    • submit a PR for the READMEs listed here
    • submit a PR for the osbuild.org website repository if this PR changed any behavior not covered by the automatically updated READMEs

@bcl bcl mentioned this pull request Sep 27, 2024
4 tasks
@bcl
Copy link
Contributor Author

bcl commented Sep 27, 2024

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 bcl changed the title Main cloudapi packages Add depsolving and package search to cloudapi Sep 27, 2024
@bcl bcl force-pushed the main-cloudapi-packages branch 2 times, most recently from ef7f046 to 80d2024 Compare October 15, 2024 21:14
Copy link

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.

@github-actions github-actions bot added the Stale label Nov 15, 2024
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 bcl removed the Stale label Nov 15, 2024
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.

1 participant