-
Notifications
You must be signed in to change notification settings - Fork 299
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
Fix _entities #1260
Fix _entities #1260
Conversation
Fix iteration over entities and avoid hash collisions
Codecov Report
@@ Coverage Diff @@
## master #1260 +/- ##
=======================================
Coverage 94.09% 94.09%
=======================================
Files 26 26
Lines 5432 5434 +2
Branches 919 920 +1
=======================================
+ Hits 5111 5113 +2
Misses 190 190
Partials 131 131
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
item.HashCode(HASH_CODE_MAX) | ||
] = item # needed to avoid pseudo-duplicate entities | ||
|
||
# needed to avoid pseudo-duplicate entities |
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.
OCP does not wrap inner iterators (including MapOfShape
), so this kind of construction is needed here.
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.
Given the test failures are intermittent I was unable to reproduce the issue with the old method to compare with the fix. I tested the PR branch and did not find any problem with the new implementation. Good find if this solves the intermittent test failures.
Fix iteration over entities and avoid hash collisions. This should solve intermittent test failures.