CI: align release_helm_and_notify Go toolchain with go.work#7552
Conversation
Code Review by Qodo
1. Toolchain resolved before checkout
|
PR Summary by QodoCI: align release_helm_and_notify Go toolchain with go.work WalkthroughsUser Description
- name: Setup Go
uses: actions/setup-go@v6
with:
go-version-file: go.workAI Description• Fix release Helm golden-file updates by aligning Go version with repo workspace. • Configure setup-go to read the toolchain from go.work to avoid branch/version drift. Diagramgraph TD
A["GitHub Actions: docker-release2.yml"] --> B["Job: release_helm_and_notify"] --> C["actions/setup-go@v6"] --> D["Read go.work"] --> E["Update helm chart"] --> F["go test ... -update"]
High-Level AssessmentThe following are alternative approaches to this PR: 1. Pin go-version to 1.25.x in the workflow
2. Re-run setup-go after `git checkout main`
3. Avoid switching branches during the job (use a separate checkout path)
Recommendation: Using File ChangesBug fix (1)
|
🤖 Augment PR SummarySummary: Fixes the 🤖 Was this summary useful? React with 👍 or 👎 |
release_helm_and_notifywas failing while updating Helm chart golden files because the job checked outmain(which requires Go 1.25 viago.work) butsetup-goprovisioned Go 1.24. This updates the workflow to resolve Go from the repository’s workspace config.Root cause
Update helm chartruns aftergit checkout main, then executesgo test ./contrib/charts/dragonfly/... -update.maindeclaresgo 1.25.0ingo.work, but the job was running withgo1.24.13.Workflow change
.github/workflows/docker-release2.yml,release_helm_and_notifynow configuresactions/setup-go@v6withgo-version-file: go.work.Impact