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

ci(build-and-test-differential): visualize build times #9649

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from
Draft
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
22 changes: 18 additions & 4 deletions .github/actions/build-and-test-differential/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@
container-suffix:
description: ""
required: true
runner:
description: ""
required: true
build-depends-repos:
description: ""
required: true
Expand Down Expand Up @@ -74,8 +71,9 @@
shell: bash

- name: Build
id: build
if: ${{ steps.get-modified-packages.outputs.modified-packages != '' }}
uses: autowarefoundation/autoware-github-actions/colcon-build@v1
uses: autowarefoundation/autoware-github-actions/colcon-build@feat/build-time-vis
with:
rosdistro: ${{ inputs.rosdistro }}
target-packages: ${{ steps.get-modified-packages.outputs.modified-packages }}
Expand All @@ -87,6 +85,22 @@
run: du -sh ${CCACHE_DIR} && ccache -s
shell: bash

- uses: actions/upload-artifact@v4
id: upload-artifact-treemap

Check warning on line 89 in .github/actions/build-and-test-differential/action.yaml

View workflow job for this annotation

GitHub Actions / spell-check-differential

Unknown word (treemap)
if: ${{ steps.build.outputs.build-time-treemap-path != '' }}

Check warning on line 90 in .github/actions/build-and-test-differential/action.yaml

View workflow job for this annotation

GitHub Actions / spell-check-differential

Unknown word (treemap)
with:
name: build-time-visualization-treemap

Check warning on line 92 in .github/actions/build-and-test-differential/action.yaml

View workflow job for this annotation

GitHub Actions / spell-check-differential

Unknown word (treemap)
path: ${{ steps.build.outputs.build-time-treemap-path }}

Check warning on line 93 in .github/actions/build-and-test-differential/action.yaml

View workflow job for this annotation

GitHub Actions / spell-check-differential

Unknown word (treemap)

- name: Visualize build time treemap

Check warning on line 95 in .github/actions/build-and-test-differential/action.yaml

View workflow job for this annotation

GitHub Actions / spell-check-differential

Unknown word (treemap)
if: ${{ steps.build.outputs.build-time-treemap-path != '' }}
run: |
echo "## Build Time Treemap Visualization" >> $GITHUB_STEP_SUMMARY

Check warning on line 98 in .github/actions/build-and-test-differential/action.yaml

View workflow job for this annotation

GitHub Actions / spell-check-differential

Unknown word (Treemap)
echo "" >> $GITHUB_STEP_SUMMARY
echo ${{ steps.upload-artifact-treemap.outputs.artifact-url }} >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
shell: bash

- name: Test
id: test
if: ${{ steps.get-modified-packages.outputs.modified-packages != '' }}
Expand Down
21 changes: 19 additions & 2 deletions .github/workflows/build-and-test-daily.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

jobs:
build-and-test-daily:
runs-on: [self-hosted, Linux, X64]
runs-on: ubuntu-24.04
container: ${{ matrix.container }}${{ matrix.container-suffix }}
strategy:
fail-fast: false
Expand Down Expand Up @@ -82,8 +82,9 @@
shell: bash

- name: Build
id: build
if: ${{ steps.get-self-packages.outputs.self-packages != '' }}
uses: autowarefoundation/autoware-github-actions/colcon-build@v1
uses: autowarefoundation/autoware-github-actions/colcon-build@feat/build-time-vis
with:
rosdistro: ${{ matrix.rosdistro }}
target-packages: ${{ steps.get-self-packages.outputs.self-packages }}
Expand All @@ -94,6 +95,22 @@
run: du -sh ${CCACHE_DIR} && ccache -s
shell: bash

- uses: actions/upload-artifact@v4
id: upload-artifact-treemap

Check warning on line 99 in .github/workflows/build-and-test-daily.yaml

View workflow job for this annotation

GitHub Actions / spell-check-differential

Unknown word (treemap)
if: ${{ steps.build.outputs.build-time-treemap-path != '' }}

Check warning on line 100 in .github/workflows/build-and-test-daily.yaml

View workflow job for this annotation

GitHub Actions / spell-check-differential

Unknown word (treemap)
with:
name: build-time-visualization-treemap

Check warning on line 102 in .github/workflows/build-and-test-daily.yaml

View workflow job for this annotation

GitHub Actions / spell-check-differential

Unknown word (treemap)
path: ${{ steps.build.outputs.build-time-treemap-path }}

Check warning on line 103 in .github/workflows/build-and-test-daily.yaml

View workflow job for this annotation

GitHub Actions / spell-check-differential

Unknown word (treemap)

- name: Visualize build time treemap
if: ${{ steps.build.outputs.build-time-treemap-path != '' }}
run: |
echo "## Build Time Treemap Visualization" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo ${{ steps.upload-artifact-treemap.outputs.artifact-url }} >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
shell: bash

- name: Test
if: ${{ steps.get-self-packages.outputs.self-packages != '' }}
id: test
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/build-and-test-differential.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
run: exit 1

build-and-test-differential:
runs-on: ubuntu-latest
runs-on: [self-hosted, Linux, X64]
container: ghcr.io/autowarefoundation/autoware:universe-devel
needs: prepare-build-and-test-differential
steps:
Expand All @@ -69,7 +69,6 @@ jobs:
rosdistro: humble
container: ghcr.io/autowarefoundation/autoware:universe-devel
container-suffix: ""
runner: ubuntu-latest
build-depends-repos: build_depends.repos
build-pre-command: ""
codecov-token: ${{ secrets.CODECOV_TOKEN }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@

namespace autoware::mission_details_overlay_rviz_plugin
{
// TODO(xmfcx): remove this line

RemainingDistanceTimeDisplay::RemainingDistanceTimeDisplay()
: remaining_distance_(0.0), remaining_time_(0.0)
Expand Down
Loading