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

Speed up BBH domain tests #4755

Merged
merged 2 commits into from Feb 21, 2023
Merged

Conversation

nilsvu
Copy link
Member

@nilsvu nilsvu commented Feb 19, 2023

Proposed changes

These test have been timing out repeatedly. Instead of testing all possible combinations of options, this PR switches to fuzzy testing, as started in #4697.

Upgrade instructions

Code review checklist

  • The code is documented and the documentation renders correctly. Run
    make doc to generate the documentation locally into BUILD_DIR/docs/html.
    Then open index.html.
  • The code follows the stylistic and code quality guidelines listed in the
    code review guide.
  • The PR lists upgrade instructions and is labeled bugfix or
    new feature if appropriate.

Further comments

Useful for fuzzy testing a large number of option combinations.
Copy link
Member

@nilsdeppe nilsdeppe left a comment

Choose a reason for hiding this comment

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

LGTM, one suggestion. Squash if you agree, or just merge if you disagree!

* \brief A random element between `start` and `end`
*/
template <typename Iter>
Iter random_sample(Iter start, Iter end,
Copy link
Member

Choose a reason for hiding this comment

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

This seems pretty generic, maybe move to Utilities/RandomSample.hpp?

Copy link
Member Author

Choose a reason for hiding this comment

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

I can't think of a use case outside of tests right now, so I suggest we keep it in tests/ for now

@nilsvu nilsvu merged commit f0dc4a6 into sxs-collaboration:develop Feb 21, 2023
@nilsvu nilsvu deleted the test_bbh_domain branch February 21, 2023 23:26
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.

None yet

2 participants