Skip to content

CI: remove the ccache step, which never restores - #228

Merged
fjp merged 1 commit into
noetic-develfrom
chore/ci-remove-ccache
Nov 27, 2026
Merged

fjp merged 1 commit into
noetic-develfrom
chore/ci-remove-ccache

Conversation

@fjp

@fjp fjp commented Nov 27, 2026 •

Copy link
Copy Markdown
Member

What and why

The CI workflow's ccache step never restores a cache, so this pull request removes it.

Before: diffbot_ci_action.yml sets CCACHE_DIR: /github/home/.ccache for industrial_ci and runs actions/cache on that folder before industrial_ci. The step finds the newest ccache-noetic-main- cache, but tar can't unpack it: at the start of the job, the path /github/home doesn'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_DIR and no cache step, so industrial_ci builds without ccache. The job keeps its name, industrial_ci (noetic, main), which the ruleset of noetic-devel requires.

Who calls whom: GitHub Actions runs the job's steps in order: actions/checkout, then ros-industrial/industrial_ci. industrial_ci uses ccache only when CCACHE_DIR is 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

  • The workflow's YAML parses. The job's env has only UPSTREAM_WORKSPACE, and its steps are actions/checkout@v7 and ros-industrial/industrial_ci@master.
  • This pull request's CI at 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)

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 fjp added the enhancement New feature or request label Nov 27, 2026
@fjp fjp self-assigned this Nov 27, 2026
@fjp
fjp merged commit a77725a into noetic-devel Nov 27, 2026
13 checks passed
@fjp
fjp deleted the chore/ci-remove-ccache branch November 27, 2026 17:23
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant