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

[pull] main from autowarefoundation:main #33

Closed
wants to merge 124 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
124 commits
Select commit Hold shift + click to select a range
1031e38
feat(behavior_path_planner): replace polling subscribers (#7462)
soblin Jun 12, 2024
3881947
feat(yabloc_particle_filter): componentize yabloc_particle_filter nod…
KYabuuchi Jun 12, 2024
67bfa58
fix(pose_covariance_modifier): fix json schema (#7323)
YamatoAndo Jun 12, 2024
221ce4b
chore(tier4_perception_launch): perception launcher refactoring (#7194)
technolojin Jun 12, 2024
d532672
refactor(autoware_behavior_velocity_detection_area_module): prefix pa…
esteve Jun 12, 2024
e99b6ff
ci(build-and-test-differential): fetch only necessary commits (#7468)
xmfcx Jun 12, 2024
c918ebf
fix(route_handler): route handler overlap removal is too conservative…
mkquda Jun 13, 2024
796f72d
feat(velodyne_monitor): componentize node (#7201)
isamu-takagi Jun 13, 2024
898fb73
refactor(tree_structured_parzen_estimator): apply static analysis (#7…
a-maumau Jun 13, 2024
4504271
chore(route_handler, lane_change): add codeowner (#7475)
zulfaqar-azmi-t4 Jun 13, 2024
314f229
chore(planning): remove ghost file (#7457)
maxime-clem Jun 13, 2024
3389459
refactor(pose_estimator_arbiter): apply static analysis (#7473)
a-maumau Jun 13, 2024
64cb983
fix(tree_structured_parzen_estimator): removed the "tree_structured_p…
SakodaShintaro Jun 13, 2024
4a3e517
refactor(autoware_test_utils): function to load paths from folder (#7…
zulfaqar-azmi-t4 Jun 13, 2024
ccbdab6
chore(pose_estimator_arbiter): add maintainers to pose_estimator_arbi…
SakodaShintaro Jun 13, 2024
be75f1b
feat(default_ad_api): remove energy status (#7464)
isamu-takagi Jun 13, 2024
5b611e7
fix(start_planner): redefine the necessary parameters (#7477)
kyoichi-sugahara Jun 13, 2024
65665ce
refactor(dynamic_obstacle_stop): move to motion_velocity_planner (#7460)
maxime-clem Jun 13, 2024
a78482e
fix(lane_change): fix state transition in lane change module (#7436)
rej55 Jun 13, 2024
f25396f
refactor(pose_instability_detector): apply static analysis (#7476)
a-maumau Jun 13, 2024
d17bfa1
refactor(ndt scan matcher): update parameter (#7276)
YamatoAndo Jun 13, 2024
b1dd7bb
refactor(lidar_centerpoint): add training docs (#5570)
kaancolak Jun 13, 2024
7bc9ae0
feat(mission_planner): use polling subscriber (#7447)
kosuke55 Jun 13, 2024
dfbf26c
feat(control_evaluator): add deviation metrics and queue for diagnost…
kosuke55 Jun 14, 2024
9c41554
fix(goal_planner): check lateral distance for previous output path sh…
kosuke55 Jun 14, 2024
35067ed
feat(autonomous_emergenct_braking): update README and imgs of aeb (#7…
danielsanchezaran Jun 14, 2024
1661b79
refactor(grid_map_utils): add autoware prefix and namespace (#7487)
maxime-clem Jun 14, 2024
0f0751e
feat(diagnostic_converter): fix output metrics topic name and add to …
kosuke55 Jun 14, 2024
0d356a8
fix(planning): set single depth sensor data qos for pointlcoud pollin…
mkquda Jun 14, 2024
7b35b6e
refactor(yabloc_common): apply static analysis (#7481)
a-maumau Jun 14, 2024
6cd7da0
fix(no_stopping_area): skip drawing a stop line in the case where the…
kaigohirao Jun 14, 2024
acac821
ci(pre-commit-autoupdate): add new workflow (#7498)
xmfcx Jun 14, 2024
00e12c4
ci(pre-commit): autoupdate (#7499)
awf-autoware-bot[bot] Jun 14, 2024
ea41a5c
feat(map_loader): warn if some pcds from the metadata file are missin…
anhnv3991 Jun 15, 2024
75a6986
fix(vehicle_cmd_gate): fix unnecessary modification (#7488)
go-sakayori Jun 15, 2024
97038a1
chore: sync files (#7368)
awf-autoware-bot[bot] Jun 16, 2024
a44805c
refactor(yabloc_image_processing): apply static analysis (#7489)
a-maumau Jun 16, 2024
2de41ba
refactor(map_projection_loader): apply static analysis (#7497)
a-maumau Jun 17, 2024
507e3f4
refactor(ar_tag_based_localizer): add prefix "autoware_" to ar_tag_ba…
SakodaShintaro Jun 17, 2024
4e1b6d6
feat(autonomous_emergency_braking): aeb disable obj velocity calc w p…
danielsanchezaran Jun 17, 2024
a6b5f27
feat(tier4_adapi_rviz_plugin): add legacy state panel (#7494)
isamu-takagi Jun 17, 2024
6398f9b
fix(behavior_path_planner): reset current route lanelet in manual dri…
maxime-clem Jun 17, 2024
ae3b8d7
fix(vehicle_cmd_gate): put back subscriber rather than using polling …
go-sakayori Jun 17, 2024
50b7659
feat(surround_obstacle_checker): remove include directory (#7507)
takayuki5168 Jun 17, 2024
18a618c
ci: update workflows and sync-files (#7340)
xmfcx Jun 17, 2024
9047cdd
ci: add cache to build-and-test derivatives (#7503)
xmfcx Jun 17, 2024
46e589d
feat(obstacle_cruise_planner): rename to include/autoware/{package_na…
takayuki5168 Jun 17, 2024
90ab758
feat(planning_topic_converter): rename to include/autoware/{package_n…
takayuki5168 Jun 17, 2024
833c3c9
feat(external_velocity_limit_selector): rename to include/autoware/{p…
takayuki5168 Jun 17, 2024
32b09a7
refactor(behavior_velocity_planner): rename include directory (#7517)
rej55 Jun 17, 2024
a2ced9b
feat(scenario_selector): rename to include/autoware/{package_name} (#…
takayuki5168 Jun 17, 2024
d8ad9dc
feat(planning_validator): rename to include/autoware/{package_name} (…
takayuki5168 Jun 17, 2024
126f0cb
feat(mission_planner): rename to include/autoware/{package_name} (#7513)
takayuki5168 Jun 17, 2024
972448e
feat(motion_velocity_planner): rename include directories (#7523)
takayuki5168 Jun 17, 2024
19aa89c
feat(planning_evaluator): rename to include/autoware/{package_name} (…
takayuki5168 Jun 17, 2024
8f795c5
refactor(control)!: refactor directory structures of the trajectory f…
yuki-takagi-66 Jun 17, 2024
eab65fa
refactor(control)!: refactor directory structures of the control inte…
yuki-takagi-66 Jun 17, 2024
2bab9c4
feat(control_evaluator): rename to include/autoware/{package_name} (#…
takayuki5168 Jun 17, 2024
dba91b0
chore(behavior_velocity_planner): move packages (#7526)
rej55 Jun 17, 2024
bc18dab
refactor(behaivor_path_planner)!: rename to include/autoware/{package…
kosuke55 Jun 17, 2024
86d5857
feat(path_smoother): rename to include/autoware/{package_name} (#7527)
takayuki5168 Jun 17, 2024
88426f5
refactor(velocity_smoother): rename to include/autoware/{package_name…
rej55 Jun 17, 2024
d64d925
refactor(objects_of_interest_marker_interface): rename to include/aut…
rej55 Jun 17, 2024
97a8a77
chore(behavior_velocity_planner): fix CODEOWNERS and page links (#7534)
rej55 Jun 17, 2024
7f46721
refactor(control)!: refactor directory structures of the control chec…
yuki-takagi-66 Jun 17, 2024
f47f659
feat(path_optimizer): rename to include/autoware/{package_name} (#7529)
takayuki5168 Jun 17, 2024
3319836
refactor(freespace_planner)!: rename to include/autoware/{package_nam…
kosuke55 Jun 17, 2024
2165e2d
refactor(rtc_interface)!: rename to include/autoware/{package_name} (…
kosuke55 Jun 17, 2024
564e8c1
feat(map_loader): add waypoints flag (#7480)
takayuki5168 Jun 17, 2024
82a10de
refactor(route_handler)!: rename to include/autoware/{package_name} …
kosuke55 Jun 17, 2024
a8cb02c
fix(traffic_light_classifier): check if the given image is empty or n…
technolojin Jun 18, 2024
d09fa54
fix(joy_controller): check for nullptr messages (#7540)
maxime-clem Jun 18, 2024
c04b3ea
fix(system_monitor): fix unsignedLessThanZero warning (#7545)
veqcc Jun 18, 2024
d9cf068
fix(behavior_path_planner): fix redundantIfRemove warning (#7544)
veqcc Jun 18, 2024
7a3e6ed
feat(autoware_universe_utils)!: rename from tier4_autoware_utils (#7538)
takayuki5168 Jun 18, 2024
ad1be18
refactor(motion_utils)!: add autoware prefix and include dir (#7539)
kosuke55 Jun 18, 2024
c9c58f8
ci(build-and-test): limit ccache size (#7555)
xmfcx Jun 18, 2024
4094bbf
fix(system_diagnostic_monitor): fix local mode config (#7532)
isamu-takagi Jun 18, 2024
f4b14da
fix(autoware_behavior_velocity_occlusion_spot_module): fix redundantA…
veqcc Jun 18, 2024
7493322
fix(behavior_path_planner): fix redundantAssignment warning (#7560)
veqcc Jun 18, 2024
525badb
fix(tvm_utility): fix selfAssignment warnings (#7561)
veqcc Jun 19, 2024
f90f216
refactor(yabloc_particle_filter): apply static analysis (#7519)
a-maumau Jun 19, 2024
609df50
feat(yabloc_pose_initializer): componentize yabloc_pose_initializer n…
KYabuuchi Jun 19, 2024
b003733
feat(yabloc_monitor): componentize yabloc_monitor node (#7509)
KYabuuchi Jun 19, 2024
ee4442b
fix(multi_object_tracker): fix uselessCallsSubstr warning (#7556)
veqcc Jun 19, 2024
6b9d5c8
fix(lidar_apollo_segmentation_tvm): fix unpreciseMathCall warning (#7…
veqcc Jun 19, 2024
9fbc30c
fix(mrm_handler): fix multiCondition warning (#7543)
veqcc Jun 19, 2024
e668be9
fix(.gitignore): add config to ignore directory which is made by pret…
satoshi-ota Jun 19, 2024
f4f892e
fix(simple_planning_simulator): fix duplicateBranch warnings (#7574)
veqcc Jun 19, 2024
7508103
chore(topic_state_monitor): enrich error log message (#7236)
TakaHoribe Jun 19, 2024
f6d2c59
docs(bpp_static_obstacle_avoidance): add documentation (#7554)
satoshi-ota Jun 19, 2024
67c76b3
fix(autoware_behavior_path_planner_common): fix redundantContinue war…
veqcc Jun 19, 2024
bfbe80e
fix(autoware_behavior_path_static_obstacle_avoidance_module): fix dup…
veqcc Jun 19, 2024
da61a2f
fix(autoware_obstacle_cruise_planner): fix unusedScopedObject bug (#7…
veqcc Jun 19, 2024
a443210
feat(ndt_scan_matcher): change from TP to NVTL for determination of …
RyuYamamoto Jun 19, 2024
fbd61e2
feat(mpc_lateral_controller): signal a MRM when MPC fails. (#7016)
HansOersted Jun 19, 2024
1d3a094
fix(autoware_obstacle_cruise_planner): fix assignBoolToFloat warning …
veqcc Jun 19, 2024
4da27a8
fix(learning_based_vehicle_model): fix constVariablePointer warning (…
veqcc Jun 19, 2024
0a2f1e3
fix(net_monitor): fix cppcheck warnings (#7573)
veqcc Jun 19, 2024
8837b1f
fix(autoware_path_sampler): fix unusedVariable warning (#7584)
veqcc Jun 19, 2024
b284599
fix(autoware_velocity_smoother): fix unusedVariable warning (#7585)
veqcc Jun 19, 2024
51045e9
feat(autonomous_emergency_braking): add predicted object support for …
danielsanchezaran Jun 19, 2024
0eefe2d
refactor(behavior_velocity_no_drivable_lane_module): prefix package a…
esteve Jun 19, 2024
8dcddae
fix(autoware_behavior_path_start_planner_module): fix duplicateBreak …
veqcc Jun 19, 2024
fffb149
feat(lidar_centerpoint): accelerated preprocessing for centerpoint (#…
knzo25 Jun 20, 2024
d677314
fix(mpc_lateral_controller): align the MPC steering angle when the ca…
HansOersted Jun 20, 2024
5aa747b
refactor(universe_utils/motion_utils)!: add autoware namespace (#7594)
kosuke55 Jun 20, 2024
45c068a
refactor(livox): apply clang-tidy check (#7551)
soblin Jun 20, 2024
5a539f4
feat(path_distance_calculator): change to read topic by polling (#7318)
Autumn60 Jun 20, 2024
d2d45f2
refactor(goal_distance_calculator): narrow variable scopes and change…
Autumn60 Jun 20, 2024
f8d2f2d
fix(autoware_behavior_velocity_planner_common): fix unusedScopedObjec…
veqcc Jun 20, 2024
5974015
refactor(obstacle_cruise_planner): apply clang-tidy check (#7553)
soblin Jun 20, 2024
822d5b5
refactor(behavior_velocity_intersection): apply clang-tidy check (#7552)
soblin Jun 20, 2024
e84d32d
chore(tier4_perception_launch): perception launcher refactoring secon…
technolojin Jun 20, 2024
a7947ca
chore: update CODEOWNERS (#7456)
awf-autoware-bot[bot] Jun 20, 2024
841555e
chore(cppcheck): update .cppcheck_suppressions (#7571)
veqcc Jun 20, 2024
5cc0854
feat(autoware_test_utils): add autoware test manager (#7597)
kminoda Jun 20, 2024
f2e780c
ci(cppcheck): fix cppcheck suppression list (#7604)
veqcc Jun 20, 2024
7638fa1
feat(static_obstacle_avoidance): keep object clipping even after the …
satoshi-ota Jun 20, 2024
978d07d
fix(autoware_freespace_planning_algorithms): fix unusedScopedObject b…
veqcc Jun 20, 2024
a5e975c
fix(autoware_path_optimizer): fix redundantContinue warnings (#7577)
veqcc Jun 20, 2024
b747520
fix(autoware_freespace_planning_algorithms): fix constStatement warni…
veqcc Jun 20, 2024
ac43d07
fix(autoware_mpc_lateral_controller): fix duplicateAssignExpression w…
veqcc Jun 20, 2024
73e22ca
fix(autoware_mpc_lateral_controller): fix duplicateExpression warning…
veqcc Jun 20, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
16 changes: 2 additions & 14 deletions .cppcheck_suppressions
Original file line number Diff line number Diff line change
@@ -1,20 +1,17 @@
*:*/test/*

arrayIndexThenCheck
assignBoolToFloat
checkersReport
constParameterPointer
constParameterReference
constStatement
constVariable
constVariablePointer
constVariableReference
containerOutOfBounds
cstyleCast
ctuOneDefinitionRuleViolation
current_deleted_index
duplicateAssignExpression
duplicateBranch
duplicateBreak
duplicateCondition
duplicateExpression
funcArgNamesDifferent
functionConst
Expand All @@ -23,37 +20,28 @@ invalidPointerCast
knownConditionTrueFalse
missingInclude
missingIncludeSystem
multiCondition
noConstructor
noExplicitConstructor
noValidConfiguration
obstacle_cruise_planner
passedByValue
preprocessorErrorDirective
redundantAssignment
redundantContinue
redundantIfRemove
redundantInitialization
returnByReference
selfAssignment
shadowArgument
shadowFunction
shadowVariable
stlFindInsert
syntaxError
uninitMemberVar
unknownMacro
unmatchedSuppression
unpreciseMathCall
unreadVariable
unsignedLessThanZero
unusedFunction
unusedScopedObject
unusedStructMember
unusedVariable
useInitializationList
useStlAlgorithm
uselessCallsSubstr
uselessOverride
variableScope
virtualCallInConstructor
106 changes: 46 additions & 60 deletions .github/CODEOWNERS

Large diffs are not rendered by default.

42 changes: 10 additions & 32 deletions .github/sync-files.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,14 @@
- source: .github/workflows/pre-commit-optional.yaml
- source: .github/workflows/semantic-pull-request.yaml
- source: .github/workflows/spell-check-differential.yaml
pre-commands: |
sd " with:\n" " with:\n local-cspell-json: .cspell.json\n" {source}
- source: .github/workflows/spell-check-differential.yaml
dest: .github/workflows/spell-check-daily.yaml
pre-commands: |
sd "spell-check-differential" "spell-check-daily" {source}
sd " with:\n" " with:\n local-cspell-json: .cspell.json\n incremental-files-only: false\n" {source}
sd "on:\n pull_request:\n" "on:\n schedule:\n - cron: 0 0 * * *\n workflow_dispatch:\n" {source}
- source: .github/workflows/sync-files.yaml
- source: .clang-format
- source: .markdown-link-check.json
Expand All @@ -31,39 +39,9 @@

- repository: autowarefoundation/autoware_common
files:
- source: .github/workflows/build-and-test.yaml
pre-commands: |
sd "container: ros:(\w+)" "container: ghcr.io/autowarefoundation/autoware-universe:\$1-latest" {source}

sd -s 'container: ${{ matrix.container }}' 'container: ${{ matrix.container }}${{ matrix.container-suffix }}' {source}
sd -- \
" include:" \
" container-suffix:
- \"\"
- -cuda
include:" {source}
- source: .github/workflows/build-and-test-differential-self-hosted.yaml
- source: .github/workflows/clang-tidy-differential.yaml
pre-commands: |
sd "container: ros:(\w+)" "container: ghcr.io/autowarefoundation/autoware-universe:\$1-latest" {source}

sd -s 'container: ${{ matrix.container }}' 'container: ${{ matrix.container }}${{ matrix.container-suffix }}' {source}
sd -- \
" include:" \
" container-suffix:
- \"\"
- -cuda
include:" {source}
- source: .github/workflows/build-and-test-self-hosted.yaml
pre-commands: |
sd "container: ros:(\w+)" "container: ghcr.io/autowarefoundation/autoware-universe:\$1-latest" {source}

sd -s 'container: ${{ matrix.container }}' 'container: ${{ matrix.container }}${{ matrix.container-suffix }}' {source}
sd -- \
" include:" \
" container-suffix:
- \"\"
- -cuda
include:" {source}
sd 'container: ros:(\w+)' 'container: ghcr.io/autowarefoundation/autoware:latest-prebuilt-cuda' {source}
- source: .github/workflows/check-build-depends.yaml
- source: .github/workflows/clang-tidy-pr-comments.yaml
- source: .github/workflows/clang-tidy-pr-comments-manually.yaml
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: build-and-test-arm64
name: build-and-test-daily-arm64

on:
schedule:
- cron: 0 0 * * *
workflow_dispatch:

jobs:
build-and-test-arm64:
build-and-test-daily-arm64:
runs-on: [self-hosted, linux, ARM64]
container: ${{ matrix.container }}${{ matrix.container-suffix }}
strategy:
Expand All @@ -24,6 +24,8 @@ jobs:
steps:
- name: Check out repository
uses: actions/checkout@v4
with:
fetch-depth: 1

- name: Show disk space before the tasks
run: df -h
Expand All @@ -45,11 +47,21 @@ jobs:

- name: Test
if: ${{ steps.get-self-packages.outputs.self-packages != '' }}
id: test
uses: autowarefoundation/autoware-github-actions/colcon-test@v1
with:
rosdistro: ${{ matrix.rosdistro }}
target-packages: ${{ steps.get-self-packages.outputs.self-packages }}
build-depends-repos: ${{ matrix.build-depends-repos }}

- name: Upload coverage to CodeCov
if: ${{ steps.test.outputs.coverage-report-files != '' }}
uses: codecov/codecov-action@v4
with:
files: ${{ steps.test.outputs.coverage-report-files }}
fail_ci_if_error: false
verbose: true
flags: total-arm64

- name: Show disk space after the tasks
run: df -h
67 changes: 67 additions & 0 deletions .github/workflows/build-and-test-daily.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
name: build-and-test-daily

on:
schedule:
- cron: 0 0 * * *
workflow_dispatch:

jobs:
build-and-test-daily:
runs-on: [self-hosted, linux, X64]
container: ${{ matrix.container }}${{ matrix.container-suffix }}
strategy:
fail-fast: false
matrix:
rosdistro:
- humble
container-suffix:
- ""
- -cuda
include:
- rosdistro: humble
container: ghcr.io/autowarefoundation/autoware:latest-prebuilt
build-depends-repos: build_depends.repos
steps:
- name: Check out repository
uses: actions/checkout@v4
with:
fetch-depth: 1

- name: Show disk space before the tasks
run: df -h

- name: Remove exec_depend
uses: autowarefoundation/autoware-github-actions/remove-exec-depend@v1

- name: Get self packages
id: get-self-packages
uses: autowarefoundation/autoware-github-actions/get-self-packages@v1

- name: Build
if: ${{ steps.get-self-packages.outputs.self-packages != '' }}
uses: autowarefoundation/autoware-github-actions/colcon-build@v1
with:
rosdistro: ${{ matrix.rosdistro }}
target-packages: ${{ steps.get-self-packages.outputs.self-packages }}
build-depends-repos: ${{ matrix.build-depends-repos }}

- name: Test
if: ${{ steps.get-self-packages.outputs.self-packages != '' }}
id: test
uses: autowarefoundation/autoware-github-actions/colcon-test@v1
with:
rosdistro: ${{ matrix.rosdistro }}
target-packages: ${{ steps.get-self-packages.outputs.self-packages }}
build-depends-repos: ${{ matrix.build-depends-repos }}

- name: Upload coverage to CodeCov
if: ${{ steps.test.outputs.coverage-report-files != '' }}
uses: codecov/codecov-action@v4
with:
files: ${{ steps.test.outputs.coverage-report-files }}
fail_ci_if_error: false
verbose: true
flags: total

- name: Show disk space after the tasks
run: df -h
28 changes: 21 additions & 7 deletions .github/workflows/build-and-test-differential-arm64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@ on:
types:
- opened
- synchronize
- reopened
- labeled
workflow_dispatch:

jobs:
prevent-no-label-execution:
uses: autowarefoundation/autoware-github-actions/.github/workflows/prevent-no-label-execution.yaml@v1
make-sure-label-is-present:
uses: autowarefoundation/autoware-github-actions/.github/workflows/make-sure-label-is-present.yaml@v1
with:
label: type:arm64

build-and-test-differential-arm64:
needs: prevent-no-label-execution
if: ${{ needs.prevent-no-label-execution.outputs.run == 'true' }}
needs: make-sure-label-is-present
if: ${{ needs.make-sure-label-is-present.outputs.result == 'true' }}
runs-on: [self-hosted, linux, ARM64]
container: ${{ matrix.container }}${{ matrix.container-suffix }}
strategy:
Expand All @@ -32,10 +32,14 @@ jobs:
container: ghcr.io/autowarefoundation/autoware:latest-prebuilt
build-depends-repos: build_depends.repos
steps:
- name: Check out repository
- name: Set PR fetch depth
run: echo "PR_FETCH_DEPTH=$(( ${{ github.event.pull_request.commits }} + 1 ))" >> "${GITHUB_ENV}"

- name: Checkout PR branch and all PR commits
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: ${{ env.PR_FETCH_DEPTH }}

- name: Show disk space before the tasks
run: df -h
Expand All @@ -56,12 +60,22 @@ jobs:
build-depends-repos: ${{ matrix.build-depends-repos }}

- name: Test
id: test
if: ${{ steps.get-modified-packages.outputs.modified-packages != '' }}
uses: autowarefoundation/autoware-github-actions/colcon-test@v1
with:
rosdistro: ${{ matrix.rosdistro }}
target-packages: ${{ steps.get-modified-packages.outputs.modified-packages }}
build-depends-repos: ${{ matrix.build-depends-repos }}

- name: Upload coverage to CodeCov
if: ${{ steps.test.outputs.coverage-report-files != '' }}
uses: codecov/codecov-action@v4
with:
files: ${{ steps.test.outputs.coverage-report-files }}
fail_ci_if_error: false
verbose: true
flags: differential-arm64

- name: Show disk space after the tasks
run: df -h
46 changes: 39 additions & 7 deletions .github/workflows/build-and-test-differential.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,22 @@ on:
types:
- opened
- synchronize
- reopened
- labeled

env:
CC: /usr/lib/ccache/gcc
CXX: /usr/lib/ccache/g++

jobs:
prevent-no-label-execution:
uses: autowarefoundation/autoware-github-actions/.github/workflows/prevent-no-label-execution.yaml@v1
make-sure-label-is-present:
uses: autowarefoundation/autoware-github-actions/.github/workflows/make-sure-label-is-present.yaml@v1
with:
label: tag:run-build-and-test-differential

build-and-test-differential:
needs: prevent-no-label-execution
if: ${{ needs.prevent-no-label-execution.outputs.run == 'true' }}
needs: make-sure-label-is-present
if: ${{ needs.make-sure-label-is-present.outputs.result == 'true' }}
runs-on: ubuntu-latest
container: ${{ matrix.container }}${{ matrix.container-suffix }}
strategy:
Expand All @@ -31,10 +36,14 @@ jobs:
container: ghcr.io/autowarefoundation/autoware:latest-prebuilt
build-depends-repos: build_depends.repos
steps:
- name: Check out repository
- name: Set PR fetch depth
run: echo "PR_FETCH_DEPTH=$(( ${{ github.event.pull_request.commits }} + 1 ))" >> "${GITHUB_ENV}"

- name: Checkout PR branch and all PR commits
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: ${{ env.PR_FETCH_DEPTH }}

- name: Show disk space before the tasks
run: df -h
Expand All @@ -46,6 +55,25 @@ jobs:
id: get-modified-packages
uses: autowarefoundation/autoware-github-actions/get-modified-packages@v1

- name: Create ccache directory
run: |
mkdir -p ${CCACHE_DIR}
du -sh ${CCACHE_DIR} && ccache -s
shell: bash

- name: Attempt to restore ccache
uses: actions/cache/restore@v4
with:
path: |
/root/.ccache
key: ccache-main-${{ runner.arch }}-${{ matrix.rosdistro }}-${{ github.event.pull_request.base.sha }}
restore-keys: |
ccache-main-${{ runner.arch }}-${{ matrix.rosdistro }}-

- name: Show ccache stats before build
run: du -sh ${CCACHE_DIR} && ccache -s
shell: bash

- name: Build
if: ${{ steps.get-modified-packages.outputs.modified-packages != '' }}
uses: autowarefoundation/autoware-github-actions/colcon-build@v1
Expand All @@ -54,6 +82,10 @@ jobs:
target-packages: ${{ steps.get-modified-packages.outputs.modified-packages }}
build-depends-repos: ${{ matrix.build-depends-repos }}

- name: Show ccache stats after build
run: du -sh ${CCACHE_DIR} && ccache -s
shell: bash

- name: Test
id: test
if: ${{ steps.get-modified-packages.outputs.modified-packages != '' }}
Expand All @@ -65,7 +97,7 @@ jobs:

- name: Upload coverage to CodeCov
if: ${{ steps.test.outputs.coverage-report-files != '' }}
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
files: ${{ steps.test.outputs.coverage-report-files }}
fail_ci_if_error: false
Expand Down
Loading
Loading