-
Notifications
You must be signed in to change notification settings - Fork 28
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
return a value for compare_asdf #867
Conversation
Given the nature of the change it seems unlikely that the regression tests will pass cleanly. So far I'm seeing 14 errors (only 10 are expected due to missing webbpsf data, see #865). |
Codecov ReportPatch coverage is
📢 Thoughts on this report? Let us know!. |
The output is less-than-ideal. For the failing
The special characters don't appear to be formatted anywhere in the test output (so simply returning the diff result is likely not the preferred solution). Even passing it through a
I am also suspicious that the current romancal/romancal/regtest/conftest.py Lines 203 to 212 in 68e6e0d
based on the output of the failing test_level2_grism_processing_pipeline test:
|
The devdeps failure looks unrelated to the changes in this PR and appear to be an issue with webbpsf and numpy 2.0. I opened an issue as it does not appear that webbpsf yet tests against numpy 2.0 and might be effected by the numpy scalar repr changes: |
Thanks Brett. Yeah, we're running on parallel paths. FWIW, I updated ignore attrs as follows as I attempt to figure out what else is broken:
|
Re when we should merge this PR---I'd like to scope out a little better what fraction of the issues this PR identifies are related to limitations of asdf.commands.diff and what fraction are errors we need to address on the romancal side before we merge. |
Sounds great. I'll make this draft until we can sort out the errors. |
94a9a77
to
cf9962d
Compare
for more information, see https://pre-commit.ci
Closing in favor of #868 |
There are many uses of
compare_asdf
in the regression tests like the following:romancal/romancal/regtest/test_wfi_pipeline.py
Line 43 in 68e6e0d
These
assert
s are alwaysTrue
ascompare_asdf
does not return a value (so it's output will always beNone
).romancal/romancal/regtest/regtestdata.py
Lines 528 to 532 in 68e6e0d
This PR updates
compare_asdf
to output the string output of the diff or None if the string is empty (as is seen when the compared files are identical).Regression tests running: https://plwishmaster.stsci.edu:8081/blue/organizations/jenkins/RT%2FRoman-Developers-Pull-Requests/detail/Roman-Developers-Pull-Requests/351/pipeline/205
Checklist
CHANGES.rst
under the corresponding subsection