Skip to content
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 "compare" function in "RunDownBean.getTopLeaks". #411

Merged
merged 2 commits into from
Mar 29, 2024

Conversation

nickshulman
Copy link
Collaborator

Rationale

The Skyline Nightly Test Results page displays an error if there are a lot of leaks reported because the "Compare" method implementation in "getTopLeaks" does not exhibit the "transitive" property. It returns "0" when two doubles differ by less than 1, which means there are cases where A == B, B==C, but A < C.

@vagisha
Copy link
Collaborator

vagisha commented Mar 26, 2024

You may want to target the 23.11-SNAPSHOT branch for this one.

@nickshulman nickshulman merged commit 5e04856 into develop Mar 29, 2024
1 check passed
@nickshulman nickshulman deleted the fb_FixRunDownBeanGetTopLeaks branch March 29, 2024 01:45
labkey-jeckels pushed a commit that referenced this pull request Oct 23, 2024
Rationale
The Skyline Nightly Test Results page displays an error if there are a lot of leaks reported because the "Compare" method implementation in "getTopLeaks" does not return consistent results. This was because it was mistakenly comparing the wrong set of numbers (comparing number of bytes leaked in one test to handle leaks in the other test) such that Compare(a, b) was not necessarily the opposite of Compare(b, a).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants