Skip to content

prerelease test broken if custom CCACHE_DIR is used #822

@rhaschke

Description

@rhaschke

This build using a custom CCACHE_DIR=/home/runner/work/rviz/rviz/.ccache fails with the following error:

# BEGIN SECTION: Run Dockerfile - build and install
# BEGIN SUBSECTION: build workspace in isolation and install
...
ccache: error: Failed to create directory /home/buildfarm/.ccache/tmp: Permission denied

The CCACHE_DIR is correctly passed to docker run by industrial_ci:

docker create --init --env-file /home/runner/work/_actions/ros-industrial/industrial_ci/master/industrial_ci/src/isolation/docker.env --rm -e TRAVIS -e OS_NAME -e OS_CODE_NAME -e OS_ARCH -e PRERELEASE_DOWNSTREAM_DEPTH -e PRERELEASE_REPONAME -e ROSDISTRO_INDEX_URL -e PRERELEASE_DISTRO -v /tmp/tmp.xNEHYg9fGl:/tmp/tmp.xNEHYg9fGl:rw -e WORKSPACE=/tmp/tmp.xNEHYg9fGl -v /run/docker.sock:/run/docker.sock:rw -v /home/runner/work/rviz/rviz/.ccache:/tmp/tmp.xNEHYg9fGl/home/.ccache:rw -e CCACHE_DIR=/tmp/tmp.xNEHYg9fGl/home/.ccache -v /home/runner/work/rviz/rviz:/home/runner/work/rviz/rviz:ro -e TARGET_REPO_PATH=/home/runner/work/rviz/rviz -v /home/runner/work/_actions/ros-industrial/industrial_ci/master/industrial_ci/src:/home/runner/work/_actions/ros-industrial/industrial_ci/master/industrial_ci/src:ro -e ICI_SRC_PATH=/home/runner/work/_actions/ros-industrial/industrial_ci/master/industrial_ci/src -v /home/runner/work:/home/runner/work:rw -e BASEDIR=/home/runner/work -v /home/runner/work/_temp/_runner_file_commands/set_output_f3392e2a-41ca-442c-8479-71cfa390e1c6:/home/runner/work/_temp/_runner_file_commands/set_output_f3392e2a-41ca-442c-8479-71cfa390e1c6:rw -e GITHUB_OUTPUT=/home/runner/work/_temp/_runner_file_commands/set_output_f3392e2a-41ca-442c-8479-71cfa390e1c6 -t --entrypoint -w /home/runner/work/rviz/rviz ros:noetic-ros-core /bin/bash /home/runner/work/_actions/ros-industrial/industrial_ci/master/industrial_ci/src/run.sh ros_prerelease run_ros_prerelease

This used to work 8 months ago.
I'm afraid that's a bug introduced by the upstream prerelease scripts, but I don't have time now to investigate 😞

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions