-
Notifications
You must be signed in to change notification settings - Fork 175
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
Switch to Github Action and Docker based test running #841
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Codecov Report
@@ Coverage Diff @@
## develop #841 +/- ##
==========================================
+ Coverage 88.66% 88.86% +0.2%
==========================================
Files 112 112
Lines 10270 10331 +61
==========================================
+ Hits 9106 9181 +75
+ Misses 1164 1150 -14
Continue to review full report at Codecov.
|
f011d39
to
69a6ec3
Compare
7ca6bbf
to
6eca9f0
Compare
- removed docker section from docs - don't user test requriements - install datacube with all features enabled - get rid of entrypoint
assembling parts from geobase, but basing off ubuntugis-unstable for now focus is running tests
This requires pinning to older pyproj since ubungis stable doesn't have PROJ6. In the unstable PPA Cascaded Union test triggers SEGFAULT inside libgeos.
Become user named odc with compatible UID/GID to src/datacube-core, remain as root if volume is owned by root.
There seems to be issue with cloudpickle, moving _echo into stand-alone function, this makes it work. Don't care about celery anyway as this whole "executor" nonsense needs to be deleted.
Also change /env ownership to odc:odc
Running chown on startup is way too costly, so make it writable by group and add odc user to that group.
or at least in python 3.5
- remove duplicate lines - catch morph product exceptions
- Check output for expected error strings - Make sure source product is present in db for src_varname checking test
One that doesn't inject config/env options
- print error message when no config file found - print error message when misspelled/missing env requested
- python3 style typing annotations - removed some python2 workarounds
Extract database configuration components from a url
Load config options from environment variables, compatible with old style docker config.
This will be used in dockers to render environment configuration to file.
Running `python -m datacube` will generated datacube config file from environment variables.
- test -> check - mark more phony targets as such
Rather then pulling down some older version from packages.dea{..} use one that is built from current checkout.
1. Check if DATACUBE_DB_URL is set, if yes use that 2. Check if any of DB_{HOSTNAME|USERNAME|PASSWORD|DATABASE|PORT} are set, then use them, this mimics current docker setup but is deprecated in favour of DATACUBE_DB_URL 3. Check files as per usual
de54c2d
to
85b7c3a
Compare
too many force pushes, will restart from fresh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Docker for running tests
See
./docker
directoryopendatacube/datacube-tests
osgeo/gdal:ubuntu-small-3.0.2
rasterio
ubuntu-full-3.0.2
+ compiledrasterio
is a safer combo, butubuntu-full
image is rather large and takes more than a minute to load, withubuntu-small
+ binary rasterio, docker pull is quicker, less than 30s. Sinceubuntu-small
does not have netcdf support, binaryrasterio
is needed.Contains python environment with all dependencies of
datacube[s3,celery,performance,test]
pre-installed, but no datacube itself. Also contains postgresql server that gets launched for integration tests.Switch to Github Actions
Old Dockerfile
requirements-test.txt
Other Changes