Skip to content

Commit 5552c2b

Browse files
committed
Merge tag 'v5.27.0'
v5.27.0 - Changes from 5.26.0 - API: - ADDED: Add Flatbuffers support to NodeJS bindings. [Project-OSRM#6338](Project-OSRM#6338) - CHANGED: Add `data_version` field to responses of all services. [Project-OSRM#5387](Project-OSRM#5387) - FIXED: Use Boost.Beast to parse HTTP request. [Project-OSRM#6294](Project-OSRM#6294) - FIXED: Fix inefficient osrm-routed connection handling [Project-OSRM#6113](https://gihub.com/Project-OSRM/osrm-backend/pull/6113) - FIXED: Fix HTTP compression precedence [Project-OSRM#6113](Project-OSRM#6113) - NodeJS: - FIXED: Support `skip_waypoints` in Node bindings [Project-OSRM#6060](Project-OSRM#6060) - Misc: - ADDED: conanbuildinfo.json for easy reading of dependencies [Project-OSRM#6388](Project-OSRM#6388) - CHANGED: Improve performance of JSON rendering. Fix undefined behaviour in JSON numbers formatting. [Project-OSRM#6380](Project-OSRM#6380) - ADDED: Add timestamps for logs. [Project-OSRM#6375](Project-OSRM#6375) - CHANGED: Improve performance of map matching via getPathDistance optimization. [Project-OSRM#6378](Project-OSRM#6378) - CHANGED: Optimize RestrictionParser performance. [Project-OSRM#6344](Project-OSRM#6344) - ADDED: Support floats for speed value in traffic updates CSV. [Project-OSRM#6327](Project-OSRM#6327) - CHANGED: Use Lua 5.4 in Docker image. [Project-OSRM#6346](Project-OSRM#6346) - CHANGED: Remove redundant nullptr check. [Project-OSRM#6326](Project-OSRM#6326) - CHANGED: missing files list is included in exception message. [Project-OSRM#5360](Project-OSRM#5360) - CHANGED: Do not use deprecated Callback::Call overload in Node bindings. [Project-OSRM#6318](Project-OSRM#6318) - FIXED: Fix distance calculation consistency. [Project-OSRM#6315](Project-OSRM#6315) - FIXED: Fix performance issue after migration to sol2 3.3.0. [Project-OSRM#6304](Project-OSRM#6304) - CHANGED: Pass osm_node_ids by reference in osrm::updater::Updater class. [Project-OSRM#6298](Project-OSRM#6298) - FIXED: Fix bug with reading Set values from Lua scripts. [Project-OSRM#6285](Project-OSRM#6285) - FIXED: Bug in bicycle profile that caused exceptions if there is a highway=bicycle in the data. [Project-OSRM#6296](Project-OSRM#6296) - FIXED: Internal refactoring of identifier types used in data facade [Project-OSRM#6044](Project-OSRM#6044) - CHANGED: Update docs to reflect recent build and dependency changes [Project-OSRM#6383](Project-OSRM#6383) - Build: - REMOVED: Get rid of Mason. [Project-OSRM#6387](Project-OSRM#6387) - CHANGED: Use clang-format from CI base image. [Project-OSRM#6391](Project-OSRM#6391) - ADDED: Build Node bindings on Windows. [Project-OSRM#6334](Project-OSRM#6334) - ADDED: Configure cross-compilation for Apple Silicon. [Project-OSRM#6360](Project-OSRM#6360) - CHANGED: Use apt-get to install Clang on CI. [Project-OSRM#6345](Project-OSRM#6345) - CHANGED: Fix TBB in case of Conan + NodeJS build. [Project-OSRM#6333](Project-OSRM#6333) - CHANGED: Migrate to modern TBB version. [Project-OSRM#6300](Project-OSRM#6300) - CHANGED: Enable performance-move-const-arg clang-tidy check. [Project-OSRM#6319](Project-OSRM#6319) - CHANGED: Use the latest node on CI. [Project-OSRM#6317](Project-OSRM#6317) - CHANGED: Migrate Windows CI to GitHub Actions. [Project-OSRM#6312](Project-OSRM#6312) - ADDED: Add smoke test for Docker image. [Project-OSRM#6313](Project-OSRM#6313) - CHANGED: Update libosmium to version 2.18.0. [Project-OSRM#6303](Project-OSRM#6303) - CHANGED: Remove EXACT from find_package if using Conan. [Project-OSRM#6299](Project-OSRM#6299) - CHANGED: Configure Undefined Behaviour Sanitizer. [Project-OSRM#6290](Project-OSRM#6290) - CHANGED: Use Conan instead of Mason to install code dependencies. [Project-OSRM#6284](Project-OSRM#6284) - CHANGED: Migrate to C++17. Update sol2 to 3.3.0. [Project-OSRM#6279](Project-OSRM#6279) - CHANGED: Update macOS CI image to macos-11. [Project-OSRM#6286](Project-OSRM#6286) - CHANGED: Enable even more clang-tidy checks. [Project-OSRM#6273](Project-OSRM#6273) - CHANGED: Configure CMake to not build flatbuffers tests and samples. [Project-OSRM#6274](Project-OSRM#6274) - CHANGED: Enable more clang-tidy checks. [Project-OSRM#6270](Project-OSRM#6270) - CHANGED: Configure clang-tidy job on CI. [Project-OSRM#6261](Project-OSRM#6261) - CHANGED: Use Github Actions for building container images [Project-OSRM#6138](Project-OSRM#6138) - CHANGED: Upgrade Boost dependency to 1.70 [Project-OSRM#6113](Project-OSRM#6113) - CHANGED: Upgrade Ubuntu CI builds to 20.04 [Project-OSRM#6119](Project-OSRM#6119) - CHANGED: Make building osrm-routed optional [Project-OSRM#6144](Project-OSRM#6144) - FIXED: Run all unit tests in CI [Project-OSRM#5248](Project-OSRM#5248) - FIXED: Fix installation of Mason CMake and 32 bit CI build [Project-OSRM#6170](Project-OSRM#6170) - FIXED: Fixed Node docs generation check in CI. [Project-OSRM#6058](Project-OSRM#6058) - CHANGED: Docker build, enabled arm64 build layer [Project-OSRM#6172](Project-OSRM#6172) - CHANGED: Docker build, enabled apt-get update/install caching in separate layer for build phase [Project-OSRM#6175](Project-OSRM#6175) - FIXED: Bump CI complete meta job to ubuntu-20.04 [Project-OSRM#6323](Project-OSRM#6323) - CHANGED: Node packages are now scoped by @Project-OSRM [Project-OSRM#6386](Project-OSRM#6386) - Routing: - CHANGED: Lazily generate optional route path data [Project-OSRM#6045](Project-OSRM#6045) - FIXED: Completed support for no_entry and no_exit turn restrictions. [Project-OSRM#5988](Project-OSRM#5988) - ADDED: Add support for non-round-trips with a single fixed endpoint. [Project-OSRM#6050](Project-OSRM#6050) - FIXED: Improvements to maneuver override processing [Project-OSRM#6125](Project-OSRM#6125) - ADDED: Support snapping to multiple ways at an input location. [Project-OSRM#5953](Project-OSRM#5953) - FIXED: Fix snapping target locations to ways used in turn restrictions. [Project-OSRM#6339](Project-OSRM#6339) - ADDED: Support OSM traffic signal directions. [Project-OSRM#6153](Project-OSRM#6153) - FIXED: Ensure u-turn exists in intersection view. [Project-OSRM#6376](Project-OSRM#6376) - FIXED: Gracefully handle no-turn intersections in guidance processing. [Project-OSRM#6382](Project-OSRM#6382) - Profile: - CHANGED: Bicycle surface speeds [Project-OSRM#6212](Project-OSRM#6212) - Tools: - CHANGED: Do not generate intermediate .osrm file in osrm-extract. [Project-OSRM#6354](Project-OSRM#6354)
2 parents 9e36530 + 4a5d9c9 commit 5552c2b

File tree

1,325 files changed

+183048
-413082
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,325 files changed

+183048
-413082
lines changed

.babelrc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
{
22
"plugins": ["transform-class-properties"],
33
"presets": [
4-
"stage-0",
5-
"es2015",
6-
"react"
4+
"@babel/preset-env",
5+
"@babel/preset-react"
76
]
87
}

.clang-tidy

Lines changed: 85 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,87 @@
11
---
2-
Checks: '-clang-analyzer-*,google-*,llvm-*,misc-*,readability-*,-google-build-explicit-make-pair,-google-explicit-constructor,-google-readability-braces-around-statements,-google-readability-casting,-google-readability-namespace-comments,-google-readability-function,-google-readability-todo,-google-runtime-int,-llvm-namespace-comment,-llvm-header-guard,-llvm-twine-local,-misc-argument-comment,-readability-braces-around-statements,-readability-identifier-naming'
3-
...
2+
Checks: >
3+
bugprone-*,
4+
-bugprone-narrowing-conversions,
5+
-bugprone-easily-swappable-parameters,
6+
-bugprone-branch-clone,
7+
-bugprone-misplaced-widening-cast,
8+
-bugprone-exception-escape,
9+
-bugprone-implicit-widening-of-multiplication-result,
10+
-bugprone-integer-division,
11+
-bugprone-reserved-identifier,
12+
-bugprone-unhandled-self-assignment,
13+
-bugprone-forward-declaration-namespace,
14+
-bugprone-sizeof-expression,
15+
-bugprone-throw-keyword-missing,
16+
-clang-analyzer-*,
17+
-clang-diagnostic-deprecated-declarations,
18+
-clang-diagnostic-constant-conversion,
19+
cppcoreguidelines-avoid-goto,
20+
cppcoreguidelines-no-malloc,
21+
cppcoreguidelines-virtual-class-destructor,
22+
google-*,
23+
-google-build-explicit-make-pair,
24+
-google-build-using-namespace,
25+
-google-explicit-constructor,
26+
-google-default-arguments,
27+
-google-readability-braces-around-statements,
28+
-google-readability-casting,
29+
-google-readability-namespace-comments,
30+
-google-readability-function,
31+
-google-readability-todo,
32+
-google-runtime-int,
33+
-google-build-namespaces,
34+
-google-runtime-references,
35+
-google-readability-function-size,
36+
llvm-*,
37+
-llvm-namespace-comment,
38+
-llvm-qualified-auto,
39+
-llvm-include-order,
40+
-llvm-else-after-return,
41+
-llvm-header-guard,
42+
-llvm-twine-local,
43+
misc-*,
44+
-misc-argument-comment,
45+
-misc-non-private-member-variables-in-classes,
46+
-misc-unconventional-assign-operator,
47+
-misc-no-recursion,
48+
-misc-misplaced-const,
49+
-misc-definitions-in-headers,
50+
-misc-unused-parameters,
51+
performance-*,
52+
-performance-noexcept-move-constructor,
53+
-performance-no-int-to-ptr,
54+
readability-*,
55+
-readability-avoid-const-params-in-decls,
56+
-readability-braces-around-statements,
57+
-readability-container-size-empty,
58+
-readability-convert-member-functions-to-static,
59+
-readability-const-return-type,
60+
-readability-function-cognitive-complexity,
61+
-readability-function-size,
62+
-readability-identifier-naming,
63+
-readability-implicit-bool-conversion,
64+
-readability-magic-numbers,
65+
-readability-else-after-return,
66+
-readability-inconsistent-declaration-parameter-name,
67+
-readability-isolate-declaration,
68+
-readability-identifier-length,
69+
-readability-redundant-declaration,
70+
-readability-uppercase-literal-suffix,
71+
-readability-named-parameter,
72+
-readability-qualified-auto,
73+
-readability-suspicious-call-argument,
74+
-readability-redundant-access-specifiers,
75+
-readability-redundant-member-init,
76+
-readability-static-definition-in-anonymous-namespace,
77+
-readability-use-anyofallof,
78+
-readability-simplify-boolean-expr,
79+
-readability-make-member-function-const,
80+
-readability-redundant-string-init,
81+
-readability-non-const-parameter,
82+
-readability-static-accessed-through-instance
83+
84+
WarningsAsErrors: '*'
85+
HeaderFilterRegex: '.*'
86+
487

.gitattributes

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,6 @@
1313

1414
# Declare files that will always have LF line endings on checkout.
1515
*.sh text eol=lf
16+
17+
# https://eslint.org/docs/latest/rules/linebreak-style#using-this-rule-with-version-control-systems
18+
*.js text eol=lf
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
name: Bug Report
3+
about: Report issue with osrm-backend
4+
labels: Bug Report
5+
---
6+
7+
# Issue
8+
9+
Please describe the issue you are seeing with OSRM.
10+
Images are a good way to illustrate your problem.
11+
12+
**Note**: If your issue relates to the demo site (https://map.project-osrm.org) or routing provided on openstreetmap.org, be aware that they use separate [profile settings](https://github.com/fossgis-routing-server/cbf-routing-profiles) from those provided by default in `osrm-backend`.
13+
If your issue relates to the demo site or openstreetmap.org behaviour, please check these profiles first to see if they explain the behaviour before creating an issue here.
14+
15+
# Steps to reproduce
16+
17+
Please provide the steps required to reproduce your problem.
18+
- `osrm-backend` version being used
19+
- OSM extract that was processed
20+
- Processing commands (e.g. CH vs MLD processing)
21+
- Server queries
22+
23+
If you're reporting an issue with https://map.project-osrm.org, please provide a link to the problematic request.
24+
25+
# Specifications
26+
27+
Please provide details of your development environment.
28+
- Library/dependency versions
29+
- Operating system
30+
- Hardware

.github/ISSUE_TEMPLATE/feature.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
name: Feature Request
3+
about: Request a new feature in osrm-backend
4+
labels: Feature Request
5+
---
6+
7+
# Feature
8+
9+
Please describe the feature you would like to see in OSRM.
10+
Images are often a good way to illustrate your requested feature.

.github/ISSUE_TEMPLATE/question.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
name: Question
3+
about: Ask a question about OSRM
4+
labels: question
5+
---

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ If your PR is still work in progress please attach the relevant label.
99

1010
- [ ] CHANGELOG.md entry ([How to write a changelog entry](http://keepachangelog.com/en/1.0.0/#how))
1111
- [ ] update relevant [Wiki pages](https://github.com/Project-OSRM/osrm-backend/wiki)
12-
- [ ] add tests (see [testing documentation](https://github.com/Project-OSRM/osrm-backend/blob/master/docs/testing.md)
12+
- [ ] add tests (see [testing documentation](https://github.com/Project-OSRM/osrm-backend/blob/master/docs/testing.md))
1313
- [ ] review
1414
- [ ] adjust for comments
1515
- [ ] cherry pick to release branch

.github/workflows/osrm-backend-docker.yml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ jobs:
1111
- name: Check out the repo
1212
uses: actions/checkout@v2
1313

14+
- name: Set up QEMU
15+
uses: docker/setup-qemu-action@v1
16+
17+
- name: Set up Docker Buildx
18+
uses: docker/setup-buildx-action@v1
1419

1520
- name: Docker meta
1621
id: meta
@@ -34,10 +39,7 @@ jobs:
3439
images: ghcr.io/${{ github.repository }}
3540
flavor: |
3641
latest=true
37-
suffix=-assertions,onlatest=true
38-
39-
40-
42+
suffix=-assertions,onlatest=true
4143
4244
- name: Log in to GitHub Docker Registry
4345
uses: docker/login-action@v1
@@ -46,16 +48,11 @@ jobs:
4648
username: ${{ github.actor }}
4749
password: ${{ secrets.GITHUB_TOKEN }}
4850

49-
50-
51-
52-
53-
54-
5551
- name: Build container image - debug
5652
uses: docker/build-push-action@v2
5753
with:
5854
push: true
55+
platforms: linux/amd64,linux/arm64
5956
file: ./docker/Dockerfile
6057
tags: ${{ steps.metadebug.outputs.tags }}
6158
build-args: |
@@ -66,6 +63,7 @@ jobs:
6663
uses: docker/build-push-action@v2
6764
with:
6865
push: true
66+
platforms: linux/amd64,linux/arm64
6967
file: ./docker/Dockerfile
7068
tags: ${{ steps.metaassertions.outputs.tags }}
7169
build-args: |
@@ -76,6 +74,7 @@ jobs:
7674
uses: docker/build-push-action@v2
7775
with:
7876
push: true
77+
platforms: linux/amd64,linux/arm64
7978
file: ./docker/Dockerfile
8079
tags: ${{ steps.meta.outputs.tags }}
8180
build-args: |

0 commit comments

Comments
 (0)