Skip to content

Commit 5bba061

Browse files
fmauchRobertWilbrandt
authored andcommitted
Turn of cache in workflows
This seems to cause more problems (e.g. when it comes to upstream workspace changes) than the benefits are from that. The majority of the workflow run time seems to come from installing the dependencies and not from building the workspaces themselves.
1 parent 3c2204e commit 5bba061

11 files changed

+0
-308
lines changed

.github/workflows/foxy-binary-build.yml

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -18,40 +18,12 @@ jobs:
1818
DOCKER_RUN_OPTS: --network static_test_net
1919
BEFORE_INIT: 'apt-get update -qq && apt-get install -y iproute2 iputils-ping && ip addr && ping -c5 192.168.56.101'
2020
IMMEDIATE_TEST_OUTPUT: true
21-
CCACHE_DIR: ${{ github.workspace }}/.ccache
22-
BASEDIR: ${{ github.workspace }}/.work
23-
CACHE_PREFIX: ${{ matrix.env.ROS_DISTRO }}-${{ matrix.env.ROS_REPO }}
2421
steps:
2522
- uses: actions/checkout@v1
2623
with:
2724
ref: foxy
2825
- name: start ursim
2926
run: |
3027
.github/dockerursim/build_and_run_docker_ursim.sh
31-
# The target directory cache doesn't include the source directory because
32-
# that comes from the checkout. See "prepare target_ws for cache" task below
33-
- name: cache target_ws
34-
if: ${{ ! matrix.env.CCOV }}
35-
uses: pat-s/[email protected]
36-
with:
37-
path: ${{ env.BASEDIR }}/target_ws
38-
key: target_ws-${{ env.CACHE_PREFIX }}-${{ hashFiles('**/CMakeLists.txt', '**/package.xml') }}-${{ github.run_id }}
39-
restore-keys: |
40-
target_ws-${{ env.CACHE_PREFIX }}-${{ hashFiles('**/CMakeLists.txt', '**/package.xml') }}
41-
- name: cache ccache
42-
uses: pat-s/[email protected]
43-
with:
44-
path: ${{ env.CCACHE_DIR }}
45-
key: ccache-${{ env.CACHE_PREFIX }}-${{ github.sha }}-${{ github.run_id }}
46-
restore-keys: |
47-
ccache-${{ env.CACHE_PREFIX }}-${{ github.sha }}
48-
ccache-${{ env.CACHE_PREFIX }}
4928
- uses: 'ros-industrial/industrial_ci@master'
5029
env: ${{matrix.env}}
51-
- name: prepare target_ws for cache
52-
if: ${{ always() && ! matrix.env.CCOV }}
53-
run: |
54-
du -sh ${{ env.BASEDIR }}/target_ws
55-
sudo find ${{ env.BASEDIR }}/target_ws -wholename '*/test_results/*' -delete
56-
sudo rm -rf ${{ env.BASEDIR }}/target_ws/src
57-
du -sh ${{ env.BASEDIR }}/target_ws

.github/workflows/foxy-semi-binary-build.yml

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -19,40 +19,12 @@ jobs:
1919
DOCKER_RUN_OPTS: --network static_test_net
2020
BEFORE_INIT: 'apt-get update -qq && apt-get install -y iproute2 iputils-ping && ip addr && ping -c5 192.168.56.101'
2121
IMMEDIATE_TEST_OUTPUT: true
22-
CCACHE_DIR: ${{ github.workspace }}/.ccache
23-
BASEDIR: ${{ github.workspace }}/.work
24-
CACHE_PREFIX: ${{ matrix.env.ROS_DISTRO }}-${{ matrix.env.ROS_REPO }}
2522
steps:
2623
- uses: actions/checkout@v1
2724
with:
2825
ref: foxy
2926
- name: start ursim
3027
run: |
3128
.github/dockerursim/build_and_run_docker_ursim.sh
32-
# The target directory cache doesn't include the source directory because
33-
# that comes from the checkout. See "prepare target_ws for cache" task below
34-
- name: cache target_ws
35-
if: ${{ ! matrix.env.CCOV }}
36-
uses: pat-s/[email protected]
37-
with:
38-
path: ${{ env.BASEDIR }}/target_ws
39-
key: target_ws-${{ env.CACHE_PREFIX }}-${{ hashFiles('**/CMakeLists.txt', '**/package.xml') }}-${{ github.run_id }}
40-
restore-keys: |
41-
target_ws-${{ env.CACHE_PREFIX }}-${{ hashFiles('**/CMakeLists.txt', '**/package.xml') }}
42-
- name: cache ccache
43-
uses: pat-s/[email protected]
44-
with:
45-
path: ${{ env.CCACHE_DIR }}
46-
key: ccache-${{ env.CACHE_PREFIX }}-${{ github.sha }}-${{ github.run_id }}
47-
restore-keys: |
48-
ccache-${{ env.CACHE_PREFIX }}-${{ github.sha }}
49-
ccache-${{ env.CACHE_PREFIX }}
5029
- uses: 'ros-industrial/industrial_ci@master'
5130
env: ${{matrix.env}}
52-
- name: prepare target_ws for cache
53-
if: ${{ always() && ! matrix.env.CCOV }}
54-
run: |
55-
du -sh ${{ env.BASEDIR }}/target_ws
56-
sudo find ${{ env.BASEDIR }}/target_ws -wholename '*/test_results/*' -delete
57-
sudo rm -rf ${{ env.BASEDIR }}/target_ws/src
58-
du -sh ${{ env.BASEDIR }}/target_ws

.github/workflows/galactic-binary-build.yml

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -16,39 +16,11 @@ jobs:
1616
env:
1717
NOT_TEST_BUILD: true
1818
NOT_TEST_DOWNSTREAM: true
19-
CCACHE_DIR: ${{ github.workspace }}/.ccache
20-
BASEDIR: ${{ github.workspace }}/.work
21-
CACHE_PREFIX: ${{ matrix.ROS_DISTRO }}-${{ matrix.ROS_REPO }}-binary
2219
steps:
2320
- uses: actions/checkout@v1
2421
with:
2522
ref: galactic
26-
# The target directory cache doesn't include the source directory because
27-
# that comes from the checkout. See "prepare target_ws for cache" task below
28-
- name: cache target_ws
29-
if: ${{ ! matrix.CCOV }}
30-
uses: pat-s/[email protected]
31-
with:
32-
path: ${{ env.BASEDIR }}/target_ws
33-
key: target_ws-${{ env.CACHE_PREFIX }}-${{ hashFiles('**/CMakeLists.txt', '**/package.xml') }}-${{ github.run_id }}
34-
restore-keys: |
35-
target_ws-${{ env.CACHE_PREFIX }}-${{ hashFiles('**/CMakeLists.txt', '**/package.xml') }}
36-
- name: cache ccache
37-
uses: pat-s/[email protected]
38-
with:
39-
path: ${{ env.CCACHE_DIR }}
40-
key: ccache-${{ env.CACHE_PREFIX }}-${{ github.sha }}-${{ github.run_id }}
41-
restore-keys: |
42-
ccache-${{ env.CACHE_PREFIX }}-${{ github.sha }}
43-
ccache-${{ env.CACHE_PREFIX }}
4423
- uses: 'ros-industrial/industrial_ci@master'
4524
env:
4625
ROS_DISTRO: ${{ matrix.ROS_DISTRO }}
4726
ROS_REPO: ${{ matrix.ROS_REPO }}
48-
- name: prepare target_ws for cache
49-
if: ${{ always() && ! matrix.CCOV }}
50-
run: |
51-
du -sh ${{ env.BASEDIR }}/target_ws
52-
sudo find ${{ env.BASEDIR }}/target_ws -wholename '*/test_results/*' -delete
53-
sudo rm -rf ${{ env.BASEDIR }}/target_ws/src
54-
du -sh ${{ env.BASEDIR }}/target_ws

