8000 update test to allow easier deprecation of `ignore_version_mismatch` by braingram · Pull Request #8693 · spacetelescope/jwst · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

update test to allow easier deprecation of ignore_version_mismatch #8693

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

Merged
merged 1 commit into from
Aug 8, 2024

Conversation

braingram
Copy link
Collaborator
@braingram braingram commented Aug 7, 2024

This PR adds a filter to ignore a deprecation warning for an upcoming asdf deprecation:
asdf-format/asdf#1819
ignore_version_mismatch has done nothing since asdf 3.0.0. However it is currently set in stdatamodels:
spacetelescope/stdatamodels#313
Deprecating the feature in asdf will cause 1 jwst test to fail which turns all warnings into errors:

warnings.simplefilter("error")

This PR ignores the upcoming deprecation warning to allow the test to continue to pass. The trigger for the warning is being addressed in the above stdatamodels PR but would otherwise require a new stdatamodels release (with the above PR). Filtering this warning seems like an easier option.

Checklist for PR authors (skip items if you don't have permissions or they are not applicable)

  • added entry in CHANGES.rst within the relevant release section
  • updated or added relevant tests
  • updated relevant documentation
  • added relevant milestone
  • added relevant label(s)
  • ran regression tests, post a link to the Jenkins job below.
    How to run regression tests on a PR
  • All comments are resolved
  • Make sure the JIRA ticket is resolved properly

@braingram braingram changed the title allow AsdfDeprecationWarning in test update test to allow easier deprecation of ignore_version_mismatch Aug 7, 2024
Copy link
codecov bot commented Aug 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 60.38%. Comparing base (f6c4095) to head (ccef809).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #8693   +/-   ##
=======================================
  Coverage   60.38%   60.38%           
=======================================
  Files         372      372           
  Lines       38337    38337           
=======================================
  Hits        23148    23148           
  Misses      15189    15189           

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

@braingram braingram marked this pull request as ready for review August 8, 2024 12:36
@braingram braingram requested a review from a team as a code owner August 8, 2024 12:36
Copy link
Contributor
@tapastro tapastro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good - I'll have to find a good place for a reminder to remove this once stdatamodels has its next release...

@tapastro tapastro merged commit 4ecb40c into spacetelescope:master Aug 8, 2024
27 checks passed
@braingram braingram deleted the dep_warning branch August 8, 2024 16:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0