Skip to content
This repository was archived by the owner on Apr 1, 2025. It is now read-only.

Commit 32ed539

Browse files
github-actionsgithub-actions[bot]
github-actions
authored andcommitted
chore: sync files
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 0f81102 commit 32ed539

28 files changed

+494
-82
lines changed

.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

+8-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
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
48
directory: /
9+
# https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file#scheduleinterval
510
schedule:
6-
interval: daily
11+
interval: monthly
712
open-pull-requests-limit: 1
813
labels:
9-
- bot
10-
- github-actions
14+
- tag:bot
15+
- type:github-actions

.github/pull_request_template.md

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
## Description
2+
3+
## How was this PR tested?
4+
5+
## Notes for reviewers
6+
7+
None.
8+
9+
## Effects on system behavior
10+
11+
None.

.github/stale.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
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
48
daysUntilClose: false
59

610
# Label to use when marking as stale
7-
staleLabel: stale
11+
staleLabel: status:stale
812

913
# Comment to post when marking as stale
1014
markComment: >

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

+24-35
Original file line numberDiff line numberDiff line change
@@ -2,32 +2,44 @@ name: build-and-test-differential
22

33
on:
44
pull_request:
5+
types:
6+
- opened
7+
- synchronize
8+
- reopened
9+
- labeled
510

611
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-build-and-test-differential
16+
717
build-and-test-differential:
18+
needs: make-sure-label-is-present
19+
if: ${{ needs.make-sure-label-is-present.outputs.result == 'true' }}
820
runs-on: ubuntu-latest
921
container: ${{ matrix.container }}
1022
strategy:
1123
fail-fast: false
1224
matrix:
1325
rosdistro:
14-
- galactic
1526
- humble
1627
include:
17-
- rosdistro: galactic
18-
container: ros:galactic
19-
build-depends-repos: build_depends.repos
2028
- rosdistro: humble
2129
container: ros:humble
2230
build-depends-repos: build_depends.repos
2331
steps:
24-
- name: Cancel previous runs
25-
uses: styfle/[email protected]
32+
- name: Set PR fetch depth
33+
run: echo "PR_FETCH_DEPTH=$(( ${{ github.event.pull_request.commits }} + 1 ))" >> "${GITHUB_ENV}"
2634

27-
- name: Check out repository
28-
uses: actions/checkout@v3
35+
- name: Checkout PR branch and all PR commits
36+
uses: actions/checkout@v4
2937
with:
30-
fetch-depth: 0
38+
ref: ${{ github.event.pull_request.head.sha }}
39+
fetch-depth: ${{ env.PR_FETCH_DEPTH }}
40+
41+
- name: Show disk space before the tasks
42+
run: df -h
3143

3244
- name: Remove exec_depend
3345
uses: autowarefoundation/autoware-github-actions/remove-exec-depend@v1
@@ -55,35 +67,12 @@ jobs:
5567

5668
- name: Upload coverage to CodeCov
5769
if: ${{ steps.test.outputs.coverage-report-files != '' }}
58-
uses: codecov/codecov-action@v3
70+
uses: codecov/codecov-action@v4
5971
with:
6072
files: ${{ steps.test.outputs.coverage-report-files }}
6173
fail_ci_if_error: false
6274
verbose: true
6375
flags: differential
6476

65-
clang-tidy-differential:
66-
runs-on: ubuntu-latest
67-
container: ros:galactic
68-
needs: build-and-test-differential
69-
steps:
70-
- name: Check out repository
71-
uses: actions/checkout@v3
72-
with:
73-
fetch-depth: 0
74-
75-
- name: Remove exec_depend
76-
uses: autowarefoundation/autoware-github-actions/remove-exec-depend@v1
77-
78-
- name: Get modified packages
79-
id: get-modified-packages
80-
uses: autowarefoundation/autoware-github-actions/get-modified-packages@v1
81-
82-
- name: Run clang-tidy
83-
if: ${{ steps.get-modified-packages.outputs.modified-packages != '' }}
84-
uses: autowarefoundation/autoware-github-actions/clang-tidy@v1
85-
with:
86-
rosdistro: galactic
87-
target-packages: ${{ steps.get-modified-packages.outputs.modified-packages }}
88-
clang-tidy-config-url: https://raw.githubusercontent.com/autowarefoundation/autoware/main/.clang-tidy
89-
build-depends-repos: build_depends.repos
77+
- name: Show disk space after the tasks
78+
run: df -h

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

+10-6
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,19 @@ jobs:
1515
fail-fast: false
1616
matrix:
1717
rosdistro:
18-
- galactic
1918
- humble
2019
include:
21-
- rosdistro: galactic
22-
container: ros:galactic
23-
build-depends-repos: build_depends.repos
2420
- rosdistro: humble
2521
container: ros:humble
2622
build-depends-repos: build_depends.repos
2723
steps:
2824
- name: Check out repository
29-
uses: actions/checkout@v3
25+
uses: actions/checkout@v4
26+
with:
27+
fetch-depth: 1
28+
29+
- name: Show disk space before the tasks
30+
run: df -h
3031

3132
- name: Remove exec_depend
3233
uses: autowarefoundation/autoware-github-actions/remove-exec-depend@v1
@@ -54,9 +55,12 @@ jobs:
5455

5556
- name: Upload coverage to CodeCov
5657
if: ${{ steps.test.outputs.coverage-report-files != '' }}
57-
uses: codecov/codecov-action@v3
58+
uses: codecov/codecov-action@v4
5859
with:
5960
files: ${{ steps.test.outputs.coverage-report-files }}
6061
fail_ci_if_error: false
6162
verbose: true
6263
flags: total
64+
65+
- name: Show disk space after the tasks
66+
run: df -h
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
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+
5+
name: cancel-previous-workflows
6+
7+
on:
8+
pull_request_target:
9+
10+
jobs:
11+
cancel-previous-workflows:
12+
runs-on: ubuntu-22.04
13+
steps:
14+
- name: Cancel previous runs
15+
uses: styfle/[email protected]
16+
with:
17+
workflow_id: all
18+
all_but_latest: true
+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
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+
5+
name: check-build-depends
6+
7+
on:
8+
pull_request:
9+
paths:
10+
- build_depends*.repos
11+
12+
jobs:
13+
check-build-depends:
14+
runs-on: ubuntu-22.04
15+
container: ${{ matrix.container }}
16+
strategy:
17+
fail-fast: false
18+
matrix:
19+
rosdistro:
20+
- humble
21+
include:
22+
- rosdistro: humble
23+
container: ros:humble
24+
build-depends-repos: build_depends.repos
25+
steps:
26+
- name: Check out repository
27+
uses: actions/checkout@v4
28+
29+
- name: Remove exec_depend
30+
uses: autowarefoundation/autoware-github-actions/remove-exec-depend@v1
31+
32+
- name: Get self packages
33+
id: get-self-packages
34+
uses: autowarefoundation/autoware-github-actions/get-self-packages@v1
35+
36+
- name: Build
37+
uses: autowarefoundation/autoware-github-actions/colcon-build@v1
38+
with:
39+
rosdistro: ${{ matrix.rosdistro }}
40+
target-packages: ${{ steps.get-self-packages.outputs.self-packages }}
41+
build-depends-repos: ${{ matrix.build-depends-repos }}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
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+
5+
name: clang-tidy-pr-comments-manually
6+
7+
on:
8+
workflow_dispatch:
9+
inputs:
10+
workflow_run_id_or_url:
11+
description: The target workflow run ID or URL of the build-and-test-differential workflow
12+
required: true
13+
jobs:
14+
clang-tidy-pr-comments-manually:
15+
runs-on: ubuntu-22.04
16+
steps:
17+
- name: Check out repository
18+
uses: actions/checkout@v3
19+
20+
- name: Download analysis results
21+
run: |
22+
workflow_run_id=$(echo "${{ inputs.workflow_run_id_or_url }}" | sed -e "s|.*runs/||" -e "s|/jobs.*||")
23+
gh run download "$workflow_run_id" -D /tmp || true
24+
env:
25+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26+
27+
- name: Check if the fixes.yaml file exists
28+
id: check-fixes-yaml-existence
29+
uses: autowarefoundation/autoware-github-actions/check-file-existence@v1
30+
with:
31+
files: /tmp/clang-tidy-result/fixes.yaml
32+
33+
- name: Set variables
34+
if: ${{ steps.check-fixes-yaml-existence.outputs.exists == 'true' }}
35+
id: set-variables
36+
run: |
37+
echo "pr-id=$(cat /tmp/clang-tidy-result/pr-id.txt)" >> $GITHUB_OUTPUT
38+
echo "pr-head-repo=$(cat /tmp/clang-tidy-result/pr-head-repo.txt)" >> $GITHUB_OUTPUT
39+
echo "pr-head-ref=$(cat /tmp/clang-tidy-result/pr-head-ref.txt)" >> $GITHUB_OUTPUT
40+
41+
- name: Check out PR head
42+
if: ${{ steps.check-fixes-yaml-existence.outputs.exists == 'true' }}
43+
uses: actions/checkout@v3
44+
with:
45+
repository: ${{ steps.set-variables.outputs.pr-head-repo }}
46+
ref: ${{ steps.set-variables.outputs.pr-head-ref }}
47+
persist-credentials: false
48+
49+
- name: Replace paths in fixes.yaml
50+
if: ${{ steps.check-fixes-yaml-existence.outputs.exists == 'true' }}
51+
run: |
52+
sed -i -e "s|/__w/|/home/runner/work/|g" /tmp/clang-tidy-result/fixes.yaml
53+
cat /tmp/clang-tidy-result/fixes.yaml
54+
55+
- name: Copy fixes.yaml to access from Docker Container Action
56+
if: ${{ steps.check-fixes-yaml-existence.outputs.exists == 'true' }}
57+
run: |
58+
cp /tmp/clang-tidy-result/fixes.yaml fixes.yaml
59+
60+
- name: Run clang-tidy-pr-comments action
61+
if: ${{ steps.check-fixes-yaml-existence.outputs.exists == 'true' }}
62+
uses: platisd/clang-tidy-pr-comments@v1
63+
with:
64+
github_token: ${{ secrets.GITHUB_TOKEN }}
65+
clang_tidy_fixes: fixes.yaml
66+
pull_request_id: ${{ steps.set-variables.outputs.pr-id }}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
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+
5+
name: clang-tidy-pr-comments
6+
7+
on:
8+
workflow_run:
9+
workflows:
10+
- build-and-test-differential
11+
types:
12+
- completed
13+
14+
jobs:
15+
clang-tidy-pr-comments:
16+
if: ${{ github.event.workflow_run.event == 'pull_request' && contains(fromJson('["success", "failure"]'), github.event.workflow_run.conclusion) }}
17+
runs-on: ubuntu-22.04
18+
steps:
19+
- name: Check out repository
20+
uses: actions/checkout@v3
21+
22+
- name: Download analysis results
23+
run: |
24+
gh run download ${{ github.event.workflow_run.id }} -D /tmp || true
25+
env:
26+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27+
28+
- name: Check if the fixes.yaml file exists
29+
id: check-fixes-yaml-existence
30+
uses: autowarefoundation/autoware-github-actions/check-file-existence@v1
31+
with:
32+
files: /tmp/clang-tidy-result/fixes.yaml
33+
34+
- name: Set variables
35+
if: ${{ steps.check-fixes-yaml-existence.outputs.exists == 'true' }}
36+
id: set-variables
37+
run: |
38+
echo "pr-id=$(cat /tmp/clang-tidy-result/pr-id.txt)" >> $GITHUB_OUTPUT
39+
echo "pr-head-repo=$(cat /tmp/clang-tidy-result/pr-head-repo.txt)" >> $GITHUB_OUTPUT
40+
echo "pr-head-ref=$(cat /tmp/clang-tidy-result/pr-head-ref.txt)" >> $GITHUB_OUTPUT
41+
42+
- name: Check out PR head
43+
if: ${{ steps.check-fixes-yaml-existence.outputs.exists == 'true' }}
44+
uses: actions/checkout@v3
45+
with:
46+
repository: ${{ steps.set-variables.outputs.pr-head-repo }}
47+
ref: ${{ steps.set-variables.outputs.pr-head-ref }}
48+
persist-credentials: false
49+
50+
- name: Replace paths in fixes.yaml
51+
if: ${{ steps.check-fixes-yaml-existence.outputs.exists == 'true' }}
52+
run: |
53+
sed -i -e "s|/__w/|/home/runner/work/|g" /tmp/clang-tidy-result/fixes.yaml
54+
cat /tmp/clang-tidy-result/fixes.yaml
55+
56+
- name: Copy fixes.yaml to access from Docker Container Action
57+
if: ${{ steps.check-fixes-yaml-existence.outputs.exists == 'true' }}
58+
run: |
59+
cp /tmp/clang-tidy-result/fixes.yaml fixes.yaml
60+
61+
- name: Run clang-tidy-pr-comments action
62+
if: ${{ steps.check-fixes-yaml-existence.outputs.exists == 'true' }}
63+
uses: platisd/clang-tidy-pr-comments@v1
64+
with:
65+
github_token: ${{ secrets.GITHUB_TOKEN }}
66+
clang_tidy_fixes: fixes.yaml
67+
pull_request_id: ${{ steps.set-variables.outputs.pr-id }}

0 commit comments

Comments
 (0)