-
Notifications
You must be signed in to change notification settings - Fork 18k
x/tools: add a relui workflow to automate goimports stdlib regeneration #54377
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
Comments
Change https://go.dev/cl/436515 mentions this issue: |
Change https://go.dev/cl/442157 mentions this issue: |
…lib regeneration Add a new task in addSingleReleaseWorkflow that creates the stdlib regeneration CL for each Go release using func CreateUpdateStdlibIndexCL in VersionTasks. CreateUpdateStdlibIndexCL fetches the latest go binaries, downloads the latest version of tools repo, and submit a CL whose diff is created by regenerating stdlib with `go generate ./internal/imports`. For golang/go#54377. Change-Id: I3d95a88def984dd677d49f38587bed298b3aeaea Reviewed-on: https://go-review.googlesource.com/c/build/+/442157 Reviewed-by: Heschi Kreinick <heschi@google.com> Run-TryBot: Dylan Le <dungtuanle@google.com> TryBot-Result: Gopher Robot <gobot@golang.org>
Change https://go.dev/cl/448715 mentions this issue: |
For golang/go#54377 Change-Id: I7a2a4f3592a9386faa3ebc63df1b6dbbc1c6c0a2 Reviewed-on: https://go-review.googlesource.com/c/build/+/448715 TryBot-Result: Gopher Robot <gobot@golang.org> Run-TryBot: Dylan Le <dungtuanle@google.com> Reviewed-by: Heschi Kreinick <heschi@google.com>
Change https://go.dev/cl/464535 mentions this issue: |
Change https://go.dev/cl/464815 mentions this issue: |
Change https://go.dev/cl/464915 mentions this issue: |
CL 442157 added a task at the end of the major Go release workflow to mail a CL to x/tools. There were 3 new fields added to VersionTasks, but cmd/relui only set one of them, which caused the task not to work during the Go 1.20 release (go.dev/issue/58227). Due to an unrelated issue in cmd/relui (go.dev/issue/58228), we didn't get the opportunity to fix up the task and restart it, so it was skipped. Set the 2 missing fields in cmd/relui, and add a temporary workflow to trigger (and test out) the new functionality after the Go 1.20 release. Also apply a few minor refinements to CreateUpdateStdlibIndexCL. Remove the unused branch parameter, and avoid GetCurrentMajor to determine the current major version. GetCurrentMajor will change its report from N to N+1 sometime during the major Go release, after the tags are published. We already know the major version in the workflow. Fixes golang/go#58227. For golang/go#54377. Change-Id: I6377cdf051e4ea8628a88ac3f7eaf70651b34f72 Reviewed-on: https://go-review.googlesource.com/c/build/+/464815 Reviewed-by: Carlos Amedee <carlos@golang.org> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org> Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org> Reviewed-by: Robert Findley <rfindley@google.com> TryBot-Result: Gopher Robot <gobot@golang.org>
#38706 is a task that must be completed by the tools team for each Go release. It involves a minor edit and running
go generate ./internal/imports
within x/tools. In other words, it is an automation that should be straightforward to implement in the release team's relui workflow system, by defining a new task that creates the requisite CL.Since we're interested in using relui for other automation, this seems like a good place to start.
CC @golang/tools-team
The text was updated successfully, but these errors were encountered: