Skip to content

fix: Address go:generate flakiness by locally vendoring the used templates#15

Merged
polds merged 2 commits intomainfrom
COP-1530/fix-ci
Jul 22, 2025
Merged

fix: Address go:generate flakiness by locally vendoring the used templates#15
polds merged 2 commits intomainfrom
COP-1530/fix-ci

Conversation

@polds
Copy link
Copy Markdown
Contributor

@polds polds commented Jul 22, 2025

This addresses an issue where go:generate sometimes fails during CI due to a 403. The cause comes from the gowrap binary fetching the template from the gowrap repo. The fix just vendors those templates locally.

@polds polds force-pushed the COP-1530/fix-ci branch from d89d708 to 0194258 Compare July 22, 2025 01:38
@polds polds marked this pull request as ready for review July 22, 2025 01:45
Copilot AI review requested due to automatic review settings July 22, 2025 01:45
@polds polds requested a review from a team as a code owner July 22, 2025 01:45
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR addresses CI flakiness by locally vendoring gowrap templates instead of fetching them from remote URLs during go:generate execution. The change prevents 403 errors that occur when the gowrap binary attempts to fetch templates from the gowrap repository during CI runs.

  • Vendors timeout and retry templates locally in the internal/adapter/helm/templates/ directory
  • Updates go:generate directives to reference local template files instead of remote URLs
  • Updates generated file headers to reflect the new local template paths

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
internal/adapter/helm/templates/timeout Adds locally vendored timeout template for gowrap code generation
internal/adapter/helm/templates/retry Adds locally vendored retry template for gowrap code generation
internal/adapter/helm/helm_timeout_gen.go Updates template reference in generated file header to point to local path
internal/adapter/helm/helm_retry_gen.go Updates template reference in generated file header to point to local path
internal/adapter/helm/helm.go Updates go:generate directives to use local template files

@polds polds enabled auto-merge (squash) July 22, 2025 01:46
Copy link
Copy Markdown
Contributor

@scheibinger scheibinger left a comment

Choose a reason for hiding this comment

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

Thanks for that 🙌

@polds polds merged commit d115a6c into main Jul 22, 2025
7 checks passed
@polds polds deleted the COP-1530/fix-ci branch July 22, 2025 08:59
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