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

Reset the max-examples default back to 100 #254

Merged
merged 3 commits into from
Jun 5, 2024

Conversation

asmeurer
Copy link
Member

The tests run fast enough now that there's no need to lower this to 20.

See the discussion at #246.

The tests run fast enough now that there's no need to lower this to 20.

See the discussion at data-apis#246.
@asmeurer asmeurer mentioned this pull request Apr 19, 2024
@honno
Copy link
Member

honno commented May 10, 2024

Could we just change our own workflow to have --hypothesis-max-examples=100, instead of the default? As defo for something like JAX this makes it basically unusable on default runs 😅

@asmeurer
Copy link
Member Author

asmeurer commented May 14, 2024

JAX is the exception, not us. If JAX is slower than most libraries, they should manually lower their max examples. Library defaults should match the common case, not the least common denominator.

Previously it was log(max_examples), but this makes it very difficult to
actually run a lot of examples by increasing max_examples.
@asmeurer
Copy link
Member Author

asmeurer commented Jun 5, 2024

I also changed the unvectorized max examples to scale linearly with max-examples instead of logarithmically. Otherwise, it's very difficult to actually run a lot of examples for unvectorized tests. We can adjust the scaling factor if 1/10 is not small enough by default.

@asmeurer asmeurer enabled auto-merge June 5, 2024 22:42
@asmeurer asmeurer merged commit d295a0a into data-apis:master Jun 5, 2024
4 checks passed
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