x/build/maintner/maintnerd/maintapi: improve heuristic for determining Go version in development #42377
Labels
Builders
x/build issues (builders, bots, dashboards)
FrozenDueToAge
NeedsFix
The path to resolution is known, but the work has not been done.
Milestone
Running
maintq try-work
currently reports entries like:Note that the Go release branches "release-branch.go1.15" and "release-branch.go1.14" correspond to Go versions 1.15 and 1.14, which is accurate. However, the branch "master" (commit e1b305a) is reported to be Go version 1.15. It should be Go 1.16.
We're currently relying on a very simple heuristic for determining the Go version of the "master" branch, which is to take the version of the latest Go release. A much better heuristic is to report that branch (and any other non-release branch, like "dev.link") to be Go X.(Y+1).
There's room for improvement to precision here by reading the
internal/goversion
package in the git tree (issue #42376), but as a smaller step let's just make the current simple heuristic better. This is a piece needed to make a Go 1.16+ TryBot added in #42341 work.CC @golang/release.
The text was updated successfully, but these errors were encountered: