-
Notifications
You must be signed in to change notification settings - Fork 96
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
gdal3 ci #86
gdal3 ci #86
Conversation
@michaelkirk Nice scripts! Looking through some of the proj tests that have failed, it seems the test case indeed covers gdal 3.0 also. See for example:
It seems to expect the feature Some of the raster tests are being run on a png file, which seems to have been fixed upstream to not give any GIS metadata (scale, offset). Might be prudent to use a geotiff here (see "tinymarble.png"). We could convert the png into a tiff as follows:
This will create a |
7f1774d
to
6e7b1b3
Compare
An update: GDAL 2.0 builds passing on linux (ubuntu trusty) and macos. GDAL 3.0 build on macos is failing these two tests:
https://travis-ci.org/github/georust/gdal/jobs/722360412#L298 these the the problematic lines: On macos, both fail because
Interestingly, GDAL 3.0 build on linux (ubuntu bionic) is passing these same tests: Does that debunk the theory that it's just a matter of a bad PNG @rmanoka? For context, I'm not familiar with GDAL, or even explicitly using it. This was all in pursuit of updating to the latest geo-types, but figured I should have a working test suite first. |
Also, just tried this, and tests still failing for me. |
@michaelkirk Found this relevant issue on OSGeo/gdal. It seems like it changed with release 3.1.0. The linux CI might be passing because it is 3.x but < 3.1.0. The issue also suggests the same behavior for tif files, so I was wrong there. Unfortunately, we can't use the feature flag as the regression is between 3.0 and 3.1.0. Could you try this: once you have the tinymarble.tif ; run:
Then, in the test, we should look for these two values (instead of 1.0, 0.0). Now that we're setting explicit non-default values, I'm hoping it will reflect in the calls. |
451f712
to
de8ae12
Compare
Thanks for your guidance @rmanoka, I think this PR is now ready for review. |
de8ae12
to
5b7fac5
Compare
Hi, thank you for your contribution. This kind of issue is why i ceated the "Feature_gated_versions" branch which i intend to merge into master soon. It splits gdal 2 and 3 and add Features for different versions. |
To be clear, the issue here was not one of a new feature being added or removed. Rather, the behavior of an existing method changed and we weren't running CI to test that version. |
Oh sorry if i got it wrong. There are so many issues related to the versioning i thought it is one of them. |
Could you update this PR to reflect the changes in version handling? |
f73b548
to
d887cd3
Compare
- enable GDAL3 tests for CI - Speed up gdal3 build on osx by using newer image instead of brew upgrade for `rasterband.scale` and `rasterband.offset`, default values behave differently for v3.1. See OSGeo/gdal#2579 for details. gdalwarp -to SRC_METHOD=NO_GEOTRANSFORM -te 0 0 100 50 tinymarble.png offset_scaled_tinymarble.tif gdal_edit -scale 1.2 -offset 12 offset_scaled_tinymarble.tif prebuild 3.1 bindings Built on the gdal 3.1.0 ubuntu-full docker container: https://hub.docker.com/layers/osgeo/gdal/ubuntu-full-3.1.0/images/sha256-6c6bf79e32b6f33d1d2b29761f78e05557b0f2a491fe799ae1e56aad3c5c868d
d887cd3
to
879d6b2
Compare
Done! Provided CI passes this should be good to go. |
Tests are currently failing for gdal 3.1 on both mac and linux.
Crate changes
CI Changes
For now, I've maintained all the existing stable, beta, nightly gdal 2.0 test runners, though it might make sense to remove some of these older ones and emphasize more modern combinations if that better reflects the user base. The work in this PR makes it fairly easy to shuffle around the test matrix.