Skip to content

Cache ccache folder in CI workspace#2401

Merged
ruffsl merged 3 commits intoros-navigation:mainfrom
ruffsl:ci-ccache-workspace
Jun 9, 2021
Merged

Cache ccache folder in CI workspace#2401
ruffsl merged 3 commits intoros-navigation:mainfrom
ruffsl:ci-ccache-workspace

Conversation

@ruffsl
Copy link
Member

@ruffsl ruffsl commented Jun 9, 2021

Fixes issue with restoring ccache, introduced in #2343 . This does so by setting the CCACHE_DIR to be inside the workspace (i.e. current working directory). This also has the benefit that each workspace now caches it's own ccache directory, and simplifies the number of specific steps.

@ruffsl
Copy link
Member Author

ruffsl commented Jun 9, 2021

Example of existing issue in Restore Cache ccache step:

Found a cache from build 20042 at ccache-v1-arch1-linux-amd64-6_85-main-<no value>-Aq7BtXYEt7jrMu57mTFIwvjZ0+NimH3EYrtW+noHpow=
Size: 32 B
Cached paths:
  * /tmp/.ccache/build
  * /tmp/.ccache/install
  * /tmp/.ccache/log

Downloading cache archive...
Validating cache...

Unarchiving cache...

https://app.circleci.com/pipelines/github/ros-planning/navigation2/5474/workflows/2df6996a-1bbc-4646-ba64-fad1545a0638/jobs/20045/parallel-runs/0/steps/0-105

@ruffsl ruffsl merged commit d2cf200 into ros-navigation:main Jun 9, 2021
@ruffsl ruffsl deleted the ci-ccache-workspace branch June 9, 2021 19:05
ruffsl added a commit to ruffsl/navigation2 that referenced this pull request Jul 2, 2021
* Cache ccache folder in workspace
and move ccache_stats command into setup_workspace

* Store ccache logs in colcon build log path

* Updates to cache ccache folder in workspace
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant