Fix download-osm and remove osmborder#462
Conversation
…ile to correct test script path
…m to use environment variable for cache directory; adjust test script to change working directory
…L test build process
…ke8 and unittest commands
…y if it exists, improving test execution logic
…heck for the presence of the tests directory and providing appropriate feedback when no tests are found.
…ompose command to use --abort-on-container-exit, enhancing test reliability.
…2.43.0 to 2.42.4 for consistency across diagrams.
|
Thank you for the awesome work. Could you please test it with OpenMapTiles? I am getting some errors, e.g.
Thank you! |
|
@TomPohys - fixed errors and now works as tested with OpenMapTiles & unit tests pass.
I used the following docker config to test this from openmaptiles: # image: "openmaptiles/openmaptiles-tools:${TOOLS_VERSION}"
build:
context: ../openmaptiles-tools
dockerfile: Dockerfile |
|
@TomPohys can you please re-review? |
|
Thank you for the update. Unfortunately, I am still getting an access error for Line 128 in 5a13cc1 Line 132 in 5a13cc1 Also, during searching for the data source, I am getting an openmaptiles-tools/bin/download-osm Line 628 in 5a13cc1 log
DEBUG: Source "geofabrik" search returned: SearchResult(source=Source(name='europe/albania', url='https://download.geofabrik.de/europe/albania-latest.osm.pbf', timestamp=None, mirror=None, url_hash='https://download.geofabrik.de/europe/albania-latest.osm.pbf.md5', hash=None, file_len=None), repl_url='https://download.geofabrik.de/europe/albania-updates', state_url='https://download.geofabrik.de/europe/albania.state.txt', bbox='18.89648,39.62738,21.06285,42.66313') DEBUG: Loading source metadata for europe/albania from https://download.geofabrik.de/europe/albania-latest.osm.pbf DEBUG: Source metadata loaded - file_len=None, hash=1da832dcb9442e9df2240eef3ba7f594 DEBUG: Skipping source "geofabrik" - in guessing mode but no file metadata DEBUG: Trying source "bbbike" of type Bbbike make: *** [Makefile:373: download] Error 1 Exclude the Thank you for looking into it! |
|
Thanks @TomPohys. Can you describe your test approach so that I can make sure I'm replicating it correctly? |
|
Sorry, I should have written it much earlier. I adjust the Then I built dockers by:
Then I edit the .env in OMT to match the version in And then run classic tasks in OMT (quickstart, manual walkthrough, tileserver with OSM style,...) I do not use I am using classic Ubuntu 24.04 with Docker v28.4.0 and Docker Compose v2.39.2 and with postinstall Linux steps |
|
I just tested with 7.3.0 (in OMT-T I used commit d3f24b1 with only change in I built the omt-t with your command (`make build-docker && make build-import-data && ...). It was built without errors. $ docker images | grep openmaptiles
openmaptiles/generate-vectortiles 7.3.0 c6f6fc61ea32 9 seconds ago 295MB
openmaptiles/openmaptiles-tools 7.3.0 ef3e3bf4b563 6 minutes ago 1.47GB
openmaptiles/openmaptiles-tools 7.2.0 5039c11165c5 12 hours ago 1.47GB
openmaptiles/import-data 7.2.0 67dc38c4156a 23 hours ago 1.79GB
openmaptiles/import-data 7.3.0 67dc38c4156a 23 hours ago 1.79GB
openmaptiles/postgis 7.2.0 dfea03037e7d 23 hours ago 1.05GB
openmaptiles/postgis 7.3.0 dfea03037e7d 23 hours ago 1.05GBand my only change in OMT is in Ohh.. I just saw, that you are using Docker compose v1. But during the quickstart it is also raised an error, but it ignores it and it is continue. [+] Pulling 4/4
✘ generate-vectortiles Error manifest for openmaptiles/generate-vectortiles:7.3.0 not found: manifest unknown: manifest unknow... 1.3s
✘ openmaptiles-tools Error manifest for openmaptiles/openmaptiles-tools:7.3.0 not found: manifest unknown: manifest unknown 1.3s
✘ postgres Error manifest for openmaptiles/postgis:7.3.0 not found: manifest unknown: manifest unknown 1.3s
✘ import-data Error manifest for openmaptiles/import-data:7.3.0 not found: manifest unknown: manifest unknown 1.3s
But you could try |
|
@TomPohys thanks for the testing tips. I was able to fix the two issues you noted and this should be good to go now! |
|
Thanks for the great work. I tested it, and after the install |
Co-authored-by: Tomas Pohanka <TomPohys@gmail.com>
|
I have not tested the addition of |
Update OMT Tools to 7.2 with fixed [download-osm (#462)](openmaptiles/openmaptiles-tools#462). [OMT-T 7.2 Release notes](https://github.com/openmaptiles/openmaptiles-tools/releases/tag/v7.2.0).
This PR improves error handling in the download-osm script by replacing the deprecated asyncio.wait() function with asyncio.gather() and adding proper exception handling. It also updates the catalog search code and makes the Docker container work again. Additionally, this PR completely removes osmborder, which is no longer used after openmaptiles/openmaptiles#1213
This PR improves error handling in the download-osm script by replacing the deprecated asyncio.wait() function with asyncio.gather() and adding proper exception handling. It also updates the catalog search code and makes the Docker container work again. Additionally, this PR completely removes osmborder, which is no longer used after openmaptiles/openmaptiles#1213




Fixes #461
This PR improves error handling in the download-osm script by replacing the deprecated asyncio.wait() function with asyncio.gather() and adding proper exception handling. It also updates the catalog search code and makes the Docker container work again.
Additionally, this PR completely removes osmborder, which is no longer used after openmaptiles/openmaptiles#1213