-
Notifications
You must be signed in to change notification settings - Fork 177
Separate nsclean tests from standard runs #9453
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
Separate nsclean tests from standard runs #9453
Conversation
Initial regtests to generate truth files: |
dd78bdc
to
e2e9886
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #9453 +/- ##
=======================================
Coverage 77.86% 77.86%
=======================================
Files 362 362
Lines 36335 36335
=======================================
Hits 28294 28294
Misses 8041 8041 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
e2e9886
to
d76d25c
Compare
Full regtests here: The new nsclean tests should pass - I uploaded truth files for them. The spec2 products will need okifying when this goes in. Diffs are as expected, except that there are some unrelated MIRI LRS diffs for optimal extraction, from a new PSF reference file delivered today. |
d76d25c
to
993ad5e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there any easy way to skip some steps, or otherwise reduce the runtime, of the added nsclean tests? It seems to me that these tests are now mostly covering identical functionality, with the exception of that test (and its integration within the pipeline).
The new runtime tracker shows me that the tracked instance of calwebb_spec2 takes just over 2 minutes, so an extremely rough estimate would be that this PR adds 6 minutes of runtime to the regtest suite. Which isn't a lot, but it's probably like 10%.
I could just run the nsclean step and check that output if that's preferable. I like running it from the spec2 pipeline because that also checks the integration of the step. I also generally find it useful when the subsequent products are also produced and checked - sometimes it's helpful for diagnosing the impact of a new diff. But maybe none of that is important here, since we expect this step will eventually be removed. |
I can see both sides. I'll leave it up to you |
As long as we're still calling nsclean in the spec2 pipeline, I'd like to make sure we test it in that context. I think the extra runtime is not too extreme. I filed a ticket to remove nsclean: JP-4005. If we can get that done, the extra tests won't be around much longer. |
993ad5e
to
9c837cd
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Both my questions have been answered, thanks Melanie!
Currently most NIRSpec spec2 tests explicitly turn nsclean on, but it is off by default, it is a deprecated step, and it is a numerically sensitive algorithm. It would be helpful to separate out nsclean test results from standard runs.
Tasks
Build 12.0
(use the latest build if not sure)no-changelog-entry-needed
)changes/
:echo "changed something" > changes/<PR#>.<changetype>.rst
(see changelog readme for instructions)docs/
pageokify_regtests
to update the truth files