Skip to content

Fix segfault in error messages #3912

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

Merged
merged 5 commits into from
Apr 30, 2025
Merged

Conversation

AntoinePrv
Copy link
Member

@AntoinePrv AntoinePrv commented Apr 29, 2025

Fix #3874

  • Add tag to problem_graph tests
  • Fix segfault
  • Fix pin error messages
  • Fix test loop
  • Fix error message test

@AntoinePrv AntoinePrv changed the title Fix seagfault in error messages Fix segfault in error messages Apr 29, 2025
@AntoinePrv AntoinePrv added the release::bug_fixes For PRs fixing bugs label Apr 29, 2025
@AntoinePrv AntoinePrv mentioned this pull request Apr 29, 2025
3 tasks
Copy link

codecov bot commented Apr 29, 2025

Codecov Report

Attention: Patch coverage is 98.11321% with 2 lines in your changes missing coverage. Please review.

Please upload report for BASE (main@3954f85). Learn more about missing BASE report.

Files with missing lines Patch % Lines
libmamba/tests/src/solver/test_problems_graph.cpp 97.93% 0 Missing and 2 partials ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3912   +/-   ##
=======================================
  Coverage        ?   63.40%           
=======================================
  Files           ?      300           
  Lines           ?    37156           
  Branches        ?     2782           
=======================================
  Hits            ?    23557           
  Misses          ?    13546           
  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 requested a review from jjerphan April 29, 2025 18:32
Copy link
Member

@jjerphan jjerphan left a comment

Choose a reason for hiding this comment

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

Thank you, @AntoinePrv.

{
auto db = solver::libsolv::Database{ channel_context.params() };
const auto xpt = db.add_repo_from_repodata_json(
mambatests::test_data_dir / "repodata/sudoku.json",
Copy link
Member

Choose a reason for hiding this comment

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

I guess it is fine if we cannot support fetching remote files.

Copy link
Member Author

Choose a reason for hiding this comment

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

This is a reasonably small (30'000l) file that I committed it to the repo. It's also nice to keep the test independent from the rest of Mamba.

@AntoinePrv AntoinePrv merged commit 1ac3174 into mamba-org:main Apr 30, 2025
37 of 38 checks passed
@AntoinePrv AntoinePrv deleted the fix-segfaults branch April 30, 2025 09:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release::bug_fixes For PRs fixing bugs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Segfault with sudoku problem
2 participants