Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: upstream to main #153

Merged
merged 18 commits into from
Dec 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
d8367f9
feat(.github): push version tag images (#5522)
youtalk Dec 2, 2024
d5a18ba
feat(.github): add `on:push:branches:` condition to `autoware-base` w…
youtalk Dec 3, 2024
9185662
fix(.github): not push manifest if eithor `amd64` or `arm64` image is…
youtalk Dec 3, 2024
503b2a0
chore(autoware.repos): fix autoware.core commit hash (#5530)
mitsudome-r Dec 3, 2024
33215d6
feat(.git): delete `-amd64` and `-arm64` image tags after pushing ma…
youtalk Dec 5, 2024
302e8b5
chore(.github): skip `free-disk-space` action if there are no changed…
youtalk Dec 5, 2024
f4698fd
ci: enable bugprone-* warnings in clang-tidy (#5543)
veqcc Dec 11, 2024
5c01fb0
feat(autoware.repos): use version tag for sensor_kits (#5554)
mitsudome-r Dec 12, 2024
46ec487
ci(pre-commit-ansible): autoupdate (#5552)
awf-autoware-bot[bot] Dec 16, 2024
3ee11e3
chore(deps): bump peter-evans/create-pull-request from 6 to 7 (#5162)
dependabot[bot] Dec 16, 2024
d99cfde
ci(pre-commit-optional): autoupdate (#5401)
awf-autoware-bot[bot] Dec 16, 2024
11e9705
chore: sync files (#5541)
awf-autoware-bot[bot] Dec 16, 2024
bad175e
chore: sync files (#5572)
awf-autoware-bot[bot] Dec 17, 2024
b0ae177
fix(.github): fix CODEOWNERS (#5575)
youtalk Dec 17, 2024
5a42d96
fix: update branch of scenario_simulator_v2 to master (#5570)
rej55 Dec 17, 2024
2e05c36
feat(autoware.repos): remove `autoware_common` from `autoware.repos` …
youtalk Dec 18, 2024
8f750f4
chore(.devcontainer): add `core-devel` development container (#5574)
youtalk Dec 18, 2024
44af016
Merge remote-tracking branch 'upstream/main' into upstream-to-main
youtalk Dec 19, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion .clang-tidy-ci
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
Checks: "
-*,
bugprone-dangling-handle"
bugprone-*,
-bugprone-branch-clone,
-bugprone-easily-swappable-parameters,
-bugprone-exception-escape,
-bugprone-implicit-widening-of-multiplication-result,
-bugprone-infinite-loop,
-bugprone-integer-division,
-bugprone-macro-parentheses,
-bugprone-narrowing-conversions,
-bugprone-parent-virtual-call,
-bugprone-reserved-identifier,
-bugprone-signed-char-misuse"

WarningsAsErrors: "*"

Expand Down
22 changes: 22 additions & 0 deletions .devcontainer/core-devel/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"name": "autoware:core-devel",
"build": {
"dockerfile": "../Dockerfile",
"args": { "BASE_IMAGE": "ghcr.io/autowarefoundation/autoware:core-devel" }
},
"remoteUser": "autoware",
"runArgs": [
"--cap-add=SYS_PTRACE",

Check warning on line 9 in .devcontainer/core-devel/devcontainer.json

View workflow job for this annotation

GitHub Actions / spell-check-differential

Unknown word (PTRACE)
"--security-opt",
"seccomp=unconfined",

Check warning on line 11 in .devcontainer/core-devel/devcontainer.json

View workflow job for this annotation

GitHub Actions / spell-check-differential

Unknown word (seccomp)
"--net=host",
"--volume=/etc/localtime:/etc/localtime:ro"
],
"customizations": {
"vscode": {
"settings.json": {
"terminal.integrated.profiles.linux": { "bash": { "path": "/bin/bash" } }
}
}
}
}
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
* [email protected] mfc@leodrive.ai
* [email protected] mfc@autoware.org

.devcontainer/** [email protected] [email protected]
.github/** [email protected] [email protected]
Expand Down
16 changes: 13 additions & 3 deletions .github/actions/combine-multi-arch-images/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ runs:
ALL_TAGS: ${{ steps.get-all-tags.outputs.tags }}
shell: bash

- name: Create Docker manifest
- name: Create Docker manifest and delete -amd64 and -arm64 tags
run: |
for base_tag in $BASE_TAGS; do
echo -e "\nbase_tag: $base_tag"
Expand All @@ -82,14 +82,14 @@ runs:
amd64_image="${{ steps.set-image-name.outputs.image-name }}:$amd64_tag"
else
echo "No amd64 tag found for '$base_tag'."
amd64_image=""
continue
fi

if [ "$arm64_tag" != "" ]; then
arm64_image="${{ steps.set-image-name.outputs.image-name }}:$arm64_tag"
else
echo "No arm64 tag found for '$base_tag'."
arm64_image=""
continue
fi

echo "amd64_image: $amd64_image"
Expand All @@ -100,6 +100,16 @@ runs:
$arm64_image; then

docker manifest push ${{ steps.set-image-name.outputs.image-name }}:$base_tag

# Delete amd64_image and arm64_image
curl -X DELETE \
-H "Authorization: Bearer ${{ github.token }}" \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/orgs/${{ github.repository_owner }}/packages/container/${{ inputs.package-name }}/versions/$amd64_tag
curl -X DELETE \
-H "Authorization: Bearer ${{ github.token }}" \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/orgs/${{ github.repository_owner }}/packages/container/${{ inputs.package-name }}/versions/$arm64_tag
fi
done
env:
Expand Down
6 changes: 5 additions & 1 deletion .github/actions/docker-build-and-push-cuda/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ runs:
tags: |
type=raw,value=universe-sensing-perception-devel-cuda-${{ inputs.platform }}
type=raw,value=universe-sensing-perception-devel-cuda-${{ steps.date.outputs.date }}-${{ inputs.platform }}
type=ref,event=tag,prefix=universe-sensing-perception-devel-cuda-,suffix=-${{ inputs.platform }}
bake-target: docker-metadata-action-universe-sensing-perception-devel-cuda
flavor: |
latest=false
Expand All @@ -93,6 +94,7 @@ runs:
tags: |
type=raw,value=universe-sensing-perception-cuda-${{ inputs.platform }}
type=raw,value=universe-sensing-perception-cuda-${{ steps.date.outputs.date }}-${{ inputs.platform }}
type=ref,event=tag,prefix=universe-sensing-perception-cuda-,suffix=-${{ inputs.platform }}
bake-target: docker-metadata-action-universe-sensing-perception-cuda
flavor: |
latest=false
Expand All @@ -105,6 +107,7 @@ runs:
tags: |
type=raw,value=universe-devel-cuda-${{ inputs.platform }}
type=raw,value=universe-devel-cuda-${{ steps.date.outputs.date }}-${{ inputs.platform }}
type=ref,event=tag,prefix=universe-devel-cuda-,suffix=-${{ inputs.platform }}
bake-target: docker-metadata-action-universe-devel-cuda
flavor: |
latest=false
Expand All @@ -117,9 +120,10 @@ runs:
tags: |
type=raw,value=universe-cuda-${{ inputs.platform }}
type=raw,value=universe-cuda-${{ steps.date.outputs.date }}-${{ inputs.platform }}
type=ref,event=tag,prefix=universe-cuda-,suffix=-${{ inputs.platform }}
bake-target: docker-metadata-action-universe-cuda
flavor: |
latest=auto
latest=false

- name: Build and Push to Docker Hub
uses: docker/bake-action@v5
Expand Down
11 changes: 11 additions & 0 deletions .github/actions/docker-build-and-push/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ runs:
tags: |
type=raw,value=core-devel-${{ inputs.platform }}
type=raw,value=core-devel-${{ steps.date.outputs.date }}-${{ inputs.platform }}
type=ref,event=tag,prefix=core-devel-,suffix=-${{ inputs.platform }}
bake-target: docker-metadata-action-core-devel
flavor: |
latest=false
Expand All @@ -93,6 +94,7 @@ runs:
tags: |
type=raw,value=universe-sensing-perception-devel-${{ inputs.platform }}
type=raw,value=universe-sensing-perception-devel-${{ steps.date.outputs.date }}-${{ inputs.platform }}
type=ref,event=tag,prefix=universe-sensing-perception-devel-,suffix=-${{ inputs.platform }}
bake-target: docker-metadata-action-universe-sensing-perception-devel
flavor: |
latest=false
Expand All @@ -105,6 +107,7 @@ runs:
tags: |
type=raw,value=universe-sensing-perception-${{ inputs.platform }}
type=raw,value=universe-sensing-perception-${{ steps.date.outputs.date }}-${{ inputs.platform }}
type=ref,event=tag,prefix=universe-sensing-perception-,suffix=-${{ inputs.platform }}
bake-target: docker-metadata-action-universe-sensing-perception
flavor: |
latest=false
Expand All @@ -117,6 +120,7 @@ runs:
tags: |
type=raw,value=universe-localization-mapping-devel-${{ inputs.platform }}
type=raw,value=universe-localization-mapping-devel-${{ steps.date.outputs.date }}-${{ inputs.platform }}
type=ref,event=tag,prefix=universe-localization-mapping-devel-,suffix=-${{ inputs.platform }}
bake-target: docker-metadata-action-universe-localization-mapping-devel
flavor: |
latest=false
Expand All @@ -129,6 +133,7 @@ runs:
tags: |
type=raw,value=universe-localization-mapping-${{ inputs.platform }}
type=raw,value=universe-localization-mapping-${{ steps.date.outputs.date }}-${{ inputs.platform }}
type=ref,event=tag,prefix=universe-localization-mapping-,suffix=-${{ inputs.platform }}
bake-target: docker-metadata-action-universe-localization-mapping
flavor: |
latest=false
Expand All @@ -141,6 +146,7 @@ runs:
tags: |
type=raw,value=universe-planning-control-devel-${{ inputs.platform }}
type=raw,value=universe-planning-control-devel-${{ steps.date.outputs.date }}-${{ inputs.platform }}
type=ref,event=tag,prefix=universe-planning-control-devel-,suffix=-${{ inputs.platform }}
bake-target: docker-metadata-action-universe-planning-control-devel
flavor: |
latest=false
Expand All @@ -153,6 +159,7 @@ runs:
tags: |
type=raw,value=universe-planning-control-${{ inputs.platform }}
type=raw,value=universe-planning-control-${{ steps.date.outputs.date }}-${{ inputs.platform }}
type=ref,event=tag,prefix=universe-planning-control-,suffix=-${{ inputs.platform }}
bake-target: docker-metadata-action-universe-planning-control
flavor: |
latest=false
Expand All @@ -165,6 +172,7 @@ runs:
tags: |
type=raw,value=universe-vehicle-system-devel-${{ inputs.platform }}
type=raw,value=universe-vehicle-system-devel-${{ steps.date.outputs.date }}-${{ inputs.platform }}
type=ref,event=tag,prefix=universe-vehicle-system-devel-,suffix=-${{ inputs.platform }}
bake-target: docker-metadata-action-universe-vehicle-system-devel
flavor: |
latest=false
Expand All @@ -177,6 +185,7 @@ runs:
tags: |
type=raw,value=universe-vehicle-system-${{ inputs.platform }}
type=raw,value=universe-vehicle-system-${{ steps.date.outputs.date }}-${{ inputs.platform }}
type=ref,event=tag,prefix=universe-vehicle-system-,suffix=-${{ inputs.platform }}
bake-target: docker-metadata-action-universe-vehicle-system
flavor: |
latest=false
Expand All @@ -189,6 +198,7 @@ runs:
tags: |
type=raw,value=universe-devel-${{ inputs.platform }}
type=raw,value=universe-devel-${{ steps.date.outputs.date }}-${{ inputs.platform }}
type=ref,event=tag,prefix=universe-devel-,suffix=-${{ inputs.platform }}
bake-target: docker-metadata-action-universe-devel
flavor: |
latest=false
Expand All @@ -201,6 +211,7 @@ runs:
tags: |
type=raw,value=universe-${{ inputs.platform }}
type=raw,value=universe-${{ steps.date.outputs.date }}-${{ inputs.platform }}
type=ref,event=tag,prefix=universe-,suffix=-${{ inputs.platform }}
bake-target: docker-metadata-action-universe
flavor: |
latest=auto
Expand Down
3 changes: 2 additions & 1 deletion .github/dependabot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ version: 2
updates:
- package-ecosystem: github-actions
directory: /
# https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file#scheduleinterval
schedule:
interval: daily
interval: monthly
open-pull-requests-limit: 1
labels:
- tag:bot
Expand Down
13 changes: 13 additions & 0 deletions .github/workflows/docker-build-and-push-arm64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
branches:
- main
tags:
- "*.*.*"
workflow_dispatch:

jobs:
Expand All @@ -13,7 +14,7 @@

docker-build-and-push:
needs: load-env
runs-on: buildjet-16vcpu-ubuntu-2204-arm

Check warning on line 17 in .github/workflows/docker-build-and-push-arm64.yaml

View workflow job for this annotation

GitHub Actions / spell-check-differential

Unknown word (buildjet)

Check warning on line 17 in .github/workflows/docker-build-and-push-arm64.yaml

View workflow job for this annotation

GitHub Actions / spell-check-differential

Unknown word (vcpu)
steps:
- name: Check if PR author is the specific user
id: author-check
Expand Down Expand Up @@ -49,6 +50,12 @@
ansible/**
docker/**

- name: Free disk space
if: ${{ steps.changed-files.outputs.any_changed == 'true' ||
github.event_name == 'workflow_dispatch' ||
(github.event_name == 'push' && github.ref_type == 'tag') }}
uses: ./.github/actions/free-disk-space

- name: Build 'Autoware' without CUDA
if: ${{ steps.author-check.outputs.author-found == 'true' ||
steps.changed-files.outputs.any_changed == 'true' ||
Expand Down Expand Up @@ -77,7 +84,7 @@

docker-build-and-push-cuda:
needs: [load-env, docker-build-and-push]
runs-on: buildjet-16vcpu-ubuntu-2204-arm

Check warning on line 87 in .github/workflows/docker-build-and-push-arm64.yaml

View workflow job for this annotation

GitHub Actions / spell-check-differential

Unknown word (buildjet)

Check warning on line 87 in .github/workflows/docker-build-and-push-arm64.yaml

View workflow job for this annotation

GitHub Actions / spell-check-differential

Unknown word (vcpu)
steps:
- name: Check out repository
uses: actions/checkout@v4
Expand All @@ -100,6 +107,12 @@
ansible/**
docker/**

- name: Free disk space
if: ${{ steps.changed-files.outputs.any_changed == 'true' ||
github.event_name == 'workflow_dispatch' ||
(github.event_name == 'push' && github.ref_type == 'tag') }}
uses: ./.github/actions/free-disk-space

- name: Build 'Autoware' with CUDA
if: ${{ steps.changed-files.outputs.any_changed == 'true' ||
github.event_name == 'workflow_dispatch' ||
Expand Down
13 changes: 13 additions & 0 deletions .github/workflows/docker-build-and-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
branches:
- main
tags:
- "*.*.*"
workflow_dispatch:

jobs:
Expand All @@ -13,7 +14,7 @@

docker-build-and-push:
needs: load-env
runs-on: buildjet-16vcpu-ubuntu-2204

Check warning on line 17 in .github/workflows/docker-build-and-push.yaml

View workflow job for this annotation

GitHub Actions / spell-check-differential

Unknown word (buildjet)

Check warning on line 17 in .github/workflows/docker-build-and-push.yaml

View workflow job for this annotation

GitHub Actions / spell-check-differential

Unknown word (vcpu)
steps:
- name: Check if PR author is the specific user
id: author-check
Expand Down Expand Up @@ -49,6 +50,12 @@
ansible/**
docker/**

- name: Free disk space
if: ${{ steps.changed-files.outputs.any_changed == 'true' ||
github.event_name == 'workflow_dispatch' ||
(github.event_name == 'push' && github.ref_type == 'tag') }}
uses: ./.github/actions/free-disk-space

- name: Build 'Autoware' without CUDA
if: ${{ steps.author-check.outputs.author-found == 'true' ||
steps.changed-files.outputs.any_changed == 'true' ||
Expand Down Expand Up @@ -77,7 +84,7 @@

docker-build-and-push-cuda:
needs: [load-env, docker-build-and-push]
runs-on: buildjet-16vcpu-ubuntu-2204

Check warning on line 87 in .github/workflows/docker-build-and-push.yaml

View workflow job for this annotation

GitHub Actions / spell-check-differential

Unknown word (buildjet)

Check warning on line 87 in .github/workflows/docker-build-and-push.yaml

View workflow job for this annotation

GitHub Actions / spell-check-differential

Unknown word (vcpu)
steps:
- name: Check out repository
uses: actions/checkout@v4
Expand All @@ -100,6 +107,12 @@
ansible/**
docker/**

- name: Free disk space
if: ${{ steps.changed-files.outputs.any_changed == 'true' ||
github.event_name == 'workflow_dispatch' ||
(github.event_name == 'push' && github.ref_type == 'tag') }}
uses: ./.github/actions/free-disk-space

- name: Build 'Autoware' with CUDA
if: ${{ steps.changed-files.outputs.any_changed == 'true' ||
github.event_name == 'workflow_dispatch' ||
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pre-commit-autoupdate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ name: pre-commit-autoupdate

on:
schedule:
- cron: 0 0 * * *
- cron: 0 0 1 1,4,7,10 * # quarterly
workflow_dispatch:

jobs:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pre-commit-optional-autoupdate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ name: pre-commit-optional-autoupdate

on:
schedule:
- cron: 0 0 * * *
- cron: 0 0 1 1,4,7,10 * # quarterly
workflow_dispatch:

jobs:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update-tool-versions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:

- name: Create PR
id: create-pr
uses: peter-evans/create-pull-request@v6
uses: peter-evans/create-pull-request@v7
with:
token: ${{ steps.generate-token.outputs.token }}
base: ${{ github.event.repository.default_branch }}
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config-ansible.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/ansible/ansible-lint.git
rev: v24.10.0
rev: v24.12.2
hooks:
- id: ansible-lint
additional_dependencies:
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config-optional.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

repos:
- repo: https://github.com/tcort/markdown-link-check
rev: v3.12.2
rev: v3.13.6
hooks:
- id: markdown-link-check
args: [--quiet, --config=.markdown-link-check.json]
Loading
Loading