Repository navigation
CI: remove the ccache step, which never restores - #228
Merged
Merged
Conversation
The cache step finds the newest ccache cache but can't unpack it: its folder, /github/home/.ccache, exists only inside industrial_ci's container, not on the runner where actions/cache runs. Each run then saves a new cache of about 1 MB. The two build phases take about 100 s of the job's 10 minutes, so the job has no use for the cache.
fjp
added a commit
to ros-mobile-robots/ros-mobile-robots.github.io
that referenced
this pull request
Nov 27, 2026
## What and why The section industrial_ci on Testing and CI describes the ccache step of diffbot's CI workflow. diffbot's pull request removes that step, so the paragraph goes with it. **Before:** the last paragraph of the section explains how the workflow saves ccache's folder with `actions/cache`, and that the step finds the newest cache but logs `Failed to restore`. **With this pull request:** the section ends with the paragraph on `UPSTREAM_WORKSPACE`. The rest of the page is unchanged. **Merge order:** merge ros-mobile-robots/diffbot#228 first. This page then describes the workflow on `noetic-devel`. ## How it was tested At `6ddc24cfc`: 242 unit tests, the strict build and codespell pass.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What and why
The CI workflow's ccache step never restores a cache, so this pull request removes it.
Before:
diffbot_ci_action.ymlsetsCCACHE_DIR: /github/home/.ccachefor industrial_ci and runsactions/cacheon that folder before industrial_ci. The step finds the newestccache-noetic-main-cache, buttarcan't unpack it: at the start of the job, the path/github/homedoesn't exist on the fresh runner. Run 45899852790 logs/usr/bin/tar: ../../../../../github/home/.ccache: Cannot mkdir: No such file or directory. Later in the same run, industrial_ci mounts the folder from the runner into its container and builds with ccache, and the post-job step saves a new cache of about 1.2 MB under its run's key. So every build starts with an empty cache.With this pull request: the job has no
CCACHE_DIRand no cache step, so industrial_ci builds without ccache. The job keeps its name,industrial_ci (noetic, main), which the ruleset ofnoetic-develrequires.Who calls whom: GitHub Actions runs the job's steps in order:
actions/checkout, thenros-industrial/industrial_ci. industrial_ci uses ccache only whenCCACHE_DIRis set.Limits: a working cache could only shorten the builds. In run 45899852790, catkin reports 4.2 s for the upstream workspace and 16.6 s for the diffbot packages, and 5 min 37.1 s for the tests.
How it was tested
envhas onlyUPSTREAM_WORKSPACE, and its steps areactions/checkout@v7andros-industrial/industrial_ci@master.2d44b4c: all checks pass.industrial_ci (noetic, main)in run 46032972646:Summary: 168 tests, 0 errors, 0 failures, 0 skipped, with no cache step in the job. The job took 11 min 27 s. In run 45899852790, which built an earlier revision, the job took 10 min 8 s, and restoring and saving the old cache took about 4 s.Documentation
ros-mobile-robots/ros-mobile-robots.github.io#155 (Testing and CI: industrial_ci)