go: x/build: missing LUCI TryBot coverage for x/telemetry
Go version
9819d8265f92e0797df646f9a7056bb979d0005b
Output of go env in your module/workspace:
N/A
What did you do?
See #65544.
What did you see happen?
https://go.dev/cl/560462 had a TryBot+1 vote from LUCI, but introduced deterministic failures on two first class ports (linux/386 and windows/386).
What did you expect to see?
I expect all user-facing x/ repos to have TryBots configured for at least all of the first class ports that have scalable builders.
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 18 (18 by maintainers)
Commits related to this issue
- godev/cmd/telemetrygodev: skip tests in unintended environments golang.org/x/telemetry/godev is a module that hosts code for the telemetry.go.dev service. This module is not intended to work standalo... — committed to golang/telemetry by hyangah 3 years ago
- counter: add illumos to the unsupported platform list For golang/go#65544 For golang/go#65549 Change-Id: Icb8d598e419e6b34c184642a851a699be8b76382 Reviewed-on: https://go-review.googlesource.com/c/t... — committed to golang/telemetry by hyangah 3 years ago
- main.star: mark x/telemetry as a PT.CORE repository Issue golang/go#65549 requests enabled linux-386 and windows-386 builders in presubmit for x/telemetry, and later also requests lining up presubmit... — committed to golang/build by mknyszek 3 years ago
- main.star: regenerate, and update README There've been a few minor configuration changes in between CL 562536 being authored and submitted. Regenerate so that their effects apply in the recently adde... — committed to golang/build by dmitshur 3 years ago
- counter: replace build tags with telemetry.DisabledOnPlatform For golang/go#65549 Change-Id: Ibdec1f108cfecd9276ff60b85f155c0e89363474 Reviewed-on: https://go-review.googlesource.com/c/telemetry/+/5... — committed to golang/telemetry by hyangah 3 years ago
- main.star: expand presubmit with go1.21/1.22 for x repos For go1.21 and go1.22, x repo presubmit runs only on linux-amd64 builder type. For golang/go#65549 For golang/go#17525 Change-Id: I357d679e7... — committed to golang/build by hyangah 3 years ago
Here’s the gist of the extra work required.
The build “script” (
golangbuild) controls module discovery and test execution on those modules. Builder configurations are repo-level, so the “script” needs to be told what to do. Perhaps the repo is by default tested on all platforms, and all modules get tested on all platforms by default. However, in the builder configuration, you can list modules as well as a platform allowlist.Concrete implementation steps:
golangbuild’s input properties that is a mapping from module name to a list of platforms.golangbuild’s module discovery, if a module with a matching name is discovered, we check the current platform against the allowlist to decide whether to execute the tests.Leaving this for either a release rotation member or if someone from the tools team wants to take a stab at it, since I don’t think I’ll have time to work on this until at least after the migration.
Happy to help guide anyone through the process and share knowledge. This would be a decent starter project for getting more familiar with some of the LUCI specifics.
We can skip tests manually for now, but it would be really useful if there were an easy way to customize builders per module. For example, x/tools/gopls does not need to run on Android, and x/pkgsite does not need to run on anything but linux (but x/pkgsite/cmd/pkgsite will need to run on everything).
I think both the request in this issue and the follow-on request to run all Go repo presubmit bots should be very straightforward to do.
If possible, I think x/telemetry should also have a number of misc-compile builders for platforms where it may be dormant but still needs to compile. Is that something we can easily add in LUCI?