.github/workflows/galactic-execution-test.yml

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@ jobs:
1919
DOCKER_RUN_OPTS: --network static_test_net
2020
BEFORE_INIT: 'apt-get update -qq && apt-get install -y iproute2 iputils-ping && ip addr && ping -c5 192.168.56.101'
2121
IMMEDIATE_TEST_OUTPUT: true
22-
CCACHE_DIR: ${{ github.workspace }}/.ccache
23-
BASEDIR: ${{ github.workspace }}/.work
24-
CACHE_PREFIX: ${{ matrix.ROS_DISTRO }}-${{ matrix.ROS_REPO }}-execution
2522
PARALLEL_TESTS: 2
2623
steps:
2724
- uses: actions/checkout@v1
@@ -30,32 +27,7 @@ jobs:
3027
- name: start ursim
3128
run: |
3229
.github/dockerursim/build_and_run_docker_ursim.sh
33-
# The target directory cache doesn't include the source directory because
34-
# that comes from the checkout. See "prepare target_ws for cache" task below
35-
- name: cache target_ws
36-
if: ${{ ! matrix.env.CCOV }}
37-
uses: pat-s/[email protected]
38-
with:
39-
path: ${{ env.BASEDIR }}/target_ws
40-
key: target_ws-${{ env.CACHE_PREFIX }}-${{ hashFiles('**/CMakeLists.txt', '**/package.xml') }}-${{ github.run_id }}
41-
restore-keys: |
42-
target_ws-${{ env.CACHE_PREFIX }}-${{ hashFiles('**/CMakeLists.txt', '**/package.xml') }}
43-
- name: cache ccache
44-
uses: pat-s/[email protected]
45-
with:
46-
path: ${{ env.CCACHE_DIR }}
47-
key: ccache-${{ env.CACHE_PREFIX }}-${{ github.sha }}-${{ github.run_id }}
48-
restore-keys: |
49-
ccache-${{ env.CACHE_PREFIX }}-${{ github.sha }}
50-
ccache-${{ env.CACHE_PREFIX }}
5130
- uses: 'ros-industrial/industrial_ci@master'
5231
env:
5332
ROS_DISTRO: ${{ matrix.ROS_DISTRO }}
5433
ROS_REPO: ${{ matrix.ROS_REPO }}
55-
- name: prepare target_ws for cache
56-
if: ${{ always() && ! matrix.env.CCOV }}
57-
run: |
58-
du -sh ${{ env.BASEDIR }}/target_ws
59-
sudo find ${{ env.BASEDIR }}/target_ws -wholename '*/test_results/*' -delete
60-
sudo rm -rf ${{ env.BASEDIR }}/target_ws/src
61-
du -sh ${{ env.BASEDIR }}/target_ws

.github/workflows/galactic-semi-binary-build.yml

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -17,39 +17,11 @@ jobs:
1717
UPSTREAM_WORKSPACE: Universal_Robots_ROS2_Driver.${{ matrix.ROS_DISTRO }}.repos
1818
NOT_TEST_BUILD: true
1919
NOT_TEST_DOWNSTREAM: true
20-
CCACHE_DIR: ${{ github.workspace }}/.ccache
21-
BASEDIR: ${{ github.workspace }}/.work
22-
CACHE_PREFIX: ${{ matrix.ROS_DISTRO }}-${{ matrix.ROS_REPO }}-semi-binary
2320
steps:
2421
- uses: actions/checkout@v1
2522
with:
2623
ref: galactic
27-
# The target directory cache doesn't include the source directory because
28-
# that comes from the checkout. See "prepare target_ws for cache" task below
29-
- name: cache target_ws
30-
if: ${{ ! matrix.env.CCOV }}
31-
uses: pat-s/[email protected]
32-
with:
33-
path: ${{ env.BASEDIR }}/target_ws
34-
key: target_ws-${{ env.CACHE_PREFIX }}-${{ hashFiles('**/CMakeLists.txt', '**/package.xml') }}-${{ github.run_id }}
35-
restore-keys: |
36-
target_ws-${{ env.CACHE_PREFIX }}-${{ hashFiles('**/CMakeLists.txt', '**/package.xml') }}
37-
- name: cache ccache
38-
uses: pat-s/[email protected]
39-
with:
40-
path: ${{ env.CCACHE_DIR }}
41-
key: ccache-${{ env.CACHE_PREFIX }}-${{ github.sha }}-${{ github.run_id }}
42-
restore-keys: |
43-
ccache-${{ env.CACHE_PREFIX }}-${{ github.sha }}
44-
ccache-${{ env.CACHE_PREFIX }}
4524
- uses: 'ros-industrial/industrial_ci@master'
4625
env:
4726
ROS_DISTRO: ${{ matrix.ROS_DISTRO }}
4827
ROS_REPO: ${{ matrix.ROS_REPO }}
49-
- name: prepare target_ws for cache
50-
if: ${{ always() && ! matrix.env.CCOV }}
51-
run: |
52-
du -sh ${{ env.BASEDIR }}/target_ws
53-
sudo find ${{ env.BASEDIR }}/target_ws -wholename '*/test_results/*' -delete
54-
sudo rm -rf ${{ env.BASEDIR }}/target_ws/src
55-
du -sh ${{ env.BASEDIR }}/target_ws

.github/workflows/humble-binary-build.yml

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -23,37 +23,9 @@ jobs:
2323
UPSTREAM_WORKSPACE: Universal_Robots_ROS2_Driver-not-released.${{ matrix.ROS_DISTRO }}.repos
2424
NOT_TEST_BUILD: true
2525
NOT_TEST_DOWNSTREAM: true
26-
CCACHE_DIR: ${{ github.workspace }}/.ccache
27-
BASEDIR: ${{ github.workspace }}/.work
28-
CACHE_PREFIX: ${{ matrix.ROS_DISTRO }}-${{ matrix.ROS_REPO }}-binary
2926
steps:
3027
- uses: actions/checkout@v1
31-
# The target directory cache doesn't include the source directory because
32-
# that comes from the checkout. See "prepare target_ws for cache" task below
33-
- name: cache target_ws
34-
if: ${{ ! matrix.env.CCOV }}
35-
uses: pat-s/[email protected]
36-
with:
37-
path: ${{ env.BASEDIR }}/target_ws
38-
key: target_ws-${{ env.CACHE_PREFIX }}-${{ hashFiles('**/CMakeLists.txt', '**/package.xml') }}-${{ github.run_id }}
39-
restore-keys: |
40-
target_ws-${{ env.CACHE_PREFIX }}-${{ hashFiles('**/CMakeLists.txt', '**/package.xml') }}
41-
- name: cache ccache
42-
uses: pat-s/[email protected]
43-
with:
44-
path: ${{ env.CCACHE_DIR }}
45-
key: ccache-${{ env.CACHE_PREFIX }}-${{ github.sha }}-${{ github.run_id }}
46-
restore-keys: |
47-
ccache-${{ env.CACHE_PREFIX }}-${{ github.sha }}
48-
ccache-${{ env.CACHE_PREFIX }}
4928
- uses: 'ros-industrial/industrial_ci@master'
5029
env:
5130
ROS_DISTRO: ${{ matrix.ROS_DISTRO }}
5231
ROS_REPO: ${{ matrix.ROS_REPO }}
53-
- name: prepare target_ws for cache
54-
if: ${{ always() && ! matrix.env.CCOV }}
55-
run: |
56-
du -sh ${{ env.BASEDIR }}/target_ws
57-
sudo find ${{ env.BASEDIR }}/target_ws -wholename '*/test_results/*' -delete
58-
sudo rm -rf ${{ env.BASEDIR }}/target_ws/src
59-
du -sh ${{ env.BASEDIR }}/target_ws

