-
Notifications
You must be signed in to change notification settings - Fork 4
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
RasterNormalizer#add_alpha_channel: tweak gdalwarp command so it adds the alpha channel correctly and uses compression when creating the output file #799
base: main
Are you sure you want to change the base?
Conversation
hmm, i noticed a honeybadger alert for two failed invocations of this updated call. will put this in draft while i investigate a bit.
|
Please note that add_alpha channel is being moved to Load Raster robot in #818 |
005aaf1
to
17b104e
Compare
thanks for the heads up! as long as the method stays pretty much the same in its new home, should still be a pretty easy rebase (though would've been harder without that tip!). this change will be a little more complicated with some discoveries i made testing yesterday (will leave notes on #802), but it should still be a pretty small change. |
@edsu i requested your re-review, since this has changed a bit based on what i learned yesterday. also requested manual testing from kim, and will run through integration tests again before taking out of draft. i'll also squash into one commit -- just wanted to leave an easy to look at trail of what's been tried since this still needs a bit more testing to confirm that it's actually the right solution. |
31d8a6d
to
2422941
Compare
2422941
to
5d4a9e8
Compare
revisiting this branch with some new info that @kimdurante and @edsu found. @kimdurante successfully used this command in manual testing for adding alpha channel to a variety of input files: @edsu found similar advice here: https://gis.stackexchange.com/questions/41472/setting-transparency-in-an-sld-file-for-a-4-channel-geotiff will deploy to stage for integration testing and manual testing (with one of the cloud optimized GeoTIFFs that ran into #802, and possibly some other test cases). note: if this pans out when tested, the commits should be squashed and the commit message should be cleaned up before this is merged |
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.
If we find in testing that the outline of the raster looks good in GeoServer this looks good to go!
I think we're seeing an error in stage related to adding the alpha channel? From the log:
It seems like the robot might be unhappy because the directory where the input file should be doesn't exist? But then again I think the robot cleans up the directory on errors which is kind of annoying. Maybe #820 will help in situations like this...
|
the |
We discussed this in standup on 02/26. We're going to leave this work in draft and will merge after further testing:
Per @kimdurante this work would be nice to have but is currently lower priority relative to other work-cycle work that is ready or underway. |
6435987
to
a958cca
Compare
a958cca
to
03fb2e7
Compare
03fb2e7
to
c419340
Compare
Why was this change made? 🤔
fixes #789
fixes #802
fixes #570 (hopefully!)
How was this change tested? 🤨
NOTE: as @edsu discovered (noted in the "Difficult Data" folder), enabling this compression can sometimes (one case we know of) lead to the alpha channel addition taking many hours. I realized after putting this PR up that this might occasionally lead to some very long running
normalize-data
jobs. Happily, the Sidekiq hotswap timeout for the GIS robots is already set to 4 days, which should be sufficient, as far as we've seen. And that timeout isn't even a hard limit on all gis-robot-suite jobs, just a cap on how long the job can run after a Sidekiq restart (typically triggered when updated code is deployed). See here, here, and here.⚡ ⚠ If this change involves consuming from other services or writing to shared file systems, test that GIS accessioning works properly in [stage|qa] environment, in addition to specs. ⚡