Skip to content

Commit

Permalink
feat: upstream to main (#153)
Browse files Browse the repository at this point in the history
* feat(.github): push version tag images (autowarefoundation#5522)

* add tag pattern

Signed-off-by: Yutaka Kondo <[email protected]>

* fix syntax

Signed-off-by: Yutaka Kondo <[email protected]>

* add tags

Signed-off-by: Yutaka Kondo <[email protected]>

* fix prefix and suffix

Signed-off-by: Yutaka Kondo <[email protected]>

---------

Signed-off-by: Yutaka Kondo <[email protected]>

* feat(.github): add `on:push:branches:` condition to `autoware-base` workflow (autowarefoundation#5524)

add paths arg

Signed-off-by: Yutaka Kondo <[email protected]>

* fix(.github): not push manifest if eithor `amd64` or `arm64` image is missing (autowarefoundation#5525)

not push manifest if eithor amd64 or arm64 is missing

Signed-off-by: Yutaka Kondo <[email protected]>

* chore(autoware.repos): fix autoware.core commit hash (autowarefoundation#5530)

Signed-off-by: Ryohsuke Mitsudome <[email protected]>

* feat(.git): delete `-amd64` and  `-arm64` image tags after pushing manifest (autowarefoundation#5526)

* not push manifest if eithor amd64 or arm64 is missing

Signed-off-by: Yutaka Kondo <[email protected]>

* delete -amd64 and -arm64 tags

Signed-off-by: Yutaka Kondo <[email protected]>

---------

Signed-off-by: Yutaka Kondo <[email protected]>

* chore(.github): skip `free-disk-space` action if there are no changed files (autowarefoundation#5536)

skip free-disk-space action

Signed-off-by: Yutaka Kondo <[email protected]>

* ci: enable bugprone-* warnings in clang-tidy (autowarefoundation#5543)

Signed-off-by: Ryuta Kambe <[email protected]>

* feat(autoware.repos): use version tag for sensor_kits (autowarefoundation#5554)

Signed-off-by: Ryohsuke Mitsudome <[email protected]>

* ci(pre-commit-ansible): autoupdate (autowarefoundation#5552)

Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions <[email protected]>

* chore(deps): bump peter-evans/create-pull-request from 6 to 7 (autowarefoundation#5162)

Bumps [peter-evans/create-pull-request](https://github.com/peter-evans/create-pull-request) from 6 to 7.
- [Release notes](https://github.com/peter-evans/create-pull-request/releases)
- [Commits](peter-evans/create-pull-request@v6...v7)

---
updated-dependencies:
- dependency-name: peter-evans/create-pull-request
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* ci(pre-commit-optional): autoupdate (autowarefoundation#5401)

Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions <[email protected]>

* chore: sync files (autowarefoundation#5541)

Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions <[email protected]>

* chore: sync files (autowarefoundation#5572)

Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions <[email protected]>

* fix(.github): fix CODEOWNERS (autowarefoundation#5575)

Update CODEOWNERS

* fix: update branch of scenario_simulator_v2 to master (autowarefoundation#5570)

Signed-off-by: Fumiya Watanabe <[email protected]>

* feat(autoware.repos): remove `autoware_common` from `autoware.repos` (autowarefoundation#5578)

* chore(.devcontainer): add `core-devel` development container (autowarefoundation#5574)

add core-devel devcontainer

Signed-off-by: Yutaka Kondo <[email protected]>

---------

Signed-off-by: Yutaka Kondo <[email protected]>
Signed-off-by: Ryohsuke Mitsudome <[email protected]>
Signed-off-by: Ryuta Kambe <[email protected]>
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Signed-off-by: dependabot[bot] <[email protected]>
Signed-off-by: Fumiya Watanabe <[email protected]>
Co-authored-by: Ryohsuke Mitsudome <[email protected]>
Co-authored-by: Ryuta Kambe <[email protected]>
Co-authored-by: awf-autoware-bot[bot] <94889083+awf-autoware-bot[bot]@users.noreply.github.com>
Co-authored-by: github-actions <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Fumiya Watanabe <[email protected]>
  • Loading branch information
7 people authored Dec 19, 2024
1 parent 160f612 commit c24045a
Show file tree
Hide file tree
Showing 18 changed files with 114 additions and 28 deletions.
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",
"--security-opt",
"seccomp=unconfined",
"--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
Validating CODEOWNERS rules …
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 @@ on:
branches:
- main
tags:
- "*.*.*"
workflow_dispatch:

jobs:
Expand Down Expand Up @@ -49,6 +50,12 @@ jobs:
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 @@ -100,6 +107,12 @@ jobs:
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 @@ on:
branches:
- main
tags:
- "*.*.*"
workflow_dispatch:

jobs:
Expand Down Expand Up @@ -49,6 +50,12 @@ jobs:
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 @@ -100,6 +107,12 @@ jobs:
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

0 comments on commit c24045a

Please sign in to comment.