-
Notifications
You must be signed in to change notification settings - Fork 26
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
💚 Resolve irregularly failing tests #469
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #469 +/- ##
=======================================
- Coverage 90.4% 90.4% -0.1%
=======================================
Files 86 86
Lines 9965 9975 +10
Branches 1696 1696
=======================================
+ Hits 9012 9018 +6
- Misses 953 957 +4
|
@burgholzer I substituted all vector accesses that happened with the []-operator with a call to the method The issue of the failing test was actually not a Windows problem; on other machines, the error could have happened as well and would have resulted in a segmentation fault. I adapted the test case now accordingly. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for digging into this!
Overall looks good to me.
I just skimmed the changes and added suggestions where I deemed that the range checked access is definitely not necessary because a range check is already conducted before that.
You should be able to simply batch up all suggestions into a single commit on GitHub.
I'd keep the other at's just for safety.
Thanks a lot for going through them thoroughly. I will add these suggestions. |
Do I need to care about the failing coverage test since the same branches are tested as before? |
Good question. In principle, I'd say not really. I am ok with merging this as-is. If you feel bored, you could probably just write an additional test that covers some of the previously untouched lines and the CI would be totally happy. |
I am working on proper tests right now that actually test the functionality (not only the termination). This I think makes more sense after all. |
Makes sense. I'd guess you'd prefer to do that in a separate PR, right? Or should I wait before merging this one? |
I'll open a new PR for that soon. |
Description
The test of the NA-mapper failed from time to time. The cause seems to be the size of the entangling zone that is too narrow when the mapper comes up with a suboptimal run.
Checklist: