autowarefoundation / autoware

Autoware - the world's leading open-source software project for autonomous driving
https://www.autoware.org/
Apache License 2.0
8.58k stars 2.88k forks source link

feat(docker): cache apt archives to the Docker build cache #4778

Closed youtalk closed 1 month ago

youtalk commented 1 month ago

Description

This PR uses docker build cache mounts to cache downloaded apt packages.

https://docs.docker.com/build/guide/mounts/#add-a-cache-mount

If the same version of the deb binary has already been downloaded in a past build, the current build will skip the download and use the cached binary, reducing transfer volume and speeding up the build process.

Tests performed

https://github.com/autowarefoundation/autoware/actions/runs/9283929529

Effects on system behavior

Not applicable.

Interface changes

Pre-review checklist for the PR author

The PR author must check the checkboxes below when creating the PR.

In-review checklist for the PR reviewers

The PR reviewers must check the checkboxes below before approval.

Post-review checklist for the PR author

The PR author must check the checkboxes below before merging.

After all checkboxes are checked, anyone who has write access can merge the PR.

youtalk commented 1 month ago

Hmm... It occurs the disk full problem again. https://github.com/autowarefoundation/autoware/actions/runs/9248273797/job/25438322811

oguzkaganozt commented 1 month ago

@youtalk, I just removed upload-artifact lines from our build pipeline for now with this PR and hopefully we can merge it, after this action succeeds

oguzkaganozt commented 1 month ago

@youtalk could you re-test this branch again with the build action ? Then we can merge it i think

youtalk commented 1 month ago

@oguzkaganozt I've merged the latest main branch and restart the build action. https://github.com/autowarefoundation/autoware/actions/runs/9276872817