Skip to content

Commit d56c866

Browse files
authored
Disabling cache in the setup-go steps of CI/CD (#8147)
# Description Because the cache already exists on the GitHub runners we use, disabling cache in the setup-go steps of our CI/CD pipelines is expected solve the issue of seeing bunch of logs that say "**cannot open: file exists**". The official documentation of setup-go and the part that is relevant: https://github.com/actions/setup-go#caching-dependency-files-and-build-outputs. This points out that setup-go does caching for us. If the cache is already there, we will get all the logs in our workflows. There is no disadvantage of this approach, as far as I know, since the cache is already there. I actually ran into this [comment](actions/setup-go#403 (comment)) that says that disabling cache in setup-go step improved the speed of the said step. We can always update our workflows if we see any other disadvantages. Our runners: https://github.com/radius-project/radius/actions/runners. References: - actions/setup-go#403 - actions/setup-go#403 (comment) - actions/setup-go#314 (comment) ## Type of change - This pull request fixes a bug in Radius and has an approved issue (issue link required). Fixes: #7790 ## Contributor checklist Please verify that the PR meets the following requirements, where applicable: - [ ] An overview of proposed schema changes is included in a linked GitHub issue. - [ ] A design document PR is created in the [design-notes repository](https://github.com/radius-project/design-notes/), if new APIs are being introduced. - [ ] If applicable, design document has been reviewed and approved by Radius maintainers/approvers. - [ ] A PR for the [samples repository](https://github.com/radius-project/samples) is created, if existing samples are affected by the changes in this PR. - [ ] A PR for the [documentation repository](https://github.com/radius-project/docs) is created, if the changes in this PR affect the documentation or any user facing updates are made. - [ ] A PR for the [recipes repository](https://github.com/radius-project/recipes) is created, if existing recipes are affected by the changes in this PR. Signed-off-by: ytimocin <[email protected]>
1 parent f714348 commit d56c866

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

.github/actions/setup-rad-cli/action.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ runs:
77
uses: actions/setup-go@v5
88
with:
99
go-version: ${{ env.GOVER }}
10+
cache: false
1011
- name: Get Go Cache path
1112
shell: bash
1213
id: go-cache-paths

.github/workflows/functional-test-cloud.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -493,6 +493,7 @@ jobs:
493493
uses: actions/setup-go@v5
494494
with:
495495
go-version: ${{ env.GOVER }}
496+
cache: false
496497

497498
- name: Get Go Cache path
498499
id: go-cache-paths

.github/workflows/functional-test-noncloud.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@ jobs:
179179
uses: actions/setup-go@v5
180180
with:
181181
go-version: ${{ env.GOVER }}
182+
cache: false
182183

183184
- name: Get Go Cache path
184185
id: go-cache-paths

0 commit comments

Comments
 (0)