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 origin #42

Merged
merged 32 commits into from
Jun 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
470a8b5
chore(docker): separate `rosdep install` and `colcon build` RUN comma…
youtalk May 15, 2024
837b486
refactor(ci): reuse `load-env.yaml` to load env (#4734)
youtalk May 17, 2024
5ee2907
refactor(docker): introduce `src-imported` stage (#4712)
youtalk May 20, 2024
fbf7220
feat(docker): install minimum packages in `base` stage (#4751)
youtalk May 22, 2024
4998cac
chore: add discussion templates for general category (#4764)
mitsudome-r May 22, 2024
14bc931
feat(ci,docker): change `vcs import` to `COPY src` (#4738)
youtalk May 23, 2024
e8a258f
feat(docker,ansible): download artifacts at runtime (#4771)
youtalk May 24, 2024
ab8bbf5
feat(ci): enable Docker build cache to 5 times faster container build…
youtalk May 25, 2024
491d282
feat(docker): cache `ccache` to the Docker build cache (#4772)
youtalk May 27, 2024
d0861b6
fix: add download url of yolox with semantic segmentation header (#4012)
badai-nguyen May 27, 2024
7fcdee3
chore: add error handling for held packages during rmw installation (…
Naophis May 28, 2024
01fc647
refactor(docker,ci): rename `autoware-openadk` to `autoware` and `adk…
youtalk May 28, 2024
5836af0
feat(ci): disable `Upload Artifacts` on `docker-build-and-push` actio…
youtalk May 29, 2024
1637979
feat(docker): cache apt archives to the Docker build cache (#4778)
youtalk May 29, 2024
27e31e9
chore: update code owners (#4797)
xmfcx May 30, 2024
8c0f1bf
ci(pre-commit-ansible): autoupdate (#4676)
awf-autoware-bot[bot] May 30, 2024
b9df3fa
ci: pre-commit autoupdate (#4670)
pre-commit-ci[bot] May 30, 2024
958e845
ci(pre-commit): autoupdate (#4662)
awf-autoware-bot[bot] May 30, 2024
1348d33
ci(pre-commit-optional): autoupdate (#4766)
awf-autoware-bot[bot] May 30, 2024
033a3a1
fix(ci): run `vsc import` on `build-main` workflows (#4799)
youtalk May 30, 2024
efb89f3
feat(docker): cache `ccache` to the Docker build cache (#4800)
youtalk May 31, 2024
c707661
chore: hold check of plotjuggler-ros package and display warning if h…
Naophis Jun 3, 2024
d192a60
feat(docker): revert "cache apt archives to the Docker build cache" (…
youtalk Jun 3, 2024
79318ce
chore(ci): add a workflow for DCO check to avoid DCO bot system failu…
mitsudome-r Jun 5, 2024
c73aaf0
feat(ci): add CPU architecture suffixes to the Docker build cache (#4…
youtalk Jun 6, 2024
338e46d
feat(simulator.repos): use autoware_msgs_support branch for scenario_…
mitsudome-r Jun 7, 2024
2202a94
feat(ansible): add lidar_transfusion artifacts (#4835)
amadeuszsz Jun 8, 2024
b010809
refactor(docker): fix colcon `--cmake-args` (#4828)
youtalk Jun 10, 2024
226be42
refactor(ci): use platform arg to replace raw string (#4844)
youtalk Jun 10, 2024
dfe3cb2
refactor(ci): install `vcstool` and run `vcs import` on `docker-build…
youtalk Jun 10, 2024
947de2e
Merge remote-tracking branch 'upstream/main' into upstream-to-origin
youtalk Jun 11, 2024
d6351cc
fix platform
youtalk Jun 11, 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: 13 additions & 0 deletions .github/actions/docker-build-and-push/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,19 @@ runs:
- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Install jq and vcstool
run: |
sudo apt-get -y update
sudo apt-get -y install jq python3-pip
pip install --no-cache-dir vcstool
shell: bash

- name: Run vcs import
run: |
mkdir src
vcs import src < autoware.repos
shell: bash

- name: Set Docker tags
id: set-docker-tags
run: |
Expand Down
21 changes: 6 additions & 15 deletions .github/workflows/build-main-self-hosted.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,13 @@ jobs:
- cuda
include:
- name: no-cuda
platform: arm64
base_image_env: base_image
lib_dir: aarch64
setup-args: --no-nvidia
additional-tag-suffix: ""
- name: cuda
platform: arm64
base_image_env: base_image
lib_dir: aarch64
additional-tag-suffix: -cuda
Expand All @@ -44,12 +46,6 @@ jobs:
- name: Check out repository
uses: actions/checkout@v4

- name: Install vcstool
run: |
sudo apt-get -y update
sudo apt-get -y install python3-pip
pip install --no-cache-dir vcstool

- name: Set git config
uses: autowarefoundation/autoware-github-actions/set-git-config@v1
with:
Expand All @@ -58,23 +54,18 @@ jobs:
- name: Free disk space
uses: ./.github/actions/free-disk-space

- name: Run vcs import
run: |
mkdir src
vcs import src < autoware.repos

- name: Build 'autoware-universe'
- name: Build 'Autoware'
uses: ./.github/actions/docker-build-and-push
with:
bake-target: autoware
build-args: |
*.platform=linux/arm64
*.platform=linux/${{ matrix.platform }}
*.args.ROS_DISTRO=${{ needs.load-env.outputs.rosdistro }}
*.args.BASE_IMAGE=${{ needs.load-env.outputs[format('{0}', matrix.base_image_env)] }}
*.args.SETUP_ARGS=${{ matrix.setup-args }}
*.args.LIB_DIR=${{ matrix.lib_dir }}
*.cache-from=type=registry,ref=ghcr.io/${{ github.repository }}:buildcache-${{ matrix.name }}-arm64
*.cache-to=type=registry,ref=ghcr.io/${{ github.repository }}:buildcache-${{ matrix.name }}-arm64,mode=max
*.cache-from=type=registry,ref=ghcr.io/${{ github.repository }}:buildcache-${{ matrix.name }}-${{ matrix.platform }}
*.cache-to=type=registry,ref=ghcr.io/${{ github.repository }}:buildcache-${{ matrix.name }}-${{ matrix.platform }},mode=max
tag-suffix: ${{ matrix.additional-tag-suffix }}-arm64
tag-prefix: ${{ needs.load-env.outputs.rosdistro }}
allow-push: false
Expand Down
21 changes: 6 additions & 15 deletions .github/workflows/build-main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,24 +27,20 @@ jobs:
- cuda
include:
- name: no-cuda
platform: amd64
base_image_env: base_image
lib_dir: x86_64
setup-args: --no-nvidia
additional-tag-suffix: ""
- name: cuda
platform: amd64
base_image_env: base_image
lib_dir: x86_64
additional-tag-suffix: -cuda
steps:
- name: Check out repository
uses: actions/checkout@v4

- name: Install vcstool
run: |
sudo apt-get -y update
sudo apt-get -y install python3-pip
pip install --no-cache-dir vcstool

- name: Set git config
uses: autowarefoundation/autoware-github-actions/set-git-config@v1
with:
Expand All @@ -53,23 +49,18 @@ jobs:
- name: Free disk space
uses: ./.github/actions/free-disk-space

- name: Run vcs import
run: |
mkdir src
vcs import src < autoware.repos

- name: Build 'autoware-universe'
- name: Build 'Autoware'
uses: ./.github/actions/docker-build-and-push
with:
bake-target: autoware
build-args: |
*.platform=linux/amd64
*.platform=linux/${{ matrix.platform }}
*.args.ROS_DISTRO=${{ needs.load-env.outputs.rosdistro }}
*.args.BASE_IMAGE=${{ needs.load-env.outputs[format('{0}', matrix.base_image_env)] }}
*.args.SETUP_ARGS=${{ matrix.setup-args }}
*.args.LIB_DIR=${{ matrix.lib_dir }}
*.cache-from=type=registry,ref=ghcr.io/${{ github.repository }}:buildcache-${{ matrix.name }}-amd64
*.cache-to=type=registry,ref=ghcr.io/${{ github.repository }}:buildcache-${{ matrix.name }}-amd64,mode=max
*.cache-from=type=registry,ref=ghcr.io/${{ github.repository }}:buildcache-${{ matrix.name }}-${{ matrix.platform }}
*.cache-to=type=registry,ref=ghcr.io/${{ github.repository }}:buildcache-${{ matrix.name }}-${{ matrix.platform }},mode=max
tag-suffix: ${{ matrix.additional-tag-suffix }}-amd64
tag-prefix: ${{ needs.load-env.outputs.rosdistro }}
allow-push: false
Expand Down
21 changes: 21 additions & 0 deletions .github/workflows/dco.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: DCO
# ref: https://github.com/anchore/syft/pull/2926/files
on:
pull_request:
jobs:
dco:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Setup Python 3.x
uses: actions/setup-python@v5
with:
python-version: 3.x

- name: Check DCO
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
pip3 install -U dco-check
dco-check --verbose --exclude-pattern 'pre-commit-ci\[bot\]@users\.noreply\.github\.com'
19 changes: 5 additions & 14 deletions .github/workflows/docker-build-and-push-main-self-hosted.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

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

Check warning on line 27 in .github/workflows/docker-build-and-push-main-self-hosted.yaml

View workflow job for this annotation

GitHub Actions / spell-check-differential

Unknown word (buildjet)

Check warning on line 27 in .github/workflows/docker-build-and-push-main-self-hosted.yaml

View workflow job for this annotation

GitHub Actions / spell-check-differential

Unknown word (vcpu)
strategy:
fail-fast: false
matrix:
Expand All @@ -33,11 +33,13 @@
- cuda
include:
- name: no-cuda
platform: arm64
base_image_env: base_image
lib_dir: aarch64
setup-args: --no-nvidia
additional-tag-suffix: ""
- name: cuda
platform: arm64
base_image_env: base_image
lib_dir: aarch64
additional-tag-suffix: -cuda
Expand All @@ -58,35 +60,24 @@
- name: Check out repository
uses: actions/checkout@v4

- name: Install vcstool
run: |
sudo apt-get -y update
sudo apt-get -y install python3-pip
pip install --no-cache-dir vcstool

- name: Set git config
uses: autowarefoundation/autoware-github-actions/set-git-config@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}

- name: Run vcs import
run: |
mkdir src
vcs import src < autoware.repos

- name: Build 'Autoware'
if: steps.author-check.outputs.author-found == 'true' || ${{ github.event_name == 'workflow_dispatch' }}
uses: ./.github/actions/docker-build-and-push
with:
bake-target: autoware
build-args: |
*.platform=linux/arm64
*.platform=linux/${{ matrix.platform }}
*.args.ROS_DISTRO=${{ needs.load-env.outputs.rosdistro }}
*.args.BASE_IMAGE=${{ needs.load-env.outputs[format('{0}', matrix.base_image_env)] }}
*.args.SETUP_ARGS=${{ matrix.setup-args }}
*.args.LIB_DIR=${{ matrix.lib_dir }}
*.cache-from=type=registry,ref=ghcr.io/${{ github.repository }}:buildcache-${{ matrix.name }}-arm64
*.cache-to=type=registry,ref=ghcr.io/${{ github.repository }}:buildcache-${{ matrix.name }}-arm64,mode=max
*.cache-from=type=registry,ref=ghcr.io/${{ github.repository }}:buildcache-${{ matrix.name }}-${{ matrix.platform }}
*.cache-to=type=registry,ref=ghcr.io/${{ github.repository }}:buildcache-${{ matrix.name }}-${{ matrix.platform }},mode=max
tag-suffix: ${{ matrix.additional-tag-suffix }}-arm64
tag-prefix: ${{ needs.load-env.outputs.rosdistro }}
allow-push: true
Expand Down
19 changes: 5 additions & 14 deletions .github/workflows/docker-build-and-push-main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

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

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

View workflow job for this annotation

GitHub Actions / spell-check-differential

Unknown word (buildjet)

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

View workflow job for this annotation

GitHub Actions / spell-check-differential

Unknown word (vcpu)
strategy:
fail-fast: false
matrix:
Expand All @@ -33,11 +33,13 @@
- cuda
include:
- name: no-cuda
platform: amd64
base_image_env: base_image
lib_dir: x86_64
setup-args: --no-nvidia
additional-tag-suffix: ""
- name: cuda
platform: amd64
base_image_env: base_image
lib_dir: x86_64
additional-tag-suffix: -cuda
Expand All @@ -58,35 +60,24 @@
- name: Check out repository
uses: actions/checkout@v4

- name: Install vcstool
run: |
sudo apt-get -y update
sudo apt-get -y install python3-pip
pip install --no-cache-dir vcstool

- name: Set git config
uses: autowarefoundation/autoware-github-actions/set-git-config@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}

- name: Run vcs import
run: |
mkdir src
vcs import src < autoware.repos

- name: Build 'Autoware'
if: steps.author-check.outputs.author-found == 'true' || ${{ github.event_name == 'workflow_dispatch' }}
uses: ./.github/actions/docker-build-and-push
with:
bake-target: autoware
build-args: |
*.platform=linux/amd64
*.platform=linux/${{ matrix.platform }}
*.args.ROS_DISTRO=${{ needs.load-env.outputs.rosdistro }}
*.args.BASE_IMAGE=${{ needs.load-env.outputs[format('{0}', matrix.base_image_env)] }}
*.args.SETUP_ARGS=${{ matrix.setup-args }}
*.args.LIB_DIR=${{ matrix.lib_dir }}
*.cache-from=type=registry,ref=ghcr.io/${{ github.repository }}:buildcache-${{ matrix.name }}-amd64
*.cache-to=type=registry,ref=ghcr.io/${{ github.repository }}:buildcache-${{ matrix.name }}-amd64,mode=max
*.cache-from=type=registry,ref=ghcr.io/${{ github.repository }}:buildcache-${{ matrix.name }}-${{ matrix.platform }}
*.cache-to=type=registry,ref=ghcr.io/${{ github.repository }}:buildcache-${{ matrix.name }}-${{ matrix.platform }},mode=max
tag-suffix: ${{ matrix.additional-tag-suffix }}-amd64
tag-prefix: ${{ needs.load-env.outputs.rosdistro }}
allow-push: true
Expand Down
32 changes: 32 additions & 0 deletions ansible/roles/artifacts/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,38 @@
dest: "{{ data_dir }}/lidar_centerpoint/deploy_metadata.yaml"
mode: "644"
checksum: sha256:152536f053c3750b60d349800e1b983b418029d6dadf087614a00c661942a178

# lidar_transfusion
- name: Create lidar_transfusion directory inside {{ data_dir }}
ansible.builtin.file:
path: "{{ data_dir }}/lidar_transfusion"
mode: "755"
state: directory

- name: Download lidar_transfusion/transfusion.onnx
become: true
ansible.builtin.get_url:
url: https://awf.ml.dev.web.auto/perception/models/transfusion/v1/transfusion.onnx
dest: "{{ data_dir }}/lidar_transfusion/transfusion.onnx"
mode: "644"
checksum: sha256:8938999cf03770ffd3301027300ea2cbcf471c180450e0434121d7294c42aa0b

- name: Download lidar_transfusion/transfusion.param.yaml
become: true
ansible.builtin.get_url:
url: https://awf.ml.dev.web.auto/perception/models/transfusion/v1/transfusion.param.yaml
dest: "{{ data_dir }}/lidar_transfusion/transfusion.param.yaml"
mode: "644"
checksum: sha256:0e18776040f14e380037ef6ecb500d1d1d151f21ff7d5c890606673f7e100e14

- name: Download lidar_transfusion/detection_class_remapper.param.yaml
become: true
ansible.builtin.get_url:
url: https://awf.ml.dev.web.auto/perception/models/transfusion/v1/detection_class_remapper.param.yaml
dest: "{{ data_dir }}/lidar_transfusion/detection_class_remapper.param.yaml"
mode: "644"
checksum: sha256:c711f8875ece9b527dfe31ffc75f8c0de2e77945ef67860a959a4e04c36772d5

# tensorrt_yolox
- name: Create tensorrt_yolox directory inside {{ data_dir }}
ansible.builtin.file:
Expand Down Expand Up @@ -229,11 +261,11 @@
mode: "644"
checksum: sha256:28cd6524d4bcdb2809592a225d28330433e58dc02c92169ea555b44c1a51a584

- name: Download tensorrt_yolox/semseg_color_map.csv

Check warning on line 264 in ansible/roles/artifacts/tasks/main.yaml

View workflow job for this annotation

GitHub Actions / spell-check-differential

Unknown word (semseg)
become: true
ansible.builtin.get_url:
url: https://awf.ml.dev.web.auto/perception/models/object_detection_semseg_yolox_s/v1/semseg_color_map.csv
dest: "{{ data_dir }}/tensorrt_yolox/semseg_color_map.csv"

Check warning on line 268 in ansible/roles/artifacts/tasks/main.yaml

View workflow job for this annotation

GitHub Actions / spell-check-differential

Unknown word (semseg)
mode: "644"
checksum: sha256:3d93ca05f31b63424d7d7246a01a2365953705a0ed3323ba5b6fddd744a4bfea

Expand Down
13 changes: 13 additions & 0 deletions ansible/roles/dev_tools/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,23 @@
state: latest
update_cache: true

- name: Hold check of ros-{{ rosdistro + '-plotjuggler-ros' }}
ansible.builtin.command: apt-mark showhold
register: held_ros_packages
changed_when: false

- name: Install plotjuggler
become: true
ansible.builtin.apt:
name:
- ros-{{ rosdistro }}-plotjuggler-ros
state: latest
update_cache: true
when: "'ros-' + rosdistro + '-plotjuggler-ros' not in held_ros_packages.stdout"
register: install_result
failed_when: false

- name: Display warning if plotjuggler-ros package is held
ansible.builtin.debug:
msg: ROS package 'ros-{{ rosdistro }}-plotjuggler-ros' is apt-mark hold. Skipping installation.
when: not install_result.changed
6 changes: 3 additions & 3 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,11 @@ RUN --mount=type=ssh \
COPY --from=src-imported /autoware/src /autoware/src
RUN --mount=type=cache,target=${CCACHE_DIR} \
source /opt/ros/"$ROS_DISTRO"/setup.bash \
&& colcon build --cmake-args -DCMAKE_BUILD_TYPE=Release --cmake-args \
" -Wno-dev" \
" --no-warn-unused-cli" \
&& colcon build --cmake-args \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
" -Wno-dev" \
" --no-warn-unused-cli" \
&& find /autoware/install -type d -exec chmod 777 {} \; \
&& chmod -R 777 /var/tmp/ccache \
&& rm -rf /autoware/build /autoware/src
Expand Down
2 changes: 1 addition & 1 deletion simulator.repos
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ repositories:
simulator/scenario_simulator:
type: git
url: https://github.com/tier4/scenario_simulator_v2.git
version: master
version: RJD-736/autoware_msgs_support # TODO(mitsudome-r): switch back to master once this branch is merged
Loading