.github/workflows/humble-execution-test.yml

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@ jobs:
2020
DOCKER_RUN_OPTS: --network static_test_net
2121
BEFORE_INIT: 'apt-get update -qq && apt-get install -y iproute2 iputils-ping && ip addr && ping -c5 192.168.56.101'
2222
IMMEDIATE_TEST_OUTPUT: true
23-
CCACHE_DIR: ${{ github.workspace }}/.ccache
24-
BASEDIR: ${{ github.workspace }}/.work
25-
CACHE_PREFIX: ${{ matrix.ROS_DISTRO }}-${{ matrix.ROS_REPO }}-execution
2623
PARALLEL_TESTS: 2
2724
steps:
2825
- uses: actions/checkout@v1
@@ -31,32 +28,7 @@ jobs:
3128
- name: start ursim
3229
run: |
3330
.github/dockerursim/build_and_run_docker_ursim.sh
34-
# The target directory cache doesn't include the source directory because
35-
# that comes from the checkout. See "prepare target_ws for cache" task below
36-
- name: cache target_ws
37-
if: ${{ ! matrix.env.CCOV }}
38-
uses: pat-s/[email protected]
39-
with:
40-
path: ${{ env.BASEDIR }}/target_ws
41-
key: target_ws-${{ env.CACHE_PREFIX }}-${{ hashFiles('**/CMakeLists.txt', '**/package.xml') }}-${{ github.run_id }}
42-
restore-keys: |
43-
target_ws-${{ env.CACHE_PREFIX }}-${{ hashFiles('**/CMakeLists.txt', '**/package.xml') }}
44-
- name: cache ccache
45-
uses: pat-s/[email protected]
46-
with:
47-
path: ${{ env.CCACHE_DIR }}
48-
key: ccache-${{ env.CACHE_PREFIX }}-${{ github.sha }}-${{ github.run_id }}
49-
restore-keys: |
50-
ccache-${{ env.CACHE_PREFIX }}-${{ github.sha }}
51-
ccache-${{ env.CACHE_PREFIX }}
5231
- uses: 'ros-industrial/industrial_ci@master'
5332
env:
5433
ROS_DISTRO: ${{ matrix.ROS_DISTRO }}
5534
ROS_REPO: ${{ matrix.ROS_REPO }}
56-
- name: prepare target_ws for cache
57-
if: ${{ always() && ! matrix.env.CCOV }}
58-
run: |
59-
du -sh ${{ env.BASEDIR }}/target_ws
60-
sudo find ${{ env.BASEDIR }}/target_ws -wholename '*/test_results/*' -delete
61-
sudo rm -rf ${{ env.BASEDIR }}/target_ws/src
62-
du -sh ${{ env.BASEDIR }}/target_ws

