Skip to content

feat: Sharded Repodata Support for repoquery#4226

Open
jjerphan wants to merge 3 commits intomamba-org:mainfrom
jjerphan:feat/sharded-repodata-repoquery
Open

feat: Sharded Repodata Support for repoquery#4226
jjerphan wants to merge 3 commits intomamba-org:mainfrom
jjerphan:feat/sharded-repodata-repoquery

Conversation

@jjerphan
Copy link
Copy Markdown
Member

@jjerphan jjerphan commented Apr 9, 2026

Description

Type of Change

  • Bugfix
  • Feature / enhancement
  • CI / Documentation
  • Maintenance

Checklist

  • My code follows the general style and conventions of the codebase, ensuring consistency
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • My changes generate no new warnings
  • I have run pre-commit run --all locally in the source folder and confirmed that there are no linter errors.
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing tests pass locally with my changes

Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
@github-actions github-actions bot added the release::enhancements For enhancements PRs or implementing features label Apr 9, 2026
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 9, 2026

Codecov Report

❌ Patch coverage is 53.33333% with 28 lines in your changes missing coverage. Please review.
✅ Project coverage is 52.75%. Comparing base (f7d6d8e) to head (1ff541e).

Files with missing lines Patch % Lines
libmamba/src/api/repoquery.cpp 0.00% 12 Missing ⚠️
libmamba/src/core/transaction_context.cpp 60.00% 12 Missing ⚠️
libmamba/src/core/query.cpp 50.00% 3 Missing ⚠️
libmamba/src/api/utils.cpp 91.66% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4226      +/-   ##
==========================================
+ Coverage   52.73%   52.75%   +0.02%     
==========================================
  Files         240      240              
  Lines       29526    29551      +25     
  Branches     3154     3159       +5     
==========================================
+ Hits        15570    15591      +21     
- Misses      13953    13957       +4     
  Partials        3        3              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

jjerphan added 2 commits April 9, 2026 13:36
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
Comment on lines +264 to +267
if platform.system() == "Windows":
assert package_info["python_site_packages_path"] == "Lib/site-packages"
else:
assert package_info["python_site_packages_path"] == "lib/python3.13t/site-packages"
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Is this correct? This is based on:

// On Windows, `libmamba` should install all python packages into the
// canonical `Lib/site-packages` location (independently of the python version
// and of freethreading).
const std::string canonical_site_packages = (fs::u8path("Lib") / "site-packages")
.generic_string();
return canonical_site_packages;

which is based on what I have observed.

if (!parsed || parsed->name().is_free() || !parsed->name().is_exact())
{
return {};
}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Maybe it would be better to log the failing parsing and continue?

if (name.empty())
{
return {};
}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Same remark here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release::enhancements For enhancements PRs or implementing features

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants