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 failing tests on 1.11-beta #1862

Merged
merged 6 commits into from
May 27, 2024

Conversation

andreasnoack
Copy link
Member

We need a slightly larger sample size when testing DiscreteNonParametric to ensure that empirical moments are close enough to theoretical moments.

The semicircle tests were also vulnerable to changes to the drawn variates so I've switched from MersenneTwister to StableRNGs.

@codecov-commenter
Copy link

codecov-commenter commented May 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.87%. Comparing base (f852803) to head (57daf6a).
Report is 2 commits behind head on andreasnoack-patch-1.

Additional details and impacted files
@@                   Coverage Diff                    @@
##           andreasnoack-patch-1    #1862      +/-   ##
========================================================
- Coverage                 85.96%   85.87%   -0.09%     
========================================================
  Files                       144      144              
  Lines                      8647     8636      -11     
========================================================
- Hits                       7433     7416      -17     
- Misses                     1214     1220       +6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

test/univariate/continuous/semicircle.jl Outdated Show resolved Hide resolved
test/univariate/locationscale.jl Outdated Show resolved Hide resolved
test/univariate/locationscale.jl Outdated Show resolved Hide resolved
andreasnoack and others added 3 commits May 27, 2024 17:31
Co-authored-by: David Widmann <[email protected]>
Co-authored-by: David Widmann <[email protected]>
Co-authored-by: David Widmann <[email protected]>
@andreasnoack andreasnoack merged commit 8c3446f into andreasnoack-patch-1 May 27, 2024
9 checks passed
@andreasnoack andreasnoack deleted the an/samplesizenonparametric branch May 27, 2024 18:26
@andreasnoack
Copy link
Member Author

This one was against my other PR. I think we should cherry-pick what's here and go with your PR instead.

devmotion added a commit that referenced this pull request May 27, 2024
* Increase sample size when testing empirical moments of DiscreteNonParametric

* Use StableRNGs for semicircle.jl to avoid breakage on 1.11-beta

* Run CI on all PRs. Also CI for workflow_dispatch and merge_group

* Update semicircle.jl

Co-authored-by: David Widmann <[email protected]>

* Update locationscale.jl

Co-authored-by: David Widmann <[email protected]>

* Update locationscale.jl

Co-authored-by: David Widmann <[email protected]>

---------

Co-authored-by: David Widmann <[email protected]>
devmotion added a commit that referenced this pull request Jun 28, 2024
…ns/cache (#1863)

* Test prereleases if available

* Fix name?

* Fix matrix

* Fixes

* Fix syntax

* Another round of fixes

* Remove prerelease CI

* Better mac fix?

* Fix typo

* Fix failing tests on 1.11-beta (#1862)

* Increase sample size when testing empirical moments of DiscreteNonParametric

* Use StableRNGs for semicircle.jl to avoid breakage on 1.11-beta

* Run CI on all PRs. Also CI for workflow_dispatch and merge_group

* Update semicircle.jl

Co-authored-by: David Widmann <[email protected]>

* Update locationscale.jl

Co-authored-by: David Widmann <[email protected]>

* Update locationscale.jl

Co-authored-by: David Widmann <[email protected]>

---------

Co-authored-by: David Widmann <[email protected]>

---------

Co-authored-by: Andreas Noack <[email protected]>
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.

3 participants