.github/workflows/humble-semi-binary-build.yml

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -23,37 +23,9 @@ jobs:
2323
UPSTREAM_WORKSPACE: Universal_Robots_ROS2_Driver.${{ matrix.ROS_DISTRO }}.repos
2424
NOT_TEST_BUILD: true
2525
NOT_TEST_DOWNSTREAM: true
26-
CCACHE_DIR: ${{ github.workspace }}/.ccache
27-
BASEDIR: ${{ github.workspace }}/.work
28-
CACHE_PREFIX: ${{ matrix.ROS_DISTRO }}-${{ matrix.ROS_REPO }}-semi-binary
2926
steps:
3027
- uses: actions/checkout@v1
31-
# The target directory cache doesn't include the source directory because
32-
# that comes from the checkout. See "prepare target_ws for cache" task below
33-
- name: cache target_ws
34-
if: ${{ ! matrix.env.CCOV }}
35-
uses: pat-s/[email protected]
36-
with:
37-
path: ${{ env.BASEDIR }}/target_ws
38-
key: target_ws-${{ env.CACHE_PREFIX }}-${{ hashFiles('**/CMakeLists.txt', '**/package.xml') }}-${{ github.run_id }}
39-
restore-keys: |
40-
target_ws-${{ env.CACHE_PREFIX }}-${{ hashFiles('**/CMakeLists.txt', '**/package.xml') }}
41-
- name: cache ccache
42-
uses: pat-s/[email protected]
43-
with:
44-
path: ${{ env.CCACHE_DIR }}
45-
key: ccache-${{ env.CACHE_PREFIX }}-${{ github.sha }}-${{ github.run_id }}
46-
restore-keys: |
47-
ccache-${{ env.CACHE_PREFIX }}-${{ github.sha }}
48-
ccache-${{ env.CACHE_PREFIX }}
4928
- uses: 'ros-industrial/industrial_ci@master'
5029
env:
5130
ROS_DISTRO: ${{ matrix.ROS_DISTRO }}
5231
ROS_REPO: ${{ matrix.ROS_REPO }}
53-
- name: prepare target_ws for cache
54-
if: ${{ always() && ! matrix.env.CCOV }}
55-
run: |
56-
du -sh ${{ env.BASEDIR }}/target_ws
57-
sudo find ${{ env.BASEDIR }}/target_ws -wholename '*/test_results/*' -delete
58-
sudo rm -rf ${{ env.BASEDIR }}/target_ws/src
59-
du -sh ${{ env.BASEDIR }}/target_ws

.github/workflows/rolling-binary-build.yml

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -23,37 +23,9 @@ jobs:
2323
UPSTREAM_WORKSPACE: Universal_Robots_ROS2_Driver-not-released.${{ matrix.ROS_DISTRO }}.repos
2424
NOT_TEST_BUILD: true
2525
NOT_TEST_DOWNSTREAM: true
26-
CCACHE_DIR: ${{ github.workspace }}/.ccache
27-
BASEDIR: ${{ github.workspace }}/.work
28-
CACHE_PREFIX: ${{ matrix.ROS_DISTRO }}-${{ matrix.ROS_REPO }}-binary
2926
steps:
3027
- uses: actions/checkout@v1
31-
# The target directory cache doesn't include the source directory because
32-
# that comes from the checkout. See "prepare target_ws for cache" task below
33-
- name: cache target_ws
34-
if: ${{ ! matrix.env.CCOV }}
35-
uses: pat-s/[email protected]
36-
with:
37-
path: ${{ env.BASEDIR }}/target_ws
38-
key: target_ws-${{ env.CACHE_PREFIX }}-${{ hashFiles('**/CMakeLists.txt', '**/package.xml') }}-${{ github.run_id }}
39-
restore-keys: |
40-
target_ws-${{ env.CACHE_PREFIX }}-${{ hashFiles('**/CMakeLists.txt', '**/package.xml') }}
41-
- name: cache ccache
42-
uses: pat-s/[email protected]
43-
with:
44-
path: ${{ env.CCACHE_DIR }}
45-
key: ccache-${{ env.CACHE_PREFIX }}-${{ github.sha }}-${{ github.run_id }}
46-
restore-keys: |
47-
ccache-${{ env.CACHE_PREFIX }}-${{ github.sha }}
48-
ccache-${{ env.CACHE_PREFIX }}
4928
- uses: 'ros-industrial/industrial_ci@master'
5029
env:
5130
ROS_DISTRO: ${{ matrix.ROS_DISTRO }}
5231
ROS_REPO: ${{ matrix.ROS_REPO }}
53-
- name: prepare target_ws for cache
54-
if: ${{ always() && ! matrix.env.CCOV }}
55-
run: |
56-
du -sh ${{ env.BASEDIR }}/target_ws
57-
sudo find ${{ env.BASEDIR }}/target_ws -wholename '*/test_results/*' -delete
58-
sudo rm -rf ${{ env.BASEDIR }}/target_ws/src
59-
du -sh ${{ env.BASEDIR }}/target_ws

0 commit comments

Comments
 (0)