Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Let renovate update Go toolchain in a single PR #1259

Merged
merged 5 commits into from
Jul 20, 2023

Conversation

mtardy
Copy link
Member

@mtardy mtardy commented Jul 20, 2023

Fixes #1169.

It was way more complicated than initially thought and it took me something like 2 days asynchronously to debug/test on the fork. The result should be as fancy as this PR on the fork https://github.com/mtardy/tetragon/pull/63/files.

@mtardy mtardy added the area/ci Related to CI label Jul 20, 2023
@mtardy mtardy requested review from willfindlay and a team as code owners July 20, 2023 14:33
@netlify
Copy link

netlify bot commented Jul 20, 2023

Deploy Preview for tetragon ready!

Name Link
🔨 Latest commit 59d8031
🔍 Latest deploy log https://app.netlify.com/sites/tetragon/deploys/64b945c264de3500070a6235
😎 Deploy Preview https://deploy-preview-1259--tetragon.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

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

mtardy added 5 commits July 20, 2023 16:34
Cilium builder was an unnecessary image in which we could not
pre-determine the Go version inside. We can just use the standard
docker.io/library/golang images and update all go version with renovate.

Signed-off-by: Mahe Tardy <mahe.tardy@gmail.com>
Also rework package rule to group workflows updates. The rule was
picking up all updates to the workflows while it was intended only at
updates from the github-actions managers. It generated a really weird
behavior when I needed renovate to upgrade go-versions used in the
workflows.

Signed-off-by: Mahe Tardy <mahe.tardy@gmail.com>
Signed-off-by: Mahe Tardy <mahe.tardy@gmail.com>
For that, simplify the image used and use a regex to update it.

Signed-off-by: Mahe Tardy <mahe.tardy@gmail.com>
Also run go mod vendor after a go.mod directive update.

Signed-off-by: Mahe Tardy <mahe.tardy@gmail.com>
@mtardy mtardy force-pushed the pr/mtardy/renovate-update-go branch from 59d8031 to 2ac15c7 Compare July 20, 2023 14:34
Copy link
Contributor

@kkourt kkourt left a comment

Choose a reason for hiding this comment

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

Regexes seem tricky, but what can you do? :)

@mtardy
Copy link
Member Author

mtardy commented Jul 20, 2023

How will the CI god punish me this time? Time to merge!! 🚢

@mtardy mtardy merged commit c4ca878 into cilium:main Jul 20, 2023
mtardy added a commit that referenced this pull request Oct 11, 2023
PR #1536 broke "renovate update Go toolchain in a single PR" from #1259.

From cilium/cilium@2f7e2f3:
According to [1] as of Go 1.21 we either need to specify the full
toolchain version in the `go` directive or add a `toolchain` directive
with the concrete toolchain version. Opt for the former and make sure
it's kept up to date by renovate bot.

[1] golang/go#62278 (comment)

Signed-off-by: Mahe Tardy <mahe.tardy@gmail.com>
mtardy added a commit that referenced this pull request Oct 11, 2023
PR #1536 broke "renovate update Go toolchain in a single PR" from #1259
because in the actual state it could only bump the go directive from
minor versions, not bumping the patch needed by the workflows github
actions reading that version.

From cilium/cilium@2f7e2f3:
According to [1] as of Go 1.21 we either need to specify the full
toolchain version in the `go` directive or add a `toolchain` directive
with the concrete toolchain version. Opt for the former and make sure
it's kept up to date by renovate bot.

[1] golang/go#62278 (comment)

Signed-off-by: Mahe Tardy <mahe.tardy@gmail.com>
mtardy added a commit that referenced this pull request Oct 11, 2023
PR #1536 broke "renovate update Go toolchain in a single PR" from #1259
because in the actual state it could only bump the go directive from
minor versions, not bumping the patch needed by the workflows github
actions reading that version.

From cilium/cilium@2f7e2f3:
According to [1] as of Go 1.21 we either need to specify the full
toolchain version in the `go` directive or add a `toolchain` directive
with the concrete toolchain version. Opt for the former and make sure
it's kept up to date by renovate bot.

[1] golang/go#62278 (comment)

Signed-off-by: Mahe Tardy <mahe.tardy@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ci Related to CI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Let renovatebot update Go toolchain in a single PR
3 participants