Repository navigation
Modernize to osrm v6, py3.13 and debian bookworm - #94
Conversation
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 2 potential issues.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit c263550. Configure here.
| CMD ["/opt/conda/bin/python", "src/py/main_application.py", "--local"] | ||
| ENV LD_LIBRARY_PATH=/usr/local/lib:/usr/lib/x86_64-linux-gnu | ||
|
|
||
| CMD ["/opt/conda/bin/python", "/src/py/main_application.py", "--local"] |
There was a problem hiding this comment.
CMD uses wrong absolute path for main application
High Severity
The CMD was changed from the relative path src/py/main_application.py to the absolute path /src/py/main_application.py. The OSRM base image sets WORKDIR /opt, so COPY src src places files at /opt/src, not /src. The absolute path /src/py/main_application.py doesn't exist — the file is at /opt/src/py/main_application.py. The old relative path worked correctly because it resolved relative to the WORKDIR. This will cause a "file not found" error when the container starts with its default CMD.
Additional Locations (1)
Reviewed by Cursor Bugbot for commit c263550. Configure here.
| https://github.com/Project-OSRM/osrm-backend.git /opt/osrm-src \ | ||
| && cp -r /opt/osrm-src/include/* /opt/bindings/include/ \ | ||
| && cp -r /opt/osrm-src/third_party/fmt/include/fmt /opt/bindings/include/fmt \ | ||
| && rm -rf /opt/osrm-src |
There was a problem hiding this comment.
OSRM headers cloned from unpinned master branch
Medium Severity
The git clone of osrm-backend for build headers doesn't specify a branch or tag, so it pulls the default master branch. The headers then overwrite the v6.0.0 headers from the base image (copied on line 56). This creates a mismatch between master branch headers and the v6.0.0 runtime libraries, risking ABI incompatibilities or compilation failures as master diverges from v6.0.0. Adding -b v6.0.0 would ensure header/library consistency.
Reviewed by Cursor Bugbot for commit c263550. Configure here.
|
You have used all of your free Bugbot PR reviews. To receive reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial. |
|
You have used all of your free Bugbot PR reviews. To receive reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial. |
|
You have used all of your free Bugbot PR reviews. To receive reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial. |
|
You have used all of your free Bugbot PR reviews. To receive reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial. |


Note
Medium Risk
Medium risk: this is a large tooling/build modernization (new OSRM base image, new Python/Conda, new C++/pybind build and dependency upgrades) that can break container builds or change routing/bindings behavior at runtime.
Overview
Modernizes the
dkroutingtooldev container by switching to the prebuilt OSRMv6.0.0image, upgrading Miniconda/Python to 3.13, and reworking the Docker build steps (profile locations, binding build output path, runtimeLD_LIBRARY_PATH).Updates the pybind11/C++ bindings build to a newer toolchain (CMake 3.15, C++20) and OSRM v6 linking strategy via
pkg-config libosrm, including vendoring OSRM headers and buildingfmtfrom source for consistent linkage.Refreshes Python dependencies in
requirements.txtto newer versions and adds afreezelist.txtsnapshot of the resulting environment.Reviewed by Cursor Bugbot for commit c263550. Bugbot is set up for automated code reviews on this repo. Configure here.