-
Notifications
You must be signed in to change notification settings - Fork 182
Temporarily don't treat drizzle deprecation warnings as errors #9963
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
base: main
Are you sure you want to change the base?
Temporarily don't treat drizzle deprecation warnings as errors #9963
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #9963 +/- ##
==========================================
+ Coverage 85.45% 85.47% +0.01%
==========================================
Files 366 366
Lines 37845 37890 +45
==========================================
+ Hits 32341 32386 +45
Misses 5504 5504 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
shouldn't we instead update our code to use the more up-to-date syntax for drizzle calls, instead of ignoring the warnings? |
|
@emolter eventually. This is to future proof for unmerged PR upstream (spacetelescope/drizzle#203). Once it is in, we can handle the code appropriately using version check. Though to do that, might have to unpin: Line 24 in 68205a9
|
pllim
left a comment
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.
Thanks! Will have to open follow-up issue to un-ignore when we can, but I think this is fine for now.
|
sorry @pllim I'm still confused. If drizzle is pinned already, then we won't encounter these DeprecationWarnings until we change the pin, right? So why do we need to ignore the warnings? |
To be clear: this PR disables conversion of 4 specific deprecation warnings that will be issued by the upcoming |
|
Ned, indeed we do not need to ignore the warnings with upper pin, but we will need them or handle the version check when pin is removed. @tapastro , when does one remove upper pin for drizzle? |
|
I may have to defer to those with more package maintenance experience - I think in an ideal world we would not have upper pins on main but would add them on all release branches? It looks like drizzle has an upper pin now because of a flurry of PRs dealing with a yanked 2.1.0 release. Perhaps instead of the deprecation warning catching, we make a PR that removes the upper pin and addresses the deprecations directly? |
|
Removing upper pin is something that can be done although we can run regression tests right now and force a specific version of I want to merge my This PR does not affect anything except treatment of 4 specific warnings in |
|
Turns out the dev requirements does not include dev version of drizzle, plus there is an upper pin, so we actually won't see these warnings until drizzle is released and we remove the upper pin. I think what Tyler proposed is as follows:
|
I am not sure how this will address testing issues. First of all, there are no changes that need to be done in |
|
Also,
The point is to test |
|
If the only failures seen are deprecation warnings elevated to errors, then I think the mission is accomplished? Alternatively, you could run a set of regression tests and do not capture the deprecation warnings - any errors would remain. I tried to start that run here: https://github.com/spacetelescope/RegressionTests/actions/runs/18883720965 |
|
@mcara - is this PR still relevant? |
In preparation for release 3.0 of
drizzlepackage, this PR disables treatment of deprecation warnings to be introduced in the upcoming release of thedrizzleas errors during testing.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_regteststo update the truth files