-
Notifications
You must be signed in to change notification settings - Fork 17.7k
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
x/build: add x/tools trybot for main Go repository #34348
Comments
Just wanted to chime in here to say that this would be extremely helpful for people developing in x/tools. |
@stamblerre, look at x/build/cmd/coordinator and where the recent slowbots code hooks and modifies the try set. I suspect this would also live there. We'd just add a build that's for "tools" instead of "go". There's a func getRepoHead that'll tell you which git rev of x/tools to use. While I agree we should include x/tools by default, I also think the slowbots should let us opt in to testing any x/ repo. Maybe |
Change https://golang.org/cl/203677 mentions this issue: |
This change adds support for user-invoked TryBots through the new TRY= syntax. If the user comments TRY=x/foo on a CL to the Go repository, the linux-amd64 builder will run at head for that repository. Updates golang/go#34348 Change-Id: I0e7f470329866969586057501034385596e5caa0 Reviewed-on: https://go-review.googlesource.com/c/build/+/203677 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
Change https://golang.org/cl/203917 mentions this issue: |
This change also adds a test for the (*buildStatus).NameAndBranch method. It also specifies which x/ repo TryBots ran for a given change. Finally, it fixes the error of specifying which Go commit to run the x/ repos with. Updates golang/go#34348 Change-Id: Ib63fa6948c3798a85174b382de38f2bc159b3347 Reviewed-on: https://go-review.googlesource.com/c/build/+/203917 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
As of https://golang.org/cl/203917, you should now be able to comment "TRY=x/tools" on CLs that may be relevant to changes in x/tools (see https://golang.org/cl/201203 as an example). @jayconrod and @bcmills: do you mind testing this out on your next few CLs to see if it works well for you? The next step would be to trigger it by default when certain directories or files are changed. |
Change https://golang.org/cl/204199 mentions this issue: |
I think we're in favor of always including x/tools as described in the original issue, so I'll update the status to NeedsFix. We can always revisit this decision and adjust it if it turns out to be more noisy than helpful. |
This change adds support for user-invoked TryBots through the new TRY= syntax. If the user comments TRY=x/foo on a CL to the Go repository, the linux-amd64 builder will run at head for that repository. Updates golang/go#34348 Change-Id: I0e7f470329866969586057501034385596e5caa0 Reviewed-on: https://go-review.googlesource.com/c/build/+/203677 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
This change also adds a test for the (*buildStatus).NameAndBranch method. It also specifies which x/ repo TryBots ran for a given change. Finally, it fixes the error of specifying which Go commit to run the x/ repos with. Updates golang/go#34348 Change-Id: Ib63fa6948c3798a85174b382de38f2bc159b3347 Reviewed-on: https://go-review.googlesource.com/c/build/+/203917 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
Fixes golang/go#34348 Change-Id: I29db60f90f4eb37a37673bb854ae215e1b0c68a9 Reviewed-on: https://go-review.googlesource.com/c/build/+/204199 Run-TryBot: Rebecca Stambler <rstambler@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
As @jayconrod suggested in #34321 (comment), I think we should add an x/tools trybot builder for the main Go repository. It would check whether x/tools tests on master branch pass with the Go CL being tested. We can use
linux-amd64
builder type since it's quick and least expensive.The Go standard library ships with many packages such as
go/parser
,go/types
, and others. The x/tools repository has many tests that provide additional test coverage.Trybots for the main Go repository already take 5-10 minutes to run, while the x/tools tests take less than 5 minutes, so it wouldn't slow anything down, just provide more test coverage.
/cc @bradfitz @andybons @toothrot
The text was updated successfully, but these errors were encountered: