Coverage Issue for HashTable and TimSorter Reducing Overall Code Coverage
Summary We’ve encountered a coverage issue related to two classes, HashTable and TimSorter, which is impacting the overall code coverage in our project. Despite the current PR achieving 100% coverage for the changes it introduces, these two classes are not meeting the coverage standards, which is causing a blockage due to Codecov warnings.
To Reproduce
- Update your branch with the latest changes from master.
- Run Codecov or check the coverage report.
- Observe that the overall coverage is lowered due to the indirect changes affecting HashTable and TimSort.
Expected behavior
- HashTable and TimSort should have adequate unit test coverage.
- The overall coverage metric should reflect a high coverage rate, ideally not impacted negatively by indirect changes.
Actual behavior
- HashTable and TimSort are not covered sufficiently.
- The overall coverage metric is reduced, leading to Codecov warnings and PR blockage.
Thank you for opening the issue, it probably happens because of randomization in tests, so coverage fluctuates a bit. I tried fixing some places where this happened, but never got to all of them. Just to make it clear, you are working on a fix, right? I'll assign you to the issue then
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.
seems this bug fixed with PR 486
#486 didn't change the classes in question or their tests, so I think the issue is still present
Hi siriak is this issue still opened, an you assigned it to me? I think I can work on it. I could rescue my account back.
is any one still working on this?
The issue is still present, at least for TimSorter. Feel free to pick it up
So, the issue was lines 373-375 was not covered by the tests? Is anyone still working on this issue?
They are covered sporadically by randomized tests, but this means sometimes they are not covered and coverage check fails on pull requests that are not related to TimSorter. I think noone is working on it now, so you can start. What we need is a deterministic test that covers this branch
If the timsort tests still need fixing can I pick this up?
Yes, please pick it up
Let's keep it open for a while, but then close it if the issue is resolved completely
@kamikkels the issue is still present in HashTable
ahh, I think testing that bit might require some reflection edit: nope, for some reason I though resize was private, test added for resize with a negative key
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.
I think it´s resolved