Repository navigation
ci: push the regenerated code on Renovate branches with go-generated (MK8S-516) - #82
Merged
Merged
Conversation
A controller-gen bump changes the CRDs, so its Renovate PR needed a human commit. The shared workflow regenerates in agent/ and pushes it. Refs: MK8S-516
ezekiel-alexrod
requested review from
anthony-treuillier-scality and
eg-ayoub
November 26, 2026 12:00
anthony-treuillier-scality
approved these changes
Nov 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
go-generatedjob of scality/workflows now runs inagent/. On a Renovate branch, it pushes the regenerated code itself.Problem
Renovate bumps controller-tools here (
CONTROLLER_TOOLS_VERSIONinagent/Makefile). A new controller-gen changes the CRDs, so thetestjob fails on its tree check until someone runsmake manifests generateand pushes on the Renovate branch. The shared workflow (scality/workflows#115, scality/workflows#117) runs the generators without a write token, then pushes the result with a GitHub App token in a separate job. It already did so on scality/loadbalancer-operator#129 for the same controller-tools bump.This is also the first step of the automerge pilot on this repo: a Renovate PR must not need a human commit.
Review guide
.github/workflows/pre-merge.yaml, then one sentence inCONTRIBUTING.md. The workflow is pinned by SHA on itsv2.13.0release.What changes
go-generatedjob, withworking-directory: agent: it runsgo mod tidy,go generate ./...andmake manifests generate, and fails on a diff.go mod tidywas not checked before.renovate/*branch of this repo, it pushes the regenerated code as the App.testjob stays: it also coversgo fmt.Testing
agent/onmain(Go 1.27.4)bin/ignoredOut of scope
Refs: MK8S-516