Skip to content

Commit

Permalink
internal/ci: remove the cachePost steps
Browse files Browse the repository at this point in the history
On a daily basis we evict our GitHub actions caches complete, and
repopulate using a re-run of the TryBot workflow of the tip commit (at
the time of the eviction).

Therefore, any attempt to manually prune the cache is pointless.

Hence remove the cachePost step(s).

Signed-off-by: Paul Jolly <paul@myitcv.io>
Change-Id: Ibf7473e9cff9cedca4104a70eabcb9325a3d08a1
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/551474
Unity-Result: CUEcueckoo <cueckoo@cuelang.org>
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
  • Loading branch information
myitcv committed Mar 23, 2023
1 parent 3121a27 commit 6843415
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 7 deletions.
1 change: 0 additions & 1 deletion .github/workflows/trybot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -167,4 +167,3 @@ jobs:
echo "giving up after a number of retries"
exit 1
- run: find '${{ steps.go-mod-cache-dir.outputs.dir }}/cache/download' '${{ steps.go-cache-dir.outputs.dir }}' -type f -amin +7200 -delete -print
1 change: 0 additions & 1 deletion internal/ci/github/trybot.cue
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ trybot: _base.#bashWorkflow & {
_#goCheck,
_base.#checkGitClean,
_#pullThroughProxy,
_#cachePost,
]
}
}
Expand Down
5 changes: 0 additions & 5 deletions internal/ci/github/workflows.cue
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,3 @@ _#cachePre: [
}
},
]

_#cachePost: json.#step & {
let qCacheDirs = [ for v in _#cacheDirs {"'\(v)'"}]
run: "find \(strings.Join(qCacheDirs, " ")) -type f -amin +7200 -delete -print"
}

0 comments on commit 6843415

Please sign in to comment.