Skip to content

fix(ci): enable go cache#6696

Merged
hanabi1224 merged 1 commit intomainfrom
hm/ci-go-cache
Mar 5, 2026
Merged

fix(ci): enable go cache#6696
hanabi1224 merged 1 commit intomainfrom
hm/ci-go-cache

Conversation

@hanabi1224
Copy link
Copy Markdown
Contributor

@hanabi1224 hanabi1224 commented Mar 5, 2026

Summary of changes

Previouly, we don't have go.mod under the repo root thus the go cache is not properly enabled.

https://github.com/actions/setup-go/blob/main/docs/advanced-usage.md#caching-in-multi-module-repositories

Changes introduced in this pull request:

Reference issue to close (if applicable)

Closes

Other information and links

Change checklist

  • I have performed a self-review of my own code,
  • I have made corresponding changes to the documentation. All new code adheres to the team's documentation standards,
  • I have added tests that prove my fix is effective or that my feature works (if possible),
  • I have made sure the CHANGELOG is up-to-date. All user-facing changes should be reflected in this document.

Outside contributions

  • I have read and agree to the CONTRIBUTING document.
  • I have read and agree to the AI Policy document. I understand that failure to comply with the guidelines will lead to rejection of the pull request.

Summary by CodeRabbit

  • Chores
    • Improved CI/CD efficiency by expanding Go dependency caching across build, test, and release workflows—caching now invalidates based on repository module lockfiles to speed repeated runs and reduce redundant dependency fetching.

@hanabi1224 hanabi1224 marked this pull request as ready for review March 5, 2026 11:17
@hanabi1224 hanabi1224 requested a review from a team as a code owner March 5, 2026 11:17
@hanabi1224 hanabi1224 requested review from LesnyRumcajs and akaladarshi and removed request for a team March 5, 2026 11:17
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Mar 5, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: e5779969-1962-46f6-9902-4dd79a14876e

📥 Commits

Reviewing files that changed from the base of the PR and between 207d07c and e48b5b0.

📒 Files selected for processing (4)
  • .github/workflows/forest.yml
  • .github/workflows/release.yml
  • .github/workflows/release_dispatch.yml
  • .github/workflows/unit-tests.yml
🚧 Files skipped from review as they are similar to previous changes (4)
  • .github/workflows/release_dispatch.yml
  • .github/workflows/forest.yml
  • .github/workflows/release.yml
  • .github/workflows/unit-tests.yml

Walkthrough

Added cache-dependency-path: "**/go.sum" to multiple actions/setup-go@v6 usages across GitHub Actions workflows to drive Go module cache invalidation based on go.sum changes. Changes touch build, release, and unit-test workflows.

Changes

Cohort / File(s) Summary
GitHub Actions workflows
.github/workflows/forest.yml, .github/workflows/release.yml, .github/workflows/release_dispatch.yml, .github/workflows/unit-tests.yml
Inserted cache-dependency-path: "**/go.sum" into actions/setup-go@v6 with blocks to enable caching keyed by repository go.sum files across build, release, and test jobs.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Possibly related PRs

Suggested labels

github_actions

Suggested reviewers

  • akaladarshi
  • sudo-shashank
  • LesnyRumcajs
🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'fix(ci): enable go cache' accurately and concisely summarizes the main change: adding cache-dependency-path to multiple GitHub Actions workflows to enable Go module caching.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch hm/ci-go-cache

Comment @coderabbitai help to get the list of available commands and usage tips.

LesnyRumcajs
LesnyRumcajs previously approved these changes Mar 5, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 5, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 63.51%. Comparing base (967f83a) to head (e48b5b0).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files

see 12 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 967f83a...e48b5b0. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@hanabi1224 hanabi1224 added this pull request to the merge queue Mar 5, 2026
Merged via the queue into main with commit 6ee5a3f Mar 5, 2026
35 checks passed
@hanabi1224 hanabi1224 deleted the hm/ci-go-cache branch March 5, 2026 12:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants