Skip to content

Commit 39f9443

Browse files
committed
Merge remote-tracking branch 'origin/tier4/universe' into feat/move-map-hash-generator
2 parents fff7145 + ec78e3c commit 39f9443

File tree

110 files changed

+7944
-0
lines changed

Some content is hidden

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

110 files changed

+7944
-0
lines changed

.clang-format

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# Modified from https://github.com/ament/ament_lint/blob/master/ament_clang_format/ament_clang_format/configuration/.clang-format
2+
Language: Cpp
3+
BasedOnStyle: Google
4+
5+
AccessModifierOffset: -2
6+
AlignAfterOpenBracket: AlwaysBreak
7+
AllowShortFunctionsOnASingleLine: InlineOnly
8+
BraceWrapping:
9+
AfterClass: true
10+
AfterFunction: true
11+
AfterNamespace: true
12+
AfterStruct: true
13+
BreakBeforeBraces: Custom
14+
ColumnLimit: 100
15+
ConstructorInitializerIndentWidth: 0
16+
ContinuationIndentWidth: 2
17+
DerivePointerAlignment: false
18+
PointerAlignment: Middle
19+
ReflowComments: true
20+
IncludeCategories:
21+
# C++ system headers
22+
- Regex: <[a-z_]*>
23+
Priority: 6
24+
CaseSensitive: true
25+
# C system headers
26+
- Regex: <.*\.h>
27+
Priority: 5
28+
CaseSensitive: true
29+
# Boost headers
30+
- Regex: boost/.*
31+
Priority: 4
32+
CaseSensitive: true
33+
# Message headers
34+
- Regex: .*_msgs/.*
35+
Priority: 3
36+
CaseSensitive: true
37+
- Regex: .*_srvs/.*
38+
Priority: 3
39+
CaseSensitive: true
40+
# Other Package headers
41+
- Regex: <.*>
42+
Priority: 2
43+
CaseSensitive: true
44+
# Local package headers
45+
- Regex: '".*"'
46+
Priority: 1
47+
CaseSensitive: true

.github/PULL_REQUEST_TEMPLATE.md

+56
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
## PR Type
2+
3+
<!-- Select one and remove others. If an appropriate one is not listed, please write by yourself. -->
4+
5+
- New Feature
6+
- Improvement
7+
- Bug Fix
8+
9+
## Related Links
10+
11+
<!-- Please write related links to GitHub/Jira/Slack/etc. -->
12+
13+
## Description
14+
15+
<!-- Describe what this PR changes. -->
16+
17+
## Review Procedure
18+
19+
<!-- Explain how to review this PR. -->
20+
21+
## Remarks
22+
23+
<!-- Write remarks as you like if you need them. -->
24+
25+
## Pre-Review Checklist for the PR Author
26+
27+
**PR Author should check the checkboxes below when creating the PR.**
28+
29+
- [ ] Code follows [coding guidelines][coding-guidelines]
30+
- [ ] Assign PR to reviewer
31+
32+
## Checklist for the PR Reviewer
33+
34+
**Reviewers should check the checkboxes below before approval.**
35+
36+
- [ ] Commits are properly organized and messages are according to the guideline
37+
- [ ] Code follows [coding guidelines][coding-guidelines]
38+
- [ ] (Optional) Unit tests have been written for new behavior
39+
- [ ] PR title describes the changes
40+
41+
## Post-Review Checklist for the PR Author
42+
43+
**PR Author should check the checkboxes below before merging.**
44+
45+
- [ ] All open points are addressed and tracked via issues or tickets
46+
- [ ] Write [release notes][release-notes]
47+
48+
## CI Checks
49+
50+
- **Build and test for PR / build-and-test-pr**: Required to pass before the merge.
51+
- **Build and test for PR / clang-tidy-pr**: NOT required to pass before the merge. It is up to the reviewer(s).
52+
- **Check spelling**: NOT required to pass before the merge. It is up to the reviewer(s). See [here][spell-check-dict] if you want to add some words to the spell check dictionary.
53+
54+
[coding-guidelines]: https://tier4.atlassian.net/wiki/spaces/AIP/pages/1194394777/T4
55+
[release-notes]: https://tier4.atlassian.net/wiki/spaces/AIP/pages/563774416
56+
[spell-check-dict]: https://github.com/tier4/autoware-spell-check-dict#how-to-contribute

.github/dependabot.yaml

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: github-actions
4+
directory: /
5+
schedule:
6+
interval: daily
7+
open-pull-requests-limit: 1
8+
labels:
9+
- bot
10+
- github-actions

.github/sync-files.yaml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
- repository: autowarefoundation/autoware_common
2+
files:
3+
- source: .github/dependabot.yaml
4+
- source: .github/workflows/build-and-test.yaml
5+
- source: .github/workflows/build-and-test-differential.yaml
6+
- source: .github/workflows/pre-commit.yaml
7+
- source: .github/workflows/pre-commit-optional.yaml
8+
- source: .github/workflows/semantic-pull-request.yaml
9+
- source: .github/workflows/spell-check-differential.yaml
10+
- source: .github/workflows/sync-files.yaml
11+
- source: .clang-format
12+
- source: .markdown-link-check.json
13+
- source: .markdownlint.yaml
14+
- source: .pre-commit-config.yaml
15+
- source: .pre-commit-config-optional.yaml
16+
- source: .prettierignore
17+
- source: .prettierrc.yaml
18+
- source: .yamllint.yaml
19+
- source: CPPLINT.cfg
20+
- source: setup.cfg
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
name: build-and-test-differential
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
build-and-test-differential:
8+
runs-on: ubuntu-latest
9+
container: ${{ matrix.container }}
10+
strategy:
11+
fail-fast: false
12+
matrix:
13+
rosdistro:
14+
- humble
15+
include:
16+
- rosdistro: humble
17+
container: ros:humble
18+
build-depends-repos: build_depends.repos
19+
steps:
20+
- name: Check out repository
21+
uses: actions/checkout@v3
22+
with:
23+
fetch-depth: 0
24+
25+
- name: Remove exec_depend
26+
uses: autowarefoundation/autoware-github-actions/remove-exec-depend@v1
27+
28+
- name: Get modified packages
29+
id: get-modified-packages
30+
uses: autowarefoundation/autoware-github-actions/get-modified-packages@v1
31+
32+
- name: Build
33+
if: ${{ steps.get-modified-packages.outputs.modified-packages != '' }}
34+
uses: autowarefoundation/autoware-github-actions/colcon-build@v1
35+
with:
36+
rosdistro: ${{ matrix.rosdistro }}
37+
target-packages: ${{ steps.get-modified-packages.outputs.modified-packages }}
38+
build-depends-repos: ${{ matrix.build-depends-repos }}
39+
40+
- name: Test
41+
id: test
42+
if: ${{ steps.get-modified-packages.outputs.modified-packages != '' }}
43+
uses: autowarefoundation/autoware-github-actions/colcon-test@v1
44+
with:
45+
rosdistro: ${{ matrix.rosdistro }}
46+
target-packages: ${{ steps.get-modified-packages.outputs.modified-packages }}
47+
build-depends-repos: ${{ matrix.build-depends-repos }}
48+
49+
- name: Upload coverage to CodeCov
50+
if: ${{ steps.test.outputs.coverage-report-files != '' }}
51+
uses: codecov/codecov-action@v3
52+
with:
53+
files: ${{ steps.test.outputs.coverage-report-files }}
54+
fail_ci_if_error: false
55+
verbose: true
56+
flags: differential
57+
58+
clang-tidy-differential:
59+
runs-on: ubuntu-latest
60+
container: ros:humble
61+
needs: build-and-test-differential
62+
steps:
63+
- name: Check out repository
64+
uses: actions/checkout@v3
65+
with:
66+
fetch-depth: 0
67+
68+
- name: Remove exec_depend
69+
uses: autowarefoundation/autoware-github-actions/remove-exec-depend@v1
70+
71+
- name: Get modified packages
72+
id: get-modified-packages
73+
uses: autowarefoundation/autoware-github-actions/get-modified-packages@v1
74+
75+
- name: Get modified files
76+
id: get-modified-files
77+
uses: tj-actions/changed-files@v35
78+
with:
79+
files: |
80+
**/*.cpp
81+
**/*.hpp
82+
83+
- name: Run clang-tidy
84+
if: ${{ steps.get-modified-files.outputs.all_changed_files != '' }}
85+
uses: autowarefoundation/autoware-github-actions/clang-tidy@v1
86+
with:
87+
rosdistro: humble
88+
target-packages: ${{ steps.get-modified-packages.outputs.modified-packages }}
89+
target-files: ${{ steps.get-modified-files.outputs.all_changed_files }}
90+
clang-tidy-config-url: https://raw.githubusercontent.com/autowarefoundation/autoware/main/.clang-tidy
91+
build-depends-repos: build_depends.repos

.github/workflows/build-and-test.yaml

+58
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: build-and-test
2+
3+
on:
4+
push:
5+
schedule:
6+
- cron: 0 0 * * *
7+
workflow_dispatch:
8+
9+
jobs:
10+
build-and-test:
11+
if: ${{ github.event_name != 'push' || github.ref_name == github.event.repository.default_branch }}
12+
runs-on: ubuntu-latest
13+
container: ${{ matrix.container }}
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
rosdistro:
18+
- humble
19+
include:
20+
- rosdistro: humble
21+
container: ros:humble
22+
build-depends-repos: build_depends.repos
23+
steps:
24+
- name: Check out repository
25+
uses: actions/checkout@v3
26+
27+
- name: Remove exec_depend
28+
uses: autowarefoundation/autoware-github-actions/remove-exec-depend@v1
29+
30+
- name: Get self packages
31+
id: get-self-packages
32+
uses: autowarefoundation/autoware-github-actions/get-self-packages@v1
33+
34+
- name: Build
35+
if: ${{ steps.get-self-packages.outputs.self-packages != '' }}
36+
uses: autowarefoundation/autoware-github-actions/colcon-build@v1
37+
with:
38+
rosdistro: ${{ matrix.rosdistro }}
39+
target-packages: ${{ steps.get-self-packages.outputs.self-packages }}
40+
build-depends-repos: ${{ matrix.build-depends-repos }}
41+
42+
- name: Test
43+
if: ${{ steps.get-self-packages.outputs.self-packages != '' }}
44+
id: test
45+
uses: autowarefoundation/autoware-github-actions/colcon-test@v1
46+
with:
47+
rosdistro: ${{ matrix.rosdistro }}
48+
target-packages: ${{ steps.get-self-packages.outputs.self-packages }}
49+
build-depends-repos: ${{ matrix.build-depends-repos }}
50+
51+
- name: Upload coverage to CodeCov
52+
if: ${{ steps.test.outputs.coverage-report-files != '' }}
53+
uses: codecov/codecov-action@v3
54+
with:
55+
files: ${{ steps.test.outputs.coverage-report-files }}
56+
fail_ci_if_error: false
57+
verbose: true
58+
flags: total
+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: pre-commit-optional
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
pre-commit-optional:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Check out repository
11+
uses: actions/checkout@v3
12+
13+
- name: Run pre-commit
14+
uses: autowarefoundation/autoware-github-actions/pre-commit@v1
15+
with:
16+
pre-commit-config: .pre-commit-config-optional.yaml

.github/workflows/pre-commit.yaml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: pre-commit
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
pre-commit:
8+
if: ${{ github.event.repository.private }} # Use pre-commit.ci for public repositories
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Generate token
12+
id: generate-token
13+
uses: tibdex/github-app-token@v1
14+
with:
15+
app_id: ${{ secrets.APP_ID }}
16+
private_key: ${{ secrets.PRIVATE_KEY }}
17+
18+
- name: Check out repository
19+
uses: actions/checkout@v3
20+
with:
21+
ref: ${{ github.event.pull_request.head.ref }}
22+
23+
- name: Run pre-commit
24+
uses: autowarefoundation/autoware-github-actions/pre-commit@v1
25+
with:
26+
pre-commit-config: .pre-commit-config.yaml
27+
token: ${{ steps.generate-token.outputs.token }}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: semantic-pull-request
2+
3+
on:
4+
pull_request_target:
5+
types:
6+
- opened
7+
- edited
8+
- synchronize
9+
10+
jobs:
11+
semantic-pull-request:
12+
uses: autowarefoundation/autoware-github-actions/.github/workflows/semantic-pull-request.yaml@v1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: spell-check-differential
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
spell-check-differential:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Check out repository
11+
uses: actions/checkout@v3
12+
13+
- name: Run spell-check
14+
uses: autowarefoundation/autoware-github-actions/spell-check@v1
15+
with:
16+
cspell-json-url: https://raw.githubusercontent.com/tier4/autoware-spell-check-dict/main/.cspell.json

.github/workflows/sync-files.yaml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: sync-files
2+
3+
on:
4+
schedule:
5+
- cron: 0 0 * * *
6+
workflow_dispatch:
7+
8+
jobs:
9+
check-secret:
10+
uses: autowarefoundation/autoware-github-actions/.github/workflows/check-secret.yaml@v1
11+
secrets:
12+
secret: ${{ secrets.APP_ID }}
13+
14+
sync-files:
15+
needs: check-secret
16+
if: ${{ needs.check-secret.outputs.set == 'true' }}
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Generate token
20+
id: generate-token
21+
uses: tibdex/github-app-token@v1
22+
with:
23+
app_id: ${{ secrets.APP_ID }}
24+
private_key: ${{ secrets.PRIVATE_KEY }}
25+
26+
- name: Run sync-files
27+
uses: autowarefoundation/autoware-github-actions/sync-files@v1
28+
with:
29+
token: ${{ steps.generate-token.outputs.token }}
30+
pr-labels: |
31+
bot
32+
sync-files
33+
auto-merge-method: squash

0 commit comments

Comments
 (0)