Skip to content

Commit 3e4ca01

Browse files
denikIsaac
andauthored
ci: Reuse the Go cache that main saves in the regression-report workflow (#7119)
Follow-up to #7105 (added the regression-report workflow) and #7108 (authenticated the latest release lookup). The workflow used its own cache key, which is only written by runs on main. It never runs on main, so every run started with a cold Go cache. Restore the key that the Linux test job saves instead. A full run goes from 505-587s to 292s, a run with no acceptance changes from 370s to 196s. This pull request and its description were written by Isaac. --------- Co-authored-by: Isaac <no-reply@databricks.com>
1 parent 8743718 commit 3e4ca01

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎.github/workflows/regression-report.yml‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ jobs:
3434
- name: Setup build environment
3535
uses: ./.github/actions/setup-build-environment
3636
with:
37-
cache-key: regression-report
37+
# The Go cache is only saved by runs on main, and this workflow never runs there,
38+
# so it reuses the key push.yml saves for its Linux test job.
39+
cache-key: test-direct
3840

3941
# `git diff --merge-base origin/main` needs origin/main and enough history. This must run
4042
# AFTER setup-build-environment, whose own checkout would re-shallow the repo.

0 commit comments

Comments
 (0)