Skip to content

chore: Split go lock file - #2729

Open
thompson-tomo wants to merge 3 commits into
open-telemetry:mainfrom
thompson-tomo:split-go-lock
Open

thompson-tomo wants to merge 3 commits into
open-telemetry:mainfrom
thompson-tomo:split-go-lock

Conversation

@thompson-tomo

Copy link
Copy Markdown
Contributor

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.

@yuminn-k yuminn-k left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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?

@thompson-tomo

Copy link
Copy Markdown
Contributor Author

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.

@wpessers

wpessers commented Nov 19, 2026 •

Copy link
Copy Markdown
Member

Is the go bump from #2710 actually fixed by this? prometheus was added to the rule that only matches digest updates. That works for kube-openapi because it's pinned to a pseudo-version, but prometheus is on a tagged version, so v0.315.1 -> v0.316.0 is a regular version update and the rule won't match it. From what I can tell #2710 would still bump go 1.26.0 to go 1.26.7.

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.

@thompson-tomo

thompson-tomo commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor Author

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.

@thompson-tomo thompson-tomo moved this from Todo to Need more Approval in Lambda Triage Nov 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Need more Approval

Development

Successfully merging this pull request may close these issues.

3 participants