Skip to content

Enable sharded repodata for repoquery search|depends command #822

@travishathaway

Description

@travishathaway

Checklist

  • I added a descriptive title
  • I searched open requests and couldn't find a duplicate

What is the idea?

We should add the new sharded repodata feature to the conda repoquery search|depends command in this repository.

Why is this needed?

For faster searches and feature parity with the rest of the codebase.

What should happen?

  • Update conda_libmamba_solver/repoquery.py so that the LibMambaIndexHelper objects created there are passed an in_state (SolverInputState object). This in_state object needs to be aware of the current environment and the search term being passed via the command line arguments.
  • Make sure that the code path for the whoneeds subcommand does not use sharded repodata. That needs the entire repodata to search all packages that rely on the provided pacakge name.
  • Add tests to verify these searches are actually using sharded repodata fetching (use the http_server_shards fixture for this).

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    source::contributorcreated by a frequent contributortype::featurerequest for a new feature or capability

    Type

    No type

    Projects

    Status

    Refinement 🃏

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions