Repository navigation
chore: Split go lock file - #2729
thompson-tomo wants to merge 3 commits into
Conversation
yuminn-k
left a comment
There was a problem hiding this comment.
I checked the new rules against the Renovate docs and they look right to me: the new groups come after collector-other, so they take over the aws/golang direct deps, and the negated patterns keep the indirect ones out of the lock file group. The limit bump also makes sense, the dashboard currently shows 4 lock file branches as rate-limited.
One thing though: I don't think this stops the go bump in #2710. Looking at the go.mod of each module that PR updates, the only one that needs more than go 1.26.0 is github.com/prometheus/prometheus v0.316.0, which declares go 1.26.7. prometheus isn't matched by the new aws/golang patterns, so it stays in the lock file group and that PR would still bump go. constraintsFiltering won't catch it either: per the gomod manager docs, go 1.26.0 is treated as ^1.26.0. Maybe prometheus needs a targeted rule, like the kube-openapi one added in #2690?
|
Thanks @yuminn-k for identifying the cause of the bump & as such i have added an exclusion which i had planned to investigate after the split. |
|
Is the go bump from #2710 actually fixed by this? prometheus was added to the rule that only matches Would something like this in a separate rule do it instead? {
matchPackageNames: ['github.com/prometheus/prometheus'],
allowedVersions: '<0.316.0',
},Might be undesirable? It looks ugly to have to do that but I don't immediately see an alternative. |
|
So on thinking about this some more, i don't think it is going to be possible to have a manageable solution to control the patch version especially considering that otel allows the patch to be bumped. The biggest difficulty we have is that components depend on the main go.mod which can be bumped. Ideally we would decouple this so a bump in the main go.mod doesn't cascade to components. As such rule to disable certain updates has been removed. |
Currently the go lock file pr’s often get quite big & updates often bump the go version however this go bumping is undesired. To enable the lock file pr to be better focussed, aws & golang updates are split into dedicated pr’s just like otel.
As potential PR qty is now higher, the concurrent limit is increased.