Skip to content

Commit bb2a69e

Browse files
authored
Merge branch 'main' into refactor/lidar_centerpoint-add-training-docs
2 parents b0fad69 + f25396f commit bb2a69e

File tree

2,337 files changed

+74216
-72513
lines changed

Some content is hidden

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

2,337 files changed

+74216
-72513
lines changed

.cppcheck_suppressions

+59
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
arrayIndexThenCheck
2+
assignBoolToFloat
3+
checkersReport
4+
constParameterPointer
5+
constParameterReference
6+
constStatement
7+
constVariable
8+
constVariablePointer
9+
constVariableReference
10+
containerOutOfBounds
11+
cstyleCast
12+
ctuOneDefinitionRuleViolation
13+
current_deleted_index
14+
duplicateAssignExpression
15+
duplicateBranch
16+
duplicateBreak
17+
duplicateCondition
18+
duplicateExpression
19+
funcArgNamesDifferent
20+
functionConst
21+
functionStatic
22+
invalidPointerCast
23+
knownConditionTrueFalse
24+
missingInclude
25+
missingIncludeSystem
26+
multiCondition
27+
noConstructor
28+
noExplicitConstructor
29+
noValidConfiguration
30+
obstacle_cruise_planner
31+
passedByValue
32+
preprocessorErrorDirective
33+
redundantAssignment
34+
redundantContinue
35+
redundantIfRemove
36+
redundantInitialization
37+
returnByReference
38+
selfAssignment
39+
shadowArgument
40+
shadowFunction
41+
shadowVariable
42+
stlFindInsert
43+
syntaxError
44+
uninitMemberVar
45+
unknownMacro
46+
unmatchedSuppression
47+
unpreciseMathCall
48+
unreadVariable
49+
unsignedLessThanZero
50+
unusedFunction
51+
unusedScopedObject
52+
unusedStructMember
53+
unusedVariable
54+
useInitializationList
55+
useStlAlgorithm
56+
uselessCallsSubstr
57+
uselessOverride
58+
variableScope
59+
virtualCallInConstructor

.github/CODEOWNERS

+82-67
Large diffs are not rendered by default.

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

+6-2
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,14 @@ jobs:
3232
container: ghcr.io/autowarefoundation/autoware:latest-prebuilt
3333
build-depends-repos: build_depends.repos
3434
steps:
35-
- name: Check out repository
35+
- name: Set PR fetch depth
36+
run: echo "PR_FETCH_DEPTH=$(( ${{ github.event.pull_request.commits }} + 1 ))" >> "${GITHUB_ENV}"
37+
38+
- name: Checkout PR branch and all PR commits
3639
uses: actions/checkout@v4
3740
with:
38-
fetch-depth: 0
41+
ref: ${{ github.event.pull_request.head.sha }}
42+
fetch-depth: ${{ env.PR_FETCH_DEPTH }}
3943

4044
- name: Show disk space before the tasks
4145
run: df -h

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

+6-39
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,14 @@ jobs:
3131
container: ghcr.io/autowarefoundation/autoware:latest-prebuilt
3232
build-depends-repos: build_depends.repos
3333
steps:
34-
- name: Check out repository
34+
- name: Set PR fetch depth
35+
run: echo "PR_FETCH_DEPTH=$(( ${{ github.event.pull_request.commits }} + 1 ))" >> "${GITHUB_ENV}"
36+
37+
- name: Checkout PR branch and all PR commits
3538
uses: actions/checkout@v4
3639
with:
37-
fetch-depth: 0
40+
ref: ${{ github.event.pull_request.head.sha }}
41+
fetch-depth: ${{ env.PR_FETCH_DEPTH }}
3842

3943
- name: Show disk space before the tasks
4044
run: df -h
@@ -74,40 +78,3 @@ jobs:
7478

7579
- name: Show disk space after the tasks
7680
run: df -h
77-
78-
clang-tidy-differential:
79-
runs-on: ubuntu-latest
80-
container: ghcr.io/autowarefoundation/autoware:latest-prebuilt-cuda
81-
steps:
82-
- name: Check out repository
83-
uses: actions/checkout@v4
84-
with:
85-
fetch-depth: 0
86-
87-
- name: Show disk space before the tasks
88-
run: df -h
89-
90-
- name: Remove exec_depend
91-
uses: autowarefoundation/autoware-github-actions/remove-exec-depend@v1
92-
93-
- name: Get modified packages
94-
id: get-modified-packages
95-
uses: autowarefoundation/autoware-github-actions/get-modified-packages@v1
96-
97-
- name: Get modified files
98-
id: get-modified-files
99-
uses: tj-actions/changed-files@v35
100-
with:
101-
files: |
102-
**/*.cpp
103-
**/*.hpp
104-
105-
- name: Run clang-tidy
106-
if: ${{ steps.get-modified-files.outputs.all_changed_files != '' }}
107-
uses: autowarefoundation/autoware-github-actions/clang-tidy@v1
108-
with:
109-
rosdistro: humble
110-
target-packages: ${{ steps.get-modified-packages.outputs.modified-packages }}
111-
target-files: ${{ steps.get-modified-files.outputs.all_changed_files }}
112-
clang-tidy-config-url: https://raw.githubusercontent.com/autowarefoundation/autoware/main/.clang-tidy
113-
build-depends-repos: build_depends.repos

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
jobs:
1010
build-and-test:
1111
if: ${{ github.event_name != 'push' || github.ref_name == github.event.repository.default_branch }}
12-
runs-on: ubuntu-latest
12+
runs-on: [self-hosted, linux, X64]
1313
container: ${{ matrix.container }}${{ matrix.container-suffix }}
1414
strategy:
1515
fail-fast: false
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: clang-tidy-differential
2+
3+
on:
4+
pull_request:
5+
types:
6+
- opened
7+
- synchronize
8+
- labeled
9+
10+
jobs:
11+
prevent-no-label-execution:
12+
uses: autowarefoundation/autoware-github-actions/.github/workflows/prevent-no-label-execution.yaml@v1
13+
with:
14+
label: tag:run-clang-tidy-differential
15+
16+
clang-tidy-differential:
17+
needs: prevent-no-label-execution
18+
if: ${{ needs.prevent-no-label-execution.outputs.run == 'true' }}
19+
runs-on: ubuntu-latest
20+
container: ghcr.io/autowarefoundation/autoware:latest-prebuilt-cuda
21+
steps:
22+
- name: Check out repository
23+
uses: actions/checkout@v4
24+
with:
25+
fetch-depth: 0
26+
27+
- name: Show disk space before the tasks
28+
run: df -h
29+
30+
- name: Remove exec_depend
31+
uses: autowarefoundation/autoware-github-actions/remove-exec-depend@v1
32+
33+
- name: Get modified packages
34+
id: get-modified-packages
35+
uses: autowarefoundation/autoware-github-actions/get-modified-packages@v1
36+
37+
- name: Get modified files
38+
id: get-modified-files
39+
uses: tj-actions/changed-files@v35
40+
with:
41+
files: |
42+
**/*.cpp
43+
**/*.hpp
44+
45+
- name: Run clang-tidy
46+
if: ${{ steps.get-modified-files.outputs.all_changed_files != '' }}
47+
uses: autowarefoundation/autoware-github-actions/clang-tidy@v1
48+
with:
49+
rosdistro: humble
50+
target-packages: ${{ steps.get-modified-packages.outputs.modified-packages }}
51+
target-files: ${{ steps.get-modified-files.outputs.all_changed_files }}
52+
clang-tidy-config-url: https://raw.githubusercontent.com/autowarefoundation/autoware/main/.clang-tidy
53+
build-depends-repos: build_depends.repos

.github/workflows/cppcheck-daily.yaml

+59
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: cppcheck-daily
2+
3+
on:
4+
schedule:
5+
- cron: 0 0 * * *
6+
workflow_dispatch:
7+
8+
jobs:
9+
cppcheck-daily:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v2
15+
16+
- name: Install dependencies
17+
run: |
18+
sudo apt-get update
19+
sudo apt-get install -y build-essential cmake git libpcre3-dev
20+
21+
# cppcheck from apt does not yet support --check-level args, and thus install from source
22+
- name: Install Cppcheck from source
23+
run: |
24+
mkdir /tmp/cppcheck
25+
git clone https://github.com/danmar/cppcheck.git /tmp/cppcheck
26+
cd /tmp/cppcheck
27+
git checkout 2.14.1
28+
mkdir build
29+
cd build
30+
cmake ..
31+
make -j $(nproc)
32+
sudo make install
33+
34+
- name: Run Cppcheck on all files
35+
continue-on-error: true
36+
id: cppcheck
37+
run: |
38+
cppcheck --enable=all --inconclusive --check-level=exhaustive --error-exitcode=1 --xml . 2> cppcheck-report.xml
39+
shell: bash
40+
41+
- name: Count errors by error ID and severity
42+
run: |
43+
#!/bin/bash
44+
temp_file=$(mktemp)
45+
grep -oP '(?<=id=")[^"]+" severity="[^"]+' cppcheck-report.xml | sed 's/" severity="/,/g' > "$temp_file"
46+
echo "Error counts by error ID and severity:"
47+
sort "$temp_file" | uniq -c
48+
rm "$temp_file"
49+
shell: bash
50+
51+
- name: Upload Cppcheck report
52+
uses: actions/upload-artifact@v2
53+
with:
54+
name: cppcheck-report
55+
path: cppcheck-report.xml
56+
57+
- name: Fail the job if Cppcheck failed
58+
if: steps.cppcheck.outcome == 'failure'
59+
run: exit 1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
name: cppcheck-differential
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
cppcheck-differential:
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- name: Checkout code
12+
uses: actions/checkout@v2
13+
14+
- name: Install dependencies
15+
run: |
16+
sudo apt-get update
17+
sudo apt-get install -y build-essential cmake git libpcre3-dev
18+
19+
# cppcheck from apt does not yet support --check-level args, and thus install from source
20+
- name: Install Cppcheck from source
21+
run: |
22+
mkdir /tmp/cppcheck
23+
git clone https://github.com/danmar/cppcheck.git /tmp/cppcheck
24+
cd /tmp/cppcheck
25+
git checkout 2.14.1
26+
mkdir build
27+
cd build
28+
cmake ..
29+
make -j $(nproc)
30+
sudo make install
31+
32+
- name: Get changed files
33+
id: changed-files
34+
run: |
35+
git fetch origin ${{ github.base_ref }} --depth=1
36+
git diff --name-only FETCH_HEAD ${{ github.sha }} > changed_files.txt
37+
cat changed_files.txt
38+
39+
- name: Run Cppcheck on changed files
40+
continue-on-error: true
41+
id: cppcheck
42+
run: |
43+
files=$(cat changed_files.txt | grep -E '\.(cpp|hpp)$' || true)
44+
if [ -n "$files" ]; then
45+
echo "Running Cppcheck on changed files: $files"
46+
cppcheck --enable=all --inconclusive --check-level=exhaustive --error-exitcode=1 --suppressions-list=.cppcheck_suppressions $files 2> cppcheck-report.txt
47+
else
48+
echo "No C++ files changed."
49+
touch cppcheck-report.txt
50+
fi
51+
shell: bash
52+
53+
- name: Show cppcheck-report result
54+
run: |
55+
cat cppcheck-report.txt
56+
57+
- name: Upload Cppcheck report
58+
uses: actions/upload-artifact@v2
59+
with:
60+
name: cppcheck-report
61+
path: cppcheck-report.txt
62+
63+
- name: Fail the job if Cppcheck failed
64+
if: steps.cppcheck.outcome == 'failure'
65+
run: exit 1

.github/workflows/dco.yaml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: DCO
2+
# ref: https://github.com/anchore/syft/pull/2926/files
3+
on:
4+
pull_request:
5+
jobs:
6+
dco:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v4
10+
11+
- name: Setup Python 3.x
12+
uses: actions/setup-python@v5
13+
with:
14+
python-version: 3.x
15+
16+
- name: Check DCO
17+
env:
18+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19+
run: |
20+
pip3 install -U dco-check
21+
dco-check --verbose --exclude-pattern 'pre-commit-ci\[bot\]@users\.noreply\.github\.com'

.github/workflows/openai-pr-reviewer.yaml

-39
This file was deleted.

0 commit comments

Comments
 (0)