Repository navigation
TST: Disable Gaussian1DKernel in pickle test due to flakiness - #18596
Conversation
|
Thank you for your contribution to Astropy! 🌌 This checklist is meant to remind the package maintainers who will review this pull request of some common things to look for.
|
|
👋 Thank you for your draft pull request! Do you know that you can use |
| [ | ||
| conv.CustomKernel(array=np.random.rand(15)), | ||
| conv.Gaussian1DKernel(1.0, x_size=5), | ||
| # conv.Gaussian1DKernel(1.0, x_size=5), # FIXME: Flaky failure |
There was a problem hiding this comment.
I thought @eerovaher reported that the flakiness originates in modeling. So shouldn't the "FIXME" be somewhere in modeling? Is the Gaussian1DKernel test the only one that is intermittently failing?
There was a problem hiding this comment.
I would like the FIXME to be close to the code to be uncommented in the future. I can open a follow-up issue with more info after this is merged if that helps.
From what I see, seems like only Gaussian1DKernel in the failed log. But then again, I do not go read ALL the fail logs all the time, so I cannot give you absolute guaranteee.
There was a problem hiding this comment.
astropy.convolution.Gaussian1DKernel sometimes fails check_pickling_recovery() because astropy.modeling.functional_models.Gaussian1D sometimes fails it. Fixing the latter will automatically fix the former. It would be better if the comment in the test mentioned that.
The fundamental problem seems to be that modeling pickling tests don't use the general astropy.tests.helper.check_pickling_recovery() utility. The big difference between modeling tests and check_pickling_recovery() is that the former compares original and unpickled data with numpy.testing.assert_allclose(), whereas the latter requires strict equality. It is not clear to me why modeling chose not to use the general utility.
There was a problem hiding this comment.
OK I expanded the comment as you suggested. Looks good now?
Co-authored-by: Eero Vaher <[email protected]>
6dbb3f6 to
96be159
Compare
larrybradley
left a comment
There was a problem hiding this comment.
Thanks, @pllim. Hopefully someone will fix the modeling tests.
…st due to flakiness
|
I opened #18598 as follow-up issue. Feel free to add details as you desire. Thanks, all! |
…596-on-v7.1.x Backport PR #18596 on branch v7.1.x (TST: Disable Gaussian1DKernel in pickle test due to flakiness)
Description
This pull request is to close #18569