-
-
Notifications
You must be signed in to change notification settings - Fork 584
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
Test build on different versions of GDAL etc #476
Comments
Hi @Robinlovelace,
Let me know what you think. Related: #480 |
I agree with that breakdown would suggest a different order of priorities:
|
Heads-up @Nowosad after a few successful builds it's failing again 😢 with the following message:
Any ideas what's causing that? Seems related to PROJ... https://travis-ci.org/github/Robinlovelace/geocompr/builds/673174784#L15245 |
Just saw this: #490 hopefully that fixes it, perhaps ubuntugis-unstable will ship more recent versions of PROJ in Bionic than Xenial. |
The issue also affects the Note that it's still building on Xenial despite that change: https://travis-ci.org/github/Robinlovelace/geocompr/jobs/673328829#L19 |
Which is surprising when reading this: https://docs.travis-ci.com/user/reference/bionic/ |
Probably this is our answer - https://travis-ci.community/t/bionic-builds-fail-call-xenial-solved/4899/3 |
Doesn't seem like much of an answer, more of a question, why doesn't Travis support Bionic distributions for R? Looking at https://travis-ci.org/github/ropensci/babette/builds/672968306 it looks like the author of that post is still on Xenial in Travis. Any updates on this @richelbilderbeek ? Looks like #491 may save lots of time... |
@Robinlovelace: if you take a look at the the config file of that same build you see that the package is on |
Thanks @richelbilderbeek but it still says 16.04 in the build log. I see
Here on line 16 and below, despite the |
Heads-up @Nowosad I've made some good progress towards solving this on local tests. I will push them here, which is where we should host Dockerfiles for this project I think: https://github.com/geocompr/docker |
Quick question @Nowosad, does this look like a suitable starting build matrix, with 6 options currently?: #> [1] "default_repos" "ubuntugis_unstable"
#> [3] "ubuntugis_stable" "default_repos_buildbook"
#> [5] "ubuntugis_unstable_buildbook" "ubuntugis_stable_buildbook" See here for my latest thinking on this: https://github.com/geocompr/docker#docker |
Hi @Robinlovelace, nowosad was already taken on dockerhub, so I am jakubnowosad there - https://hub.docker.com/u/jakubnowosad |
Ah, I'll fix that now. Heads-up, we now have the 10 different variants including default_repos, ubuntugis_stable, ubuntugis_unstable and dev version of dplyr (just added). Unfortunately the DockerHub's build system is very slow so it may take a day or so for all the tests, including 'buildbook' variants for each set-up type, to complete. |
One option is to use these pre-build Docker images as the basis of GH Actions runs:
|
Yep. That would be great. |
I know we should restrict a number of created docker images (it could become a pain sometime in the future), however, would it be possible to add one new with R 4.0.0 (which should be official in about 10 days..)? |
Possible. Suggest we wait for the Rocker team to add support for R 4.0.0 and build from |
@Robinlovelace, I do not know is it even possible, but maybe you can answer it - can we somehow derive GDAL, GEOS, and PROJ versions from the docker images? |
Knowing the Ubuntu version, PPA and time should be enough. The versions on the default repos will change very rarely, if at all, and I think the ubuntugis-stable and ubuntugis-unstable repos have calmed down. We could also automate checks from inside the containers but that would be a pain. We could get the build logs to print the versions. But I think just using the images and stating the versions when using them, e.g. after running |
Heads-up @Nowosad, good news: it seems the book builds fine on the dev version of
|
Great! |
I think we can almost close this now. One thought: could we set-up a test build of the book on Windows with GH actions? Let me know if you're up for giving this a bash @Nowosad, I suspect many of the recent issues are on Windows... |
@Robinlovelace I would suggest waiting on it until R 4.0 is here. |
Related: r-spatial/sf#1370 (comment) |
Heads-up @Nowosad I think we can close this now. The Only remaining task: link to this new report in the Docker section in the README I think... |
It already is for testing and can be built with:
from the docker repo. But it's probably worth keeping this issue open as a place to store issues/comments associated with this until a week or so after R 4.0.0 is officially released. |
@Robinlovelace have you seen this - https://jozef.io/r922-github-actions-r-packages/. Is it useful here? |
Not seen that, maybe useful... |
Another useful blog post - https://medium.com/@skyetetra/r-docker-faster-28e13a6d241d |
Very good to see this. I wonder to what extent we should do testing in the geocompr/docker repo and to what extent we should use GH Actions. One issue I have is that I cannot figure out how to build the book inside a Docker container with GH actions, although the previous post from jozef.io provides a pretty clear indication. Seems that just by adding
For example we can massively reduce build times, after the next version of |
We now test the build on the geocompr/geocompr:dev-osgeo-b image which has:
Good enough for now? I think so so closing this for now. |
link to the builds https://hub.docker.com/r/geocompr/geocompr/tags?page=1&ordering=last_updated |
It would be useful for debugging purposes and reproducibility to rebuild the book regularly against the most recent releases of OSGEO packages GDAL, PROJ and GEOS (are there others?). Two main ways I can think of to do this are:
I am not sure which one would be best and it makes me wonder if it's worth rethinking our approach to testing and Docker.
The text was updated successfully, but these errors were encountered: