Skip to content

Conversation

@AntoinePrv
Copy link
Member

@AntoinePrv AntoinePrv commented May 6, 2025

This part of the SubdirData refactor. Despite big changes, this PR should be rather straightforward. The logic remains unchanged, things are only moved around. Main improvements are:

  • Remove context
  • Add documentation
  • Reduce class-level side effects
  • Explicit function names

@AntoinePrv AntoinePrv added the release::maintenance For PRs related to maintenance label May 6, 2025
@codecov
Copy link

codecov bot commented May 6, 2025

Codecov Report

Attention: Patch coverage is 63.18681% with 67 lines in your changes missing coverage. Please review.

Please upload report for BASE (main@1b3b9e1). Learn more about missing BASE report.

Files with missing lines Patch % Lines
libmambapy/src/libmambapy/bindings/legacy.cpp 0.00% 31 Missing ⚠️
libmamba/src/api/channel_loader.cpp 0.00% 17 Missing ⚠️
libmamba/src/core/subdirdata.cpp 85.04% 16 Missing ⚠️
libmamba/src/specs/platform.cpp 66.66% 2 Missing ⚠️
libmamba/src/core/package_database_loader.cpp 80.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3926   +/-   ##
=======================================
  Coverage        ?   63.53%           
=======================================
  Files           ?      300           
  Lines           ?    37481           
  Branches        ?     2783           
=======================================
  Hits            ?    23812           
  Misses          ?    13616           
  Partials        ?       53           

☔ 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.

@AntoinePrv AntoinePrv force-pushed the channel-loader branch 3 times, most recently from 8d30ced to 67e4d93 Compare May 9, 2025 20:28
@AntoinePrv AntoinePrv marked this pull request as ready for review May 12, 2025 12:08
py::arg("db")
)
.def("loaded", &SubdirData::is_loaded)
.def("loaded", &SubdirData::valid_cache_found)
Copy link
Member

Choose a reason for hiding this comment

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

Should this API also be deprecated in favor of valid_cache_found?

Copy link
Member Author

Choose a reason for hiding this comment

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

No need here, since the whole class will be deprecated in favor of a new one.

@AntoinePrv AntoinePrv merged commit 9ad464b into mamba-org:main May 12, 2025
37 checks passed
@AntoinePrv AntoinePrv deleted the channel-loader branch May 12, 2025 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release::maintenance For PRs related to maintenance

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants