Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
3 changes: 2 additions & 1 deletion .github/workflows/build-and-test-daily.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ jobs:
push-ccache: false
cache-key-element: daily-build
above: ${{ matrix.above }}
codecov-flag: daily-${{ matrix.rosdistro }}
upload-coverage: ${{ matrix.rosdistro == 'jazzy' && !matrix.above }}
codecov-flag: daily
concurrency-group: build-and-test-daily-${{ matrix.rosdistro }}${{ matrix.above && '-above' || '' }}-${{ github.ref }}-${{ github.run_id }}
runner: ${{ matrix.above && '["self-hosted","Linux","X64"]' || '["ubuntu-latest"]' }}

Expand Down
12 changes: 9 additions & 3 deletions .github/workflows/build-and-test-diff-reusable.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ on:
default: true
required: false
type: boolean
upload-coverage:
default: false
required: false
type: boolean

env:
CC: /usr/lib/ccache/gcc
Expand Down Expand Up @@ -160,14 +164,16 @@ jobs:
underlay-workspace: /opt/autoware

- name: Upload coverage to CodeCov
if: ${{ steps.test.outputs.coverage-report-files != '' && !inputs.above }}
uses: codecov/codecov-action@v4
if: ${{ steps.test.outputs.coverage-report-files != '' && inputs.upload-coverage }}
# No flag: a PR upload with the full-suite flag would replace the carried-forward baseline.
uses: codecov/codecov-action@v6
with:
files: ${{ steps.test.outputs.coverage-report-files }}
fail_ci_if_error: false
verbose: true
flags: differential-${{ inputs.rosdistro }}
token: ${{ secrets.codecov-token }}
disable_search: true
plugins: noop

- name: Show disk space after the tasks
run: df -h
Expand Down
12 changes: 8 additions & 4 deletions .github/workflows/build-and-test-reusable.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ on:
type: string
default: default
required: false
upload-coverage:
type: boolean
default: false
required: false
codecov-flag:
type: string
default: other
Expand Down Expand Up @@ -177,16 +181,16 @@ jobs:
underlay-workspace: /opt/autoware

- name: Upload coverage to CodeCov
if: ${{ steps.test.outputs.coverage-report-files != '' && !inputs.above }}
uses: codecov/codecov-action@v5
if: ${{ steps.test.outputs.coverage-report-files != '' && inputs.upload-coverage }}
uses: codecov/codecov-action@v6
with:
files: ${{ steps.test.outputs.coverage-report-files }}
disable_search: true
plugins: noop
fail_ci_if_error: false
verbose: true
flags: ${{ inputs.codecov-flag }}
token: ${{ secrets.codecov-token }}
disable_search: true
plugins: noop

- name: Show disk space after the tasks
run: df -h
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/build-and-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ jobs:
cache-key-element: build
above: ${{ matrix.above }}
enable-agnocast: ${{ matrix.enable-agnocast }}
codecov-flag: total-${{ matrix.rosdistro }}${{ matrix.enable-agnocast && '-agnocast' || '' }}
upload-coverage: ${{ matrix.rosdistro == 'jazzy' && !matrix.above && !matrix.enable-agnocast }}
codecov-flag: full-suite
concurrency-group: build-and-test-${{ matrix.rosdistro }}${{ matrix.above && '-above' || '' }}${{ matrix.enable-agnocast && '-agnocast' || '' }}-${{ github.ref }}-${{ github.run_id }}
runner: ${{ matrix.above && '["self-hosted","Linux","X64"]' || '["ubuntu-latest"]' }}

Expand Down
1 change: 1 addition & 0 deletions .github/workflows/build-test-tidy-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ jobs:
container: ghcr.io/autowarefoundation/autoware:core-dependencies-jazzy
above: false
run-condition: ${{ needs.require-label.outputs.result == 'true' }}
upload-coverage: true
secrets:
codecov-token: ${{ secrets.CODECOV_TOKEN }}

Expand Down
15 changes: 7 additions & 8 deletions codecov.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,21 @@ coverage:
project:
default:
target: auto
informational: true
patch:
default:
target: auto
informational: true

comment:
show_carryforward_flags: true

flag_management:
default_rules:
carryforward: true
statuses:
- name_prefix: project-
type: project
target: auto
- name_prefix: patch-
type: patch
target: auto
carryforward: false
individual_flags:
- name: full-suite
carryforward: true

ignore:
- "**/test/*"
Expand All @@ -28,6 +26,7 @@ ignore:
- tools/**
- "**/examples/*"
- "**/examples/**/*"
- "**/setup.py"

component_management:
individual_components:
Expand Down
Loading