Skip to content

Fix Go cache in CI workflows by adding cache-dependency-path#4575

Merged
efiacor merged 2 commits into
kptdev:mainfrom
Nordix:fix-ci-go-cache
Jun 10, 2026
Merged

Fix Go cache in CI workflows by adding cache-dependency-path#4575
efiacor merged 2 commits into
kptdev:mainfrom
Nordix:fix-ci-go-cache

Conversation

@aravindtga

Copy link
Copy Markdown
Contributor

Fix Go cache in CI workflows by adding cache-dependency-path

Description

The actions/setup-go cache has been failing silently across all CI workflows with:

Restore cache failed: Dependencies file is not found in /home/runner/work/kpt/kpt. Supported file pattern: go.mod

This happens because kpt checks out to a custom GOPATH (go/src/github.com/kptdev/kpt/) rather than the repo root, so setup-go can't auto-discover the go.mod file for cache key generation.

Fix

Added cache-dependency-path: go/src/github.com/kptdev/kpt/go.sum to all setup-go steps that have cache: true.

Workflows updated

  • go.yml (2 jobs)
  • e2eEnvironment.yml
  • live-e2e.yml
  • verifyContent.yml
  • release.yml

Skipped verifyDocumentation.yml (has cache: false).

AI Disclosure

  • This PR was authored with AI assistance Kiro CLI.

@aravindtga aravindtga self-assigned this Jun 5, 2026
@netlify

netlify Bot commented Jun 5, 2026

Copy link
Copy Markdown

Deploy Preview for kptdocs ready!

Name Link
🔨 Latest commit 69aee7f
🔍 Latest deploy log https://app.netlify.com/projects/kptdocs/deploys/6a22f0d375c666000808dea4
😎 Deploy Preview https://deploy-preview-4575--kptdocs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

Signed-off-by: Aravindhan Ayyanathan <aravindhan.a@est.tech>
@aravindtga aravindtga requested a review from Copilot June 5, 2026 15:28

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

This PR updates multiple GitHub Actions workflows to improve Go module caching behavior and refresh copyright headers.

Changes:

  • Add cache-dependency-path pointing at go.sum for actions/setup-go caching.
  • Update/normalize copyright headers (years/punctuation).

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
.github/workflows/verifyContent.yml Add Go cache dependency path; update header year list.
.github/workflows/release.yml Add Go cache dependency path; update header year list.
.github/workflows/live-e2e.yml Add Go cache dependency path; update header year list.
.github/workflows/go.yml Add Go cache dependency path in multiple jobs; adjust header punctuation.
.github/workflows/e2eEnvironment.yml Add Go cache dependency path; update header year list.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/live-e2e.yml Outdated
Comment thread .github/workflows/verifyContent.yml
Signed-off-by: Aravindhan Ayyanathan <aravindhan.a@est.tech>
@aravindtga aravindtga marked this pull request as ready for review June 5, 2026 15:57
Copilot AI review requested due to automatic review settings June 5, 2026 15:57
@dosubot dosubot Bot added size:XS This PR changes 0-9 lines, ignoring generated files. area/devops go Pull requests that update Go code labels Jun 5, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Comment thread .github/workflows/live-e2e.yml
Comment thread .github/workflows/verifyContent.yml
@dosubot dosubot Bot added the lgtm label Jun 10, 2026
@efiacor efiacor merged commit 21e652b into kptdev:main Jun 10, 2026
12 checks passed
@efiacor efiacor deleted the fix-ci-go-cache branch June 10, 2026 08:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/devops go Pull requests that update Go code lgtm size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants