Skip to content

Commit 75549a6

Browse files
authored
chore: bump version to 0.40.0 (#9758)
Signed-off-by: Ryohsuke Mitsudome <[email protected]>
2 parents 7b8b23e + ecc7da8 commit 75549a6

File tree

1,838 files changed

+35041
-9584
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,838 files changed

+35041
-9584
lines changed

.clang-format

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# This file is automatically synced from:
2+
# https://github.com/autowarefoundation/sync-file-templates
3+
# To make changes, update the source repository and follow the guidelines in its README.
4+
15
# Modified from https://github.com/ament/ament_lint/blob/master/ament_clang_format/ament_clang_format/configuration/.clang-format
26
Language: Cpp
37
BasedOnStyle: Google

.clang-tidy-ignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*/examples/*

.cspell.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
"planning/behavior_velocity_planner/autoware_behavior_velocity_intersection_module/scripts/**"
55
],
66
"ignoreRegExpList": [],
7-
"words": ["dltype", "tvmgen", "fromarray", "soblin"]
7+
"words": ["dltype", "tvmgen", "fromarray", "soblin", "brkay54", "libtensorrt"]
88
}

.github/CODEOWNERS

+43-44
Large diffs are not rendered by default.

.github/ISSUE_TEMPLATE/bug.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# This file is automatically synced from:
2+
# https://github.com/autowarefoundation/sync-file-templates
3+
# To make changes, update the source repository and follow the guidelines in its README.
4+
15
name: Bug
26
description: Report a bug
37
body:

.github/ISSUE_TEMPLATE/config.yml

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# This file is automatically synced from:
2+
# https://github.com/autowarefoundation/sync-file-templates
3+
# To make changes, update the source repository and follow the guidelines in its README.
4+
15
blank_issues_enabled: false
26
contact_links:
37
- name: Question

.github/ISSUE_TEMPLATE/task.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# This file is automatically synced from:
2+
# https://github.com/autowarefoundation/sync-file-templates
3+
# To make changes, update the source repository and follow the guidelines in its README.
4+
15
name: Task
26
description: Plan a task
37
body:

.github/dependabot.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# This file is automatically synced from:
2+
# https://github.com/autowarefoundation/sync-file-templates
3+
# To make changes, update the source repository and follow the guidelines in its README.
4+
15
version: 2
26
updates:
37
- package-ecosystem: github-actions

.github/stale.yml

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# This file is automatically synced from:
2+
# https://github.com/autowarefoundation/sync-file-templates
3+
# To make changes, update the source repository and follow the guidelines in its README.
4+
15
# Modified from https://github.com/probot/stale#usage
26

37
# Number of days of inactivity before an Issue or Pull Request with the stale label is closed

.github/sync-files.yaml

+22-29
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,48 @@
1-
- repository: autowarefoundation/autoware
1+
- repository: autowarefoundation/sync-file-templates
2+
source-dir: sources
23
files:
3-
- source: CODE_OF_CONDUCT.md
4-
- source: CONTRIBUTING.md
5-
- source: DISCLAIMER.md
6-
- source: LICENSE
74
- source: .github/ISSUE_TEMPLATE/bug.yaml
85
- source: .github/ISSUE_TEMPLATE/config.yml
96
- source: .github/ISSUE_TEMPLATE/task.yaml
107
- source: .github/dependabot.yaml
8+
- source: .github/pull_request_template_complex.md
9+
dest: .github/pull_request_template.md
1110
- source: .github/stale.yml
1211
- source: .github/workflows/cancel-previous-workflows.yaml
12+
- source: .github/workflows/check-build-depends.yaml
13+
- source: .github/workflows/clang-tidy-pr-comments.yaml
14+
- source: .github/workflows/clang-tidy-pr-comments-manually.yaml
15+
- source: .github/workflows/comment-on-pr.yaml
16+
- source: .github/workflows/delete-closed-pr-docs.yaml
17+
- source: .github/workflows/deploy-docs.yaml
1318
- source: .github/workflows/github-release.yaml
1419
- source: .github/workflows/pre-commit.yaml
1520
- source: .github/workflows/pre-commit-optional.yaml
21+
- source: .github/workflows/pre-commit-optional-autoupdate.yaml
22+
- source: .github/workflows/pre-commit-autoupdate.yaml
1623
- source: .github/workflows/semantic-pull-request.yaml
1724
- source: .github/workflows/spell-check-differential.yaml
1825
pre-commands: |
1926
sd " with:\n" " with:\n local-cspell-json: .cspell.json\n" {source}
20-
- source: .github/workflows/spell-check-differential.yaml
21-
dest: .github/workflows/spell-check-daily.yaml
27+
- source: .github/workflows/spell-check-daily.yaml
2228
pre-commands: |
23-
sd "spell-check-differential" "spell-check-daily" {source}
24-
sd " with:\n" " with:\n local-cspell-json: .cspell.json\n incremental-files-only: false\n" {source}
25-
sd "on:\n pull_request:\n" "on:\n schedule:\n - cron: 0 0 * * *\n workflow_dispatch:\n" {source}
29+
sd " with:\n" " with:\n local-cspell-json: .cspell.json\n" {source}
2630
- source: .github/workflows/sync-files.yaml
31+
- source: .github/workflows/update-codeowners-from-packages.yaml
32+
- source: docs/assets/js/mathjax.js
2733
- source: .clang-format
2834
- source: .markdown-link-check.json
2935
- source: .markdownlint.yaml
3036
- source: .pre-commit-config-optional.yaml
37+
- source: .pre-commit-config.yaml
3138
- source: .prettierignore
3239
- source: .prettierrc.yaml
3340
- source: .yamllint.yaml
41+
- source: CODE_OF_CONDUCT.md
42+
- source: CONTRIBUTING.md
3443
- source: CPPLINT.cfg
35-
- source: setup.cfg
36-
37-
- repository: autowarefoundation/autoware_common
38-
files:
39-
- source: .github/workflows/clang-tidy-differential.yaml
40-
pre-commands: |
41-
sd 'container: ros:(\w+)' 'container: ghcr.io/autowarefoundation/autoware:universe-devel-cuda' {source}
42-
- source: .github/workflows/check-build-depends.yaml
43-
- source: .github/workflows/clang-tidy-pr-comments.yaml
44-
- source: .github/workflows/clang-tidy-pr-comments-manually.yaml
45-
- source: .github/workflows/update-codeowners-from-packages.yaml
46-
- source: .pre-commit-config.yaml
47-
- source: codecov.yaml
48-
49-
- repository: autowarefoundation/autoware-documentation
50-
files:
51-
- source: .github/workflows/deploy-docs.yaml
52-
- source: .github/workflows/delete-closed-pr-docs.yaml
44+
- source: DISCLAIMER.md
45+
- source: LICENSE
5346
- source: mkdocs-base.yaml
5447
dest: mkdocs.yaml
5548
pre-commands: |
@@ -63,4 +56,4 @@
6356
" - macros" \
6457
" - macros:
6558
module_name: mkdocs_macros" {source}
66-
- source: docs/assets/js/mathjax.js
59+
- source: setup.cfg

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

+39-1
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,13 @@ on:
55
- cron: 0 0 * * *
66
workflow_dispatch:
77

8+
env:
9+
CC: /usr/lib/ccache/gcc
10+
CXX: /usr/lib/ccache/g++
11+
812
jobs:
913
build-and-test-daily:
10-
runs-on: [self-hosted, linux, X64, gpu]
14+
runs-on: [self-hosted, Linux, X64]
1115
container: ${{ matrix.container }}${{ matrix.container-suffix }}
1216
strategy:
1317
fail-fast: false
@@ -30,13 +34,43 @@ jobs:
3034
- name: Show disk space before the tasks
3135
run: df -h
3236

37+
- name: Show machine specs
38+
run: lscpu && free -h
39+
3340
- name: Remove exec_depend
3441
uses: autowarefoundation/autoware-github-actions/remove-exec-depend@v1
3542

3643
- name: Get self packages
3744
id: get-self-packages
3845
uses: autowarefoundation/autoware-github-actions/get-self-packages@v1
3946

47+
- name: Create ccache directory
48+
run: |
49+
mkdir -p ${CCACHE_DIR}
50+
du -sh ${CCACHE_DIR} && ccache -s
51+
shell: bash
52+
53+
- name: Attempt to restore ccache
54+
uses: actions/cache/restore@v4
55+
with:
56+
path: |
57+
/root/.ccache
58+
key: ccache-main-${{ runner.arch }}-${{ matrix.rosdistro }}-${{ github.sha }}
59+
restore-keys: |
60+
ccache-main-${{ runner.arch }}-${{ matrix.rosdistro }}-
61+
62+
- name: Limit ccache size
63+
run: |
64+
rm -f "${CCACHE_DIR}/ccache.conf"
65+
echo -e "# Set maximum cache size\nmax_size = 600MB" >> "${CCACHE_DIR}/ccache.conf"
66+
shell: bash
67+
68+
- name: Show ccache stats before build and reset stats
69+
run: |
70+
du -sh ${CCACHE_DIR} && ccache -s
71+
ccache --zero-stats
72+
shell: bash
73+
4074
- name: Export CUDA state as a variable for adding to cache key
4175
run: |
4276
build_type_cuda_state=nocuda
@@ -56,6 +90,10 @@ jobs:
5690
build-depends-repos: ${{ matrix.build-depends-repos }}
5791
cache-key-element: ${{ env.BUILD_TYPE_CUDA_STATE }}
5892

93+
- name: Show ccache stats after build
94+
run: du -sh ${CCACHE_DIR} && ccache -s
95+
shell: bash
96+
5997
- name: Test
6098
if: ${{ steps.get-self-packages.outputs.self-packages != '' }}
6199
id: test

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

+105-32
Original file line numberDiff line numberDiff line change
@@ -27,29 +27,31 @@ jobs:
2727
with:
2828
label: tag:require-cuda-build-and-test
2929

30-
build-and-test-differential:
30+
prepare-build-and-test-differential:
31+
runs-on: ubuntu-latest
3132
needs: [make-sure-label-is-present, make-sure-require-cuda-label-is-present]
32-
if: ${{ needs.make-sure-label-is-present.outputs.result == 'true' }}
33-
runs-on: ${{ matrix.runner }}
34-
container: ${{ matrix.container }}${{ matrix.container-suffix }}
35-
strategy:
36-
fail-fast: false
37-
matrix:
38-
rosdistro:
39-
- humble
40-
container-suffix:
41-
- ""
42-
- -cuda
43-
include:
44-
- rosdistro: humble
45-
container: ghcr.io/autowarefoundation/autoware:universe-devel
46-
build-depends-repos: build_depends.repos
47-
- container-suffix: -cuda
48-
runner: codebuild-autoware-us-east-1-${{ github.run_id }}-${{ github.run_attempt }}-ubuntu-7.0-large
49-
build-pre-command: taskset --cpu-list 0-5
50-
- container-suffix: ""
51-
runner: ubuntu-latest
52-
build-pre-command: ""
33+
outputs:
34+
cuda_build: ${{ steps.check-if-cuda-build-is-required.outputs.cuda_build }}
35+
steps:
36+
- name: Check if cuda-build is required
37+
id: check-if-cuda-build-is-required
38+
run: |
39+
if ${{ needs.make-sure-require-cuda-label-is-present.outputs.result == 'true' }}; then
40+
echo "cuda-build is required"
41+
echo "cuda_build=true" >> $GITHUB_OUTPUT
42+
else
43+
echo "cuda-build is not required"
44+
echo "cuda_build=false" >> $GITHUB_OUTPUT
45+
fi
46+
shell: bash
47+
- name: Fail if the tag:run-build-and-test-differential is missing
48+
if: ${{ needs.make-sure-label-is-present.outputs.result != 'true' }}
49+
run: exit 1
50+
51+
build-and-test-differential:
52+
runs-on: ubuntu-latest
53+
container: ghcr.io/autowarefoundation/autoware:universe-devel
54+
needs: prepare-build-and-test-differential
5355
steps:
5456
- name: Set PR fetch depth
5557
run: echo "PR_FETCH_DEPTH=$(( ${{ github.event.pull_request.commits }} + 1 ))" >> "${GITHUB_ENV}"
@@ -62,20 +64,91 @@ jobs:
6264
fetch-depth: ${{ env.PR_FETCH_DEPTH }}
6365

6466
- name: Run build-and-test-differential action
65-
if: ${{ !(matrix.container-suffix == '-cuda') || needs.make-sure-require-cuda-label-is-present.outputs.result == 'true' }}
6667
uses: ./.github/actions/build-and-test-differential
6768
with:
68-
rosdistro: ${{ matrix.rosdistro }}
69-
container: ${{ matrix.container }}
70-
container-suffix: ${{ matrix.container-suffix }}
71-
runner: ${{ matrix.runner }}
72-
build-depends-repos: ${{ matrix.build-depends-repos }}
73-
build-pre-command: ${{ matrix.build-pre-command }}
69+
rosdistro: humble
70+
container: ghcr.io/autowarefoundation/autoware:universe-devel
71+
container-suffix: ""
72+
runner: ubuntu-latest
73+
build-depends-repos: build_depends.repos
74+
build-pre-command: ""
75+
codecov-token: ${{ secrets.CODECOV_TOKEN }}
76+
77+
build-and-test-differential-cuda:
78+
runs-on: codebuild-autoware-us-east-1-${{ github.run_id }}-${{ github.run_attempt }}-ubuntu-7.0-large
79+
container: ghcr.io/autowarefoundation/autoware:universe-devel-cuda
80+
needs: prepare-build-and-test-differential
81+
if: ${{ needs.prepare-build-and-test-differential.outputs.cuda_build == 'true' }}
82+
steps:
83+
- name: Set PR fetch depth
84+
run: echo "PR_FETCH_DEPTH=$(( ${{ github.event.pull_request.commits }} + 1 ))" >> "${GITHUB_ENV}"
85+
shell: bash
86+
87+
- name: Checkout PR branch and all PR commits
88+
uses: actions/checkout@v4
89+
with:
90+
ref: ${{ github.event.pull_request.head.sha }}
91+
fetch-depth: ${{ env.PR_FETCH_DEPTH }}
92+
93+
- name: Run build-and-test-differential action
94+
uses: ./.github/actions/build-and-test-differential
95+
with:
96+
rosdistro: humble
97+
container: ghcr.io/autowarefoundation/autoware:universe-devel
98+
container-suffix: -cuda
99+
runner: codebuild-autoware-us-east-1-${{ github.run_id }}-${{ github.run_attempt }}-ubuntu-7.0-large
100+
build-depends-repos: build_depends.repos
101+
build-pre-command: taskset --cpu-list 0-5
74102
codecov-token: ${{ secrets.CODECOV_TOKEN }}
75103

76104
clang-tidy-differential:
77-
needs: build-and-test-differential
78-
runs-on: ubuntu-22.04
105+
needs: [build-and-test-differential, prepare-build-and-test-differential]
106+
if: ${{ needs.prepare-build-and-test-differential.outputs.cuda_build == 'false' }}
107+
runs-on: ubuntu-latest
108+
container: ghcr.io/autowarefoundation/autoware:universe-devel
109+
steps:
110+
- name: Set PR fetch depth
111+
run: echo "PR_FETCH_DEPTH=$(( ${{ github.event.pull_request.commits }} + 1 ))" >> "${GITHUB_ENV}"
112+
113+
- name: Checkout PR branch and all PR commits
114+
uses: actions/checkout@v4
115+
with:
116+
ref: ${{ github.event.pull_request.head.sha }}
117+
fetch-depth: ${{ env.PR_FETCH_DEPTH }}
118+
119+
- name: Show disk space before the tasks
120+
run: df -h
121+
122+
- name: Remove exec_depend
123+
uses: autowarefoundation/autoware-github-actions/remove-exec-depend@v1
124+
125+
- name: Get modified packages
126+
id: get-modified-packages
127+
uses: autowarefoundation/autoware-github-actions/get-modified-packages@v1
128+
129+
- name: Get changed files (existing files only)
130+
id: get-changed-files
131+
run: |
132+
echo "changed-files=$(git diff --name-only "origin/${{ github.base_ref }}"...HEAD | grep -E '\.(cpp|hpp)$' | while read -r file; do [ -e "$file" ] && echo -n "$file "; done)" >> $GITHUB_OUTPUT
133+
shell: bash
134+
135+
- name: Run clang-tidy
136+
if: ${{ steps.get-changed-files.outputs.changed-files != '' }}
137+
uses: autowarefoundation/autoware-github-actions/clang-tidy@v1
138+
with:
139+
rosdistro: humble
140+
target-packages: ${{ steps.get-modified-packages.outputs.modified-packages }}
141+
clang-tidy-config-url: https://raw.githubusercontent.com/autowarefoundation/autoware/main/.clang-tidy-ci
142+
clang-tidy-ignore-path: .clang-tidy-ignore
143+
build-depends-repos: build_depends.repos
144+
cache-key-element: cuda
145+
146+
- name: Show disk space after the tasks
147+
run: df -h
148+
149+
clang-tidy-differential-cuda:
150+
needs: build-and-test-differential-cuda
151+
runs-on: codebuild-autoware-us-east-1-${{ github.run_id }}-${{ github.run_attempt }}-ubuntu-7.0-large
79152
container: ghcr.io/autowarefoundation/autoware:universe-devel-cuda
80153
steps:
81154
- name: Set PR fetch depth
@@ -109,8 +182,8 @@ jobs:
109182
with:
110183
rosdistro: humble
111184
target-packages: ${{ steps.get-modified-packages.outputs.modified-packages }}
112-
target-files: ${{ steps.get-changed-files.outputs.changed-files }}
113185
clang-tidy-config-url: https://raw.githubusercontent.com/autowarefoundation/autoware/main/.clang-tidy-ci
186+
clang-tidy-ignore-path: .clang-tidy-ignore
114187
build-depends-repos: build_depends.repos
115188
cache-key-element: cuda
116189

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ env:
1616

1717
jobs:
1818
build-and-test:
19-
runs-on: codebuild-autoware-us-east-1-${{ github.run_id }}-${{ github.run_attempt }}-ubuntu-7.0-large
19+
runs-on: [self-hosted, Linux, X64]
2020
container: ${{ matrix.container }}${{ matrix.container-suffix }}
2121
strategy:
2222
fail-fast: false

.github/workflows/cancel-previous-workflows.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# This file is automatically synced from:
2+
# https://github.com/autowarefoundation/sync-file-templates
3+
# To make changes, update the source repository and follow the guidelines in its README.
4+
15
name: cancel-previous-workflows
26

37
on:

0 commit comments

Comments
 (0)