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

Remove randomness from structure utils tests #1338

Merged
merged 1 commit into from Sep 19, 2022
Merged

Conversation

ml-evs
Copy link
Member

@ml-evs ml-evs commented Sep 19, 2022

Previously one of the structures tests were picking a random structure.

It looks like a recent test structure we added was causing this to fail like 1/20 times, so this PR removes the randomness by always testing all structures (takes milliseconds) and also always takes the absolute volume as a test value as the comparison method for computing volume is occasionally negative.

@ml-evs ml-evs added tests Related to tests adapters Issues pertaining to adapters (converters) labels Sep 19, 2022
@codecov
Copy link

codecov bot commented Sep 19, 2022

Codecov Report

Merging #1338 (2e7ecb0) into master (d58ec4d) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #1338   +/-   ##
=======================================
  Coverage   91.45%   91.45%           
=======================================
  Files          72       72           
  Lines        4366     4366           
=======================================
  Hits         3993     3993           
  Misses        373      373           
Flag Coverage Δ
project 91.45% <ø> (ø)
validator 90.86% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Copy link
Member

@CasperWA CasperWA left a comment

Choose a reason for hiding this comment

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

Cheers

@ml-evs ml-evs merged commit 0decac5 into master Sep 19, 2022
@ml-evs ml-evs deleted the ml-evs/fix_CI_flakiness branch September 19, 2022 13:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
adapters Issues pertaining to adapters (converters) tests Related to tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants