Skip to content

Commit 0eaaea5

Browse files
authored
Merge branch 'main' into feat/mrm_emergency_stop_operator/sub_by_polling
2 parents 6d96bb9 + 6398f9b commit 0eaaea5

File tree

2,417 files changed

+77291
-72299
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,417 files changed

+77291
-72299
lines changed

.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

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
runs-on: ubuntu-latest
99
steps:
1010
- name: Cancel previous runs
11-
uses: styfle/cancel-workflow-action@0.12.0
11+
uses: styfle/cancel-workflow-action@0.12.1
1212
with:
1313
workflow_id: all
1414
all_but_latest: true

.github/workflows/check-build-depends.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
build-depends-repos: build_depends.repos
2121
steps:
2222
- name: Check out repository
23-
uses: actions/checkout@v4
23+
uses: actions/checkout@v3
2424

2525
- name: Remove exec_depend
2626
uses: autowarefoundation/autoware-github-actions/remove-exec-depend@v1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
name: clang-tidy-differential
2+
3+
on:
4+
pull_request:
5+
types:
6+
- opened
7+
- synchronize
8+
- reopened
9+
- labeled
10+
11+
jobs:
12+
make-sure-label-is-present:
13+
uses: autowarefoundation/autoware-github-actions/.github/workflows/make-sure-label-is-present.yaml@v1
14+
with:
15+
label: tag:run-clang-tidy-differential
16+
17+
clang-tidy-differential:
18+
needs: make-sure-label-is-present
19+
if: ${{ needs.make-sure-label-is-present.outputs.result == 'true' }}
20+
runs-on: ubuntu-latest
21+
container: ghcr.io/autowarefoundation/autoware:latest-prebuilt-cuda
22+
steps:
23+
- name: Set PR fetch depth
24+
run: echo "PR_FETCH_DEPTH=$(( ${{ github.event.pull_request.commits }} + 1 ))" >> "${GITHUB_ENV}"
25+
26+
- name: Checkout PR branch and all PR commits
27+
uses: actions/checkout@v4
28+
with:
29+
ref: ${{ github.event.pull_request.head.sha }}
30+
fetch-depth: ${{ env.PR_FETCH_DEPTH }}
31+
32+
- name: Show disk space before the tasks
33+
run: df -h
34+
35+
- name: Remove exec_depend
36+
uses: autowarefoundation/autoware-github-actions/remove-exec-depend@v1
37+
38+
- name: Get modified packages
39+
id: get-modified-packages
40+
uses: autowarefoundation/autoware-github-actions/get-modified-packages@v1
41+
42+
- name: Get modified files
43+
id: get-modified-files
44+
uses: tj-actions/changed-files@v42
45+
with:
46+
files: |
47+
**/*.cpp
48+
**/*.hpp
49+
50+
- name: Run clang-tidy
51+
if: ${{ steps.get-modified-files.outputs.all_changed_files != '' }}
52+
uses: autowarefoundation/autoware-github-actions/clang-tidy@v1
53+
with:
54+
rosdistro: humble
55+
target-packages: ${{ steps.get-modified-packages.outputs.modified-packages }}
56+
target-files: ${{ steps.get-modified-files.outputs.all_changed_files }}
57+
clang-tidy-config-url: https://raw.githubusercontent.com/autowarefoundation/autoware/main/.clang-tidy
58+
build-depends-repos: build_depends.repos
59+
60+
- name: Show disk space after the tasks
61+
run: df -h

.github/workflows/clang-tidy-pr-comments-manually.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Check out repository
14-
uses: actions/checkout@v4
14+
uses: actions/checkout@v3
1515

1616
- name: Download analysis results
1717
run: |
@@ -36,7 +36,7 @@ jobs:
3636
3737
- name: Check out PR head
3838
if: ${{ steps.check-fixes-yaml-existence.outputs.exists == 'true' }}
39-
uses: actions/checkout@v4
39+
uses: actions/checkout@v3
4040
with:
4141
repository: ${{ steps.set-variables.outputs.pr-head-repo }}
4242
ref: ${{ steps.set-variables.outputs.pr-head-ref }}

.github/workflows/clang-tidy-pr-comments.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- name: Check out repository
16-
uses: actions/checkout@v4
16+
uses: actions/checkout@v3
1717

1818
- name: Download analysis results
1919
run: |
@@ -37,7 +37,7 @@ jobs:
3737
3838
- name: Check out PR head
3939
if: ${{ steps.check-fixes-yaml-existence.outputs.exists == 'true' }}
40-
uses: actions/checkout@v4
40+
uses: actions/checkout@v3
4141
with:
4242
repository: ${{ steps.set-variables.outputs.pr-head-repo }}
4343
ref: ${{ steps.set-variables.outputs.pr-head-ref }}

.github/workflows/cppcheck-all.yaml

-60
This file was deleted.

.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

.github/workflows/delete-closed-pr-docs.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Check out repository
13-
uses: actions/checkout@v4
13+
uses: actions/checkout@v3
1414
with:
1515
fetch-depth: 0
1616

.github/workflows/deploy-docs.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
runs-on: ubuntu-latest
3131
steps:
3232
- name: Check out repository
33-
uses: actions/checkout@v4
33+
uses: actions/checkout@v3
3434
with:
3535
fetch-depth: 0
3636
ref: ${{ github.event.pull_request.head.sha }}

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

-39
This file was deleted.

.github/workflows/pr-agent.yaml

+10-3
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,13 @@ jobs:
2626
env:
2727
OPENAI_KEY: ${{ secrets.OPENAI_KEY_PR_AGENT }}
2828
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29-
github_action_config.auto_review: "false"
30-
github_action_config.auto_describe: "false"
31-
github_action_config.auto_improve: "false"
29+
github_action_config.auto_review: false
30+
github_action_config.auto_describe: false
31+
github_action_config.auto_improve: false
32+
# https://github.com/Codium-ai/pr-agent/blob/main/pr_agent/settings/configuration.toml
33+
pr_description.publish_labels: false
34+
config.model: gpt-4o
35+
config.model_turbo: gpt-4o
36+
config.max_model_tokens: 64000
37+
pr_code_suggestions.max_context_tokens: 12000
38+
pr_code_suggestions.commitable_code_suggestions: true

0 commit comments

Comments
 (0)