Closed chrstnbwnkl closed 4 months ago
we can run the test once the update only PR is merged and we change the target branch to main :)
hm, I just realize CI is still running on ubuntu 20.04. might wanna change that to ubuntu-latest (either here or at some point).
It might also be good to have a test in place. Current tests are checking whether a package was created and has the right graph packaged, but all from a request's response. I guess it'd be enough to check the path set by the env var?
hm, I just realize CI is still running on ubuntu 20.04. might wanna change that to ubuntu-latest (either here or at some point).
was thinking about the other PR :sweat_smile:
It might also be good to have a test in place. Current tests are checking whether a package was created and has the right graph packaged, but all from a request's response. I guess it'd be enough to check the path set by the env var?
End to end testing is not trivial, we don't actually push the jobs in the Arq queue when testing. This would require us to have a distinct test setup with only a small PBF instead of the planet and so on... maybe something for the future.
Proposed Changes
This PR separates the directories for created packages and all other files (i.e. planet PBF, graph, etc.).
DATA_DIR
refers to the location where all created packages will be stored whereasTMP_DIR
stores the planet PBF, the graph tiles, elevation data, and so on.Migration
Migration should be easy, just move all the files that are not packaged extracts to the new
TMP_DATA_DIR
location before starting the services.