Skip to content

Don't test da.prod on large integer data - #8893

Merged
jcrist merged 1 commit into
dask:mainfrom
jcrist:dont-test-prod-on-big-integers
Apr 7, 2022
Merged

jcrist merged 1 commit into
dask:mainfrom
jcrist:dont-test-prod-on-big-integers

Conversation

@jcrist

@jcrist jcrist commented Apr 6, 2022 •

Copy link
Copy Markdown
Member

Not sure why this test only periodically fails (perhaps something numpy internal?), but in retrospect this was never a good test. np.arange(1, 122).prod() will overflow for all integer data - in this case prod overflows enough to hit 0 at np.arange(1, 67).prod(), meaning any larger values will also go to zero. It's not a good test.

Since the large array is mainly used to validate the reduction code (tree reductions, chunk/combine/aggregate), skipping testing prod on integral data seems fine to me. Should hopefully fix the flakiness of this test on windows CI.

Not sure why this test only periodically fails (perhaps something numpy
internal?), but in retrospect this was never a good test. `np.arange(1,
122).prod()` will overflow for all integer data - in this case `prod`
*just happens* to overflow enough times to hit exact 0 at `np.arange(1,
67).prod()`, in which case all larger arrays still result in 0. It's not
a good test.

Since the large array is mainly used to validate the reduction code
(tree reductions, chunk/combine/aggregate), skipping testing prod on
integral data seems fine to me. Should hopefully fix the flakiness of
this test on windows CI.
@github-actions github-actions Bot added the array label Apr 6, 2022
@jcrist

jcrist commented Apr 6, 2022 •

Copy link
Copy Markdown
Member Author

Went looking for an issue, and saw @jrbourbeau just opened one. Fixes #8892.

@jcrist
jcrist merged commit 1b1a96b into dask:main Apr 7, 2022
@jcrist
jcrist deleted the dont-test-prod-on-big-integers branch April 7, 2022 00:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant