Граф коммитов

2101 Коммитов

Автор SHA1 Сообщение Дата
Andrew Bonventre 6ce37fe068 cmd/coordinator: preserve test logs even if the run fails
This includes trybot runs and post-commit build runs.

Fixes golang/go#34119

Change-Id: I1d078632048c473c09a1b8581d16fd1bd65a1305
Reviewed-on: https://go-review.googlesource.com/c/build/+/198197
Run-TryBot: Andrew Bonventre <andybons@golang.org>
Reviewed-by: Alexander Rakoczy <alex@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
2019-10-01 16:59:53 +00:00
Andrew Bonventre 252a9ee465 devapp: add CL 93515 to deleted list
Updates golang/go#22635

Change-Id: I5dc62ddda0bb54eef0c833a8ea66de3349a7871d
Reviewed-on: https://go-review.googlesource.com/c/build/+/198118
Run-TryBot: Andrew Bonventre <andybons@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Alexander Rakoczy <alex@golang.org>
2019-10-01 14:59:00 +00:00
Dmitri Shuralyov 3b77b3a2ca dashboard: don't test exp on macOS 10.12 Sierra
The exp repository holds experimental and deprecated packages.
Don't test them on a very old version of macOS. There will be
macOS coverage with macOS 10.14.

Fixes golang/go#34578

Change-Id: I9dde7202d26fdeb845378902ff5c077585536213
Reviewed-on: https://go-review.googlesource.com/c/build/+/197858
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
Run-TryBot: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
2019-09-30 18:37:31 +00:00
Andrew Bonventre f7d2ca83a1 devapp: exclude some projects from review dashboard
Also excludes deleted changes.

Change-Id: I490585026d7d8cd9e735328d6c8b041b6fb1ebeb
Reviewed-on: https://go-review.googlesource.com/c/build/+/197300
Run-TryBot: Andrew Bonventre <andybons@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2019-09-30 18:04:18 +00:00
Brad Fitzpatrick 2835ba2e68 cmd/gerritbot: strip x/foo/ PR title prefix when making commit message
Change-Id: I432a2064f6a33b3bec720a8e5cdb1cbdca1a60d8
Reviewed-on: https://go-review.googlesource.com/c/build/+/197537
Reviewed-by: Andrew Bonventre <andybons@golang.org>
Run-TryBot: Andrew Bonventre <andybons@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
2019-09-27 03:13:35 +00:00
Dmitri Shuralyov bc5d3e0073 cmd/tip: use website repo on disk for installing cmd/golangorg
The 'go install golang.org/x/website/cmd/golangorg' command is being
configured with GO111MODULE=on and GOPROXY=https://proxy.golang.org
environment variables, but its directory was not set. As a result,
the main module was an empty module (GOMOD=/dev/null) instead of
the module in the website repository that was just checked out.

Set the working directory of the go install command to websiteDir,
so that the intended website module is used during the build.

Fixes golang/go#34545

Change-Id: If51030494ddb90a63b9d198209a04c5fb328784e
Reviewed-on: https://go-review.googlesource.com/c/build/+/197397
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2019-09-26 15:07:00 +00:00
Dmitri Shuralyov b0180d57c7 cmd/tip: don't install cmd/tip from the internet
Set the working directory in the Dockerfile to be inside the
golang.org/x/build module before running go install on cmd/tip.
Otherwise, it just installs the latest cmd/tip from the internet
rather than the intended local version. (All other Dockerfiles
in x/build had this line, except cmd/tip.)

Remove duplicate and unneeded WORKDIR instruction from two other
Dockerfiles to improve consistency.

Fix a rare race condition setting p.err when os.MkdirAll fails.

Add a log message when a new server has been started successfully
and the side switches. This will make logs easier to read.

Fixes golang/go#34526
Updates golang/go#34192

Change-Id: Iab8124f5c872fb87844e8e2f9b31637ce395f11b
Reviewed-on: https://go-review.googlesource.com/c/build/+/197302
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Benny Siegert <bsiegert@gmail.com>
2019-09-26 15:06:19 +00:00
Brad Fitzpatrick 7b161c0e4e env/linux-ppc64*/osuosl: update NOTES with VM, environment specs
Change-Id: Ia41791b31ef02b534a8e97347f4aa9776e027da8
Reviewed-on: https://go-review.googlesource.com/c/build/+/197277
Reviewed-by: Bryan C. Mills <bcmills@google.com>
2019-09-25 16:40:52 +00:00
yuval b10bd6411c env/freebsd-amd64: add FreeBSD 11.3 image
Change-Id: I7895242a05bd7d642bf33250212cd5e3e717254c
Reviewed-on: https://go-review.googlesource.com/c/build/+/186038
Run-TryBot: Andrew Bonventre <andybons@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Andrew Bonventre <andybons@golang.org>
2019-09-24 23:30:55 +00:00
Colin Nelson 66b0fe69b8 maintner: add option to prefix gcsLogSegments
Can optionally specify a prefix for gcsLogSegments when constructing
a GCSLog. This allows for a single bucket to be used with different
mutation logs scoped to "folders" by the prefix.

It should be noted that the notion of folders is arbitrary as in GCS, objects
are stored in a flat structure but can appear nested when combined with
unix-like paths.

Change-Id: Ia4b3c9d3b9dec7f1cca731f8546d80a64b1889b0
Reviewed-on: https://go-review.googlesource.com/c/build/+/193357
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Chris Broadfoot <cbro@golang.org>
2019-09-23 17:10:46 +00:00
Rebecca Stambler e707fb0ed3 cmd/gopherbot: update link to troubleshooting page
We're moving off of the Wiki and to committed markdown.

Change-Id: I931064bf42cc52d76f2044475a3c1df3edefc71e
Reviewed-on: https://go-review.googlesource.com/c/build/+/196697
Run-TryBot: Rebecca Stambler <rstambler@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
2019-09-20 14:40:23 +00:00
Yury Smolsky 6d21d91eff devapp/owners: remove ysmolsky from the owners
Change-Id: I7abb30753bc2b217ee27e160b1475f2b7da5a380
Reviewed-on: https://go-review.googlesource.com/c/build/+/196477
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2019-09-19 14:17:20 +00:00
Sameer Ajmani 49c4e13476 gopherstats: add -projects flag to restrict to specific Gerrit projects.
By default, gopherstats generates stats for all go.googlesource.com Gerrit
projects, including the Go OSP, protobuf, and gopls. I'd like to restrict focus
to specific projects for use in perf artifacts.

Change-Id: I6ebfa9419386b852f3a24f25e92721be1b6fa6bb
Reviewed-on: https://go-review.googlesource.com/c/build/+/196257
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2019-09-18 19:07:53 +00:00
Dmitri Shuralyov e5813e3ca6 internal/gophers: restore valid Gerrit emails (again)
This is a cherry-pick of CL 135456 that restores Gerrit emails
for some people that were incorrectly changed in CL 165639, with
manual no-op addPerson line merges to address code review comments.

The cherry-pick applied very cleanly with just two minor merge
conflicts: one due to a Filippo's email already being fixed in
CL 176037, and another due to a close new entry.

Add tests to catch this from happening again, until the source
of the problem is resolved in issue golang/go#34259.

Updates golang/go#34259
Updates golang/go#28320
Updates golang/go#31919
Updates golang/go#27517
Updates golang/go#27631

Change-Id: Ia03a2b94403334d3f571ac5623e12d3bfd6f1e4f
Reviewed-on: https://go-review.googlesource.com/c/build/+/195062
Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2019-09-18 18:16:19 +00:00
Matthew Dempsky 08f6ae5e29 cmd/gopherbot: add opt-out from automatic reviewers
Updates golang/go#34362.

Change-Id: I2a1861d7ebb903d0231a7670597467b02d53ac96
Reviewed-on: https://go-review.googlesource.com/c/build/+/196138
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2019-09-18 17:54:13 +00:00
Than McIntosh 452aaf25b0 cmd/gopherbot: avoid auto-assignment of CLs on shared branches
Don't auto-assign reviewers for CLs on shared branches such as
"dev.garbage" or "dev.ssa" -- the presumption is that folks working on
such branches will be familiar enough with development practices that
they can assign their own reviewers.

Change-Id: I196d73d76cb0c6e72dd30f52f9341febff311b7a
Reviewed-on: https://go-review.googlesource.com/c/build/+/196141
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2019-09-18 16:08:04 +00:00
Meng Zhuo e028b37ca7 dashboard: skipsnapshot for linux-mipsle-mengzhuo builder
The connection between linux-mipsle-mengzhuo and the build farm
is not stable and failed the snapshot upload stage, so we have to
skipsnapshot for that.

Updates golang/go#31217

Change-Id: Ic01620ec12254221f93234e8b25749a09f3dbc9c
Reviewed-on: https://go-review.googlesource.com/c/build/+/195977
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
2019-09-18 12:21:46 +00:00
Dmitri Shuralyov 9bc86d7fe9 dashboard: skip testing x/net/http2/h2demo in GOPATH mode
The h2demo command is an internal command that we use to
powers the https://http2.golang.org server, it is not a
package that others import.

It was never tested before golang.org/issue/34361 because it
had a +build h2demo constraint. But that build constraint is
being removed, so explicitly skip testing it in GOPATH mode.

The package is supported only in module mode now, since
it requires third-party dependencies.

Updates golang/go#34361

Change-Id: Ia3870baa10688b83f8400b1a5e13824a1c1b3d3b
Reviewed-on: https://go-review.googlesource.com/c/build/+/196097
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2019-09-18 12:14:54 +00:00
Dmitri Shuralyov 0a1e9f8354 maintner/cmd/maintserve: remove replace directive, add go directive
I've decided it's better not have a local replace directive checked
in to source control, because it makes the x/build module version
used by maintserve less predictable and less clear.

The go.mod file specifies x/build v0.0.0-20190313234014-6d820572de7c,
yet the local replace directive means the actual x/build version
is a moving target if someone builds maintserve inside this module.
However, if they build maintserve from another module that requires
this module, the replace directive wouldn't be used.

Make things simple and clear by removing the local replace directive.
If another version of x/build needs to be used during development of
maintserve, the go.mod file can be modified locally appropriately.
It doesn't need to be checked in.

Change-Id: I544e23e4fa4dfad53a9aa83467a7714011701701
Reviewed-on: https://go-review.googlesource.com/c/build/+/196018
Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Alexander Rakoczy <alex@golang.org>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
2019-09-17 19:58:25 +00:00
Dmitri Shuralyov 34c4c81f49 crfs: delete
CRFS has moved from x/build to https://github.com/google/crfs.

Change-Id: Ib482cf0670a657d4a6238c1ab87f4f1aa78d9338
Reviewed-on: https://go-review.googlesource.com/c/build/+/196020
Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2019-09-17 19:57:51 +00:00
Dmitri Shuralyov da876aaec3 cmd/coordinator: factor out GOPATH dep fetching from runSubrepoTests
The code to fetch golang.org/x/* dependencies has become deeply nested
after additional logic and complexity has been added to runSubrepoTests,
making it harder to read, maintain, and be confident in. Factor it out
into a dedicated and well documented method.

This CL is a pure refactor. The next CL will make changes to simplify
the dependency fetching logic, which becomes easer after it has been
factored out.

Also factor out the code to concatenate multiple errors from
runSubrepoTests into a helper multiError type, and simplify
path.Join("go", "bin", "go") to a constant "go/bin/go".

Fixes golang/go#34247

Change-Id: I4b5775408056723e2e5ab9a84776a11f5069d58a
Reviewed-on: https://go-review.googlesource.com/c/build/+/195277
Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2019-09-17 17:19:14 +00:00
Dmitri Shuralyov 7b90c2e750 cmd/coordinator: find inner modules when testing repos
Previously, we were invoking a single 'go test' run at the repository
root with the import path pattern of 'golang.org/x/{repo}/...'. This
pattern does not match packages that are located in nested modules
in the repository.

Look for go.mod files in all subdirectories of the repository to find
all inner modules. Then, run 'go test' inside each module root, thus
testing all packages in all modules of the repository. If one of the
test invocations fails, keep testing others, and report all failures.

When looking for inner modules, consider only those that have module
path that would not be ignored by the go tool and aren't vendored.
This way, go.mod files inside testdata directories aren't treated as
if they're proper modules.

This is being done only when the tests are running in module mode,
since module boundaries don't exist in GOPATH mode.

Fixes golang/go#32528

Change-Id: I9f8558982885c9955d3b34127c80c485d713b380
Reviewed-on: https://go-review.googlesource.com/c/build/+/194559
Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2019-09-17 16:56:21 +00:00
Benny Siegert 1c6297c7b5 cmd/coordinator: add some more newlines to status page
Change-Id: If868c4755df642c6f900a9cd2d113e0f14953f95
Reviewed-on: https://go-review.googlesource.com/c/build/+/195259
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2019-09-16 15:20:50 +00:00
Andrew Bonventre 0d7c512d74 cmd/gopherbot: update map of deleted CLs to include some from scratch
Updates golang/go#22635
Updates golang/go#28320

Change-Id: I8769dc83187ad1b1b2c1d751818964565f34e6d3
Reviewed-on: https://go-review.googlesource.com/c/build/+/176038
Run-TryBot: Andrew Bonventre <andybons@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
2019-09-13 16:48:49 +00:00
Dmitri Shuralyov 09e36d82d1 internal/gophers: add missing documentation
This is a step towards improving the usability of this package.

Use myself as an example of the types of queries that GetPerson
accepts.

Updates golang/go#27631

Change-Id: I3f4d497eb237958c652e51e03fd2459f0f9df8ef
Reviewed-on: https://go-review.googlesource.com/c/build/+/195064
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2019-09-12 21:11:19 +00:00
Brad Fitzpatrick 9c46470faf app/appengine: automate the hiding of old release branches
Also, because this is the first CL in this package to add tests, add a
helper to return the right template filename depending on the
environment (go test vs prod) so tests don't panic in init.

Fixes golang/go#34097
Updates golang/go#34116

Change-Id: I4b3e83c2417611cfbdc32e27941dbb90687eb509
Reviewed-on: https://go-review.googlesource.com/c/build/+/194643
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
2019-09-12 02:37:49 +00:00
Meng Zhuo 8805279864 dashboard: add linux-mipsle-mengzhuo builder
Updates golang/go#31217

Change-Id: I7bda4f3ddf7dc76bdd974726747621f69a7acfa0
Reviewed-on: https://go-review.googlesource.com/c/build/+/191577
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
2019-09-11 23:57:28 +00:00
Dmitri Shuralyov 01fd299669 dashboard, cmd/coordinator: add controls to skip subrepo dirs in GOPATH mode
This change adds controls to the dashboard package that makes it
possible to skip certain directories in subrepos from being tested
in GOPATH mode.

It uses this control mechanism to skip the gopls directory in x/tools
from being tested in GOPATH mode. That directory and everything inside
is developed with support for module mode only. All other packages
in x/tools continue to be supported both in module and GOPATH modes
for the current and previous releases, as per release policy¹.

¹ https://golang.org/doc/devel/release.html#policy

Fixes golang/go#34190

Change-Id: Icdb4d0e1419f69c84c9a3f9a33727a09a35599f4
Reviewed-on: https://go-review.googlesource.com/c/build/+/194397
Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2019-09-11 23:32:05 +00:00
Dmitri Shuralyov a27854263d cmd/coordinator: apply minor improvements
These are the changes that have been pulled out of the previous CL to
keep it a more pure refactor.

The check for "same repo" is improved to handle the case of two repos
sharing a prefix (e.g., "golang.org/x/foo" and "golang.org/x/foobar").

The Dir field is set to repo root when invoking go list (it shouldn't
have an effect because it's currently done only in GOPATH mode). This
should make it more consistent with a future change that starts calling
go list in module mode for another purpose.

Create new repo variable instead of reusing repo parameter in findDeps.

Change-Id: Iba09fd2c4e9345e58ef885ce8ed4ba2acdfa3df7
Reviewed-on: https://go-review.googlesource.com/c/build/+/194359
Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2019-09-11 23:14:16 +00:00
Dmitri Shuralyov 38a7e03655 cmd/coordinator: split subrepo testing into module and GOPATH modes
There are sufficient differences between the work we need to do
to test a subrepo in module mode and GOPATH mode, that it makes
sense to split it into two linear code paths. (I've tried keeping
it inline, but it led to less readable and harder to change code.)

This change is mostly a refactor with the intentional of not changing
any user-visible behavior. Behavior changes will follow in future CLs;
for now they're added as TODO comments.

The GOPATH mode path remains as before; minor improvements will be
applied in the following commit.

The module mode path is reduced to be empty at this time. The main
subrepo being tested is already fetched earlier, and its dependencies
don't need to be placed into a GOPATH workspace in module mode.

Change-Id: Ibfbe30b5d54ebe26cb5a783f0592f754fecfe53d
Reviewed-on: https://go-review.googlesource.com/c/build/+/194357
Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Alexander Rakoczy <alex@golang.org>
2019-09-11 23:08:42 +00:00
Dmitri Shuralyov 43f0c4da19 cmd/coordinator: detect current build mode in subrepo tests
It will be necessary to know whether the current environment
and configuration has resulted in module mode or GOPATH mode
being selected. Do this dynamically by invoking 'go env GOMOD',
since the outcome depends on the version of Go and its default
GO111MODULE behavior, as well as whether a go.mod file is added
to the subrepo, and what environment overrides were applied by
coordinator via the BuildConfig.ModulesEnv method.

This requires the repository being tested to be available on disk,
so move the step of fetching it to happen earlier.

For now, this change only detects and logs the build mode.
Future changes will use this information further.

Updates golang/go#34190
Updates golang/go#32528
Updates golang/go#30233

Change-Id: I641becaaae5b6cfad22961d8864a877241e61cd3
Reviewed-on: https://go-review.googlesource.com/c/build/+/194277
Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Andrew Bonventre <andybons@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Alexander Rakoczy <alex@golang.org>
2019-09-11 22:25:01 +00:00
Dmitri Shuralyov 9b5ce82b5f cmd/releasebot: add support for major releases
There were a few places in releasebot that assumed the version
being made was a minor release (like go1.2.3) and didn't work
as expected for major releases (like go1.2). This change fixes
those, making releasebot suitable for creating major releases.

Computing the release branch and some of the error checking can
be factored out of doRelease to happen earlier. It's out of scope
for this CL, as it's better suited for a larger refactor later.

Fixes golang/go#34045

Change-Id: Id2204d372043e1fd2afc699d39412677c603f034
Reviewed-on: https://go-review.googlesource.com/c/build/+/193018
Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Alexander Rakoczy <alex@golang.org>
2019-09-10 01:23:21 +00:00
Filippo Valsorda 350e215eca devapp/owners: use gophers.Person.Gerrit
Currently the same as Emails[0], but the gophers package is the right
place to centralize that logic.

Change-Id: I6cc4fd36d76b94d7a4a49c36e3d5a30d6088850c
Reviewed-on: https://go-review.googlesource.com/c/build/+/192102
Run-TryBot: Filippo Valsorda <filippo@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2019-09-09 21:01:29 +00:00
smasher164 a8eba5746d internal/gophers: update email for Akhil Indurti
Change-Id: Id5f349cbb8c2014aefe81762a4b8dce872885763
Reviewed-on: https://go-review.googlesource.com/c/build/+/194358
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2019-09-09 19:53:08 +00:00
Rebecca Stambler 76d9bfc50b cmd/gopherbot: label Tools issues automatically
Automatically label any issues with x/tools in the title. This will make
them easier to search.

Change-Id: Ib2b1b9d6b208d2c0748282a5cdeb8c7705483f61
Reviewed-on: https://go-review.googlesource.com/c/build/+/194360
Run-TryBot: Rebecca Stambler <rstambler@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
2019-09-09 19:50:41 +00:00
Brad Fitzpatrick 3b57102b7c devapp, cmd/gitmirror: remove unnecessary duplication in Dockerfile
And fix gitmirror's build due to missing internal/foreach.

Change-Id: I1a69b7f6680a7cc69947746dad2e5d4627a3122f
Reviewed-on: https://go-review.googlesource.com/c/build/+/194341
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
2019-09-09 19:44:34 +00:00
Andrew Bonventre f8956d102d devapp: update Dockerfile to add missing dependency
Also updates the base image to Go 1.13 and removes the explicit
setting of GOPROXY as it’s not needed anymore in 1.13.

Change-Id: Ifa31fa2e7b1fb0f62f945c4dcea82900437dee85
Reviewed-on: https://go-review.googlesource.com/c/build/+/193878
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Alexander Rakoczy <alex@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2019-09-09 19:25:24 +00:00
Dmitri Shuralyov a2cf19446e cmd/releasebot: set GO111MODULE=off for go get .../cmd/release
We specifically create a temporary GOPATH workspace in order to run
'go get golang.org/x/build/cmd/release' to install the release binary.
This was done with the intention to use GOPATH mode for the build.

Specify GO111MODULE=off explicitly so that GOPATH mode is always
used, regardless of local user configuration. This will produce
more consistent and reproducible results.

Installing the release binary in module mode is future work.

Fixes golang/go#33031

Change-Id: I1df009432be3d0af4e5e7679f38d147901d950e7
Reviewed-on: https://go-review.googlesource.com/c/build/+/193720
Reviewed-by: Alexander Rakoczy <alex@golang.org>
2019-09-06 17:06:15 +00:00
Bryan C. Mills 6e17bfa61e dashboard: remove nonexistent linux-mips builders
These builders haven't existed for a while, and they consume
horizontal space on the build dashboard, pushing more interesting
columns off of the screen at moderate resolutions.

Updates golang/go#31217

Change-Id: Ib7021b699956d01d17e0ea8b213efd07b17d26f7
Reviewed-on: https://go-review.googlesource.com/c/build/+/193017
Run-TryBot: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
2019-09-06 17:02:49 +00:00
Andrew Bonventre fe7cc8bfa5 devapp: update burndown chart to track 1.14 milestone
Change-Id: I3e447c6b3057a66012180dbc11eda29f8db46c7e
Reviewed-on: https://go-review.googlesource.com/c/build/+/193877
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2019-09-06 16:52:26 +00:00
Andrew Bonventre 6905690b3f cmd/releasebot: relax requirements for release documentation check
The current behavior is very strict (one newline after the <p> tag
and no indentation before the release name). Relax these requirements
to only check for "<release name> (released ".

This makes it work for major releases in addition to minor releases.

Change-Id: I541a7d5959f0e00b8a8b471e9ce8440c6253bd3a
Reviewed-on: https://go-review.googlesource.com/c/build/+/193057
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
2019-09-06 16:52:13 +00:00
Dmitri Shuralyov 096efa0abf app/appengine: set GO111MODULE=on for deploy
Deploying in GOPATH mode is not supported, so explicitly specify
GO111MODULE=on to use module mode regardless of local setup.

Fixes golang/go#34107

Change-Id: I5bc2518c4cd4c329eea65684fec96aae5b0bf808
GitHub-Last-Rev: 93f780cd58
GitHub-Pull-Request: golang/build#23
Reviewed-on: https://go-review.googlesource.com/c/build/+/193597
Reviewed-by: Andrew Bonventre <andybons@golang.org>
Reviewed-by: Alexander Rakoczy <alex@golang.org>
2019-09-05 14:53:24 +00:00
Dmitri Shuralyov 5aab5859ae app/appengine: remove Go 1.11 from the dashboard
Per release policy¹, we only support and test the two latest
major versions (currently Go 1.13 and Go 1.12).

Previously:

• CL 164218 removed Go 1.10.
• CL 133895 removed Go 1.9.
• CL 95555 removed Go 1.8.
• CL 77931 removed Go 1.7.
• CL 37466 removed Go 1.6.
• CL 31767 removed Go 1.5.
• CL 20843 removed Go 1.4.

¹ https://golang.org/doc/devel/release.html#policy

Fixes golang/go#34096

Change-Id: I8ac7fcb6527e86706bdb7f140e3f05d3262f2476
Reviewed-on: https://go-review.googlesource.com/c/build/+/193477
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2019-09-05 11:48:09 +00:00
Brad Fitzpatrick 54acf3aeb9 cmd/gopherbot: don't remove NeedsDecision from Go 2 issues
CL 180925 was a bit too aggressive. We've since cleaned up its changes
(see patchset 1 of this CL).

Updates golang/go#31788

Change-Id: I96b8fa4f5cbc158869e4f607aa69be130c0eda75
Reviewed-on: https://go-review.googlesource.com/c/build/+/193120
Reviewed-by: Ian Lance Taylor <iant@golang.org>
2019-09-04 17:01:19 +00:00
Brad Fitzpatrick 136868bd21 cmd/coordinator: follow module proxy redirects
And because this uses new-in-Go1.13 http.Header.Clone, restrict all
the files to Go 1.13+ and bump the Dockerfile Go version.

Fixes golang/go#33928

Change-Id: I147cc4465e393d2c34e59c70edf65f3901a5e132
Reviewed-on: https://go-review.googlesource.com/c/build/+/192341
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
2019-09-04 16:40:22 +00:00
Alexander Rakoczy c07384488c app: update App Engine runtime to go111
Starting October 1, App Engine will not allow apps using the 1.9
runtime to be deployed.

In module mode on go111 AppEngine, paths have changed to be relative to
the go.mod file.

More information can be found at
https://cloud.google.com/appengine/docs/standard/go111/go-differences

Change-Id: I3e291f20559ec8d3c5e8f51b756bd3b23b0c70bd
Reviewed-on: https://go-review.googlesource.com/c/build/+/192103
Run-TryBot: Alexander Rakoczy <alex@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Andrew Bonventre <andybons@golang.org>
2019-09-03 15:21:19 +00:00
Dmitri Shuralyov e21f1db94c cmd/coordinator: move adding health checkers from init to main
Adding health checks at init is inflexible and earlier than neccessary.
It can cause problems for tests that run at the same time. It also
reduces code readability because it's harder to tell the relative order
of events during program initialization.

Instead, make it happen in main and inside relevant tests only.
Also pass a context through to help with cleaning up resources
after tests are done.

Updates golang/go#33949

Change-Id: Ib5ff6d93d200c273f2d344f6dd9179a7ad8e5db7
Reviewed-on: https://go-review.googlesource.com/c/build/+/192377
Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Alexander Rakoczy <alex@golang.org>
2019-08-30 21:14:29 +00:00
Dmitri Shuralyov 638dc400f4 cmd/coordinator, maintner, devapp: factor out foreachLine helpers
It's a good idea to have an allocation test for the foreachLine helpers
to ensure their zero-allocation property isn't accidentally compromised.

Such tests turned out not to be compatible with large packages that have
many existing high-level tests, some of which start HTTP servers and/or
clients and miscellenous goroutines, and in turn leak goroutines beyond
test execution that may cause allocations in the background, leading to
inaccurate reports from testing.AllocsPerRun.

In general, a best practice is to write tests that clean up all their
resources after completion, but cmd/coordinator is large and optimized
for a single execution. Future changes may be done in a way that will
cause TestForeachLineAllocs to fail intermittently again.

As a future-proof and simple solution, just factor out the foreachLine
helpers into a small, dedicated internal package.

Fixes golang/go#33949

Change-Id: I664ec27f2b97c47a1cc88e5428152046187dbc36
Reviewed-on: https://go-review.googlesource.com/c/build/+/192680
Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Alexander Rakoczy <alex@golang.org>
2019-08-30 20:45:12 +00:00
Dmitri Shuralyov 32356196d4 dashboard: change linux-amd64-longtest machine to n1-highcpu-16
CL 167638 made a change to add more CPU resources to the longtest
builder, with the intention of going from 4 vCPUs, 15 GB RAM to
16 vCPUs, 14.4 GB RAM.

It used n1-highcpu-8 GCE machine type, which actually has 8 vCPUs
and 7.2 GB RAM.¹ Having less RAM than before wasn't the intention.

Fix that by changing n1-highcpu-8 to n1-highcpu-16, which matches
the comment.

¹ https://cloud.google.com/compute/docs/machine-types

Updates golang/go#32831
Updates golang/go#33986
Updates golang/go#25886

Change-Id: I8426867fe33b3bf86576cb13d0d6113cd87f30c1
Reviewed-on: https://go-review.googlesource.com/c/build/+/192679
Reviewed-by: Bryan C. Mills <bcmills@google.com>
2019-08-30 18:51:02 +00:00
Bryan C. Mills 4c2de3ef4a dashboard: remove nacl builders from the master branch
CL 190998 broke the nacl-386 builder, but nacl support is being
dropped as of Go 1.14 anyway.

Updates golang/go#30439

Change-Id: If9a7ea1230d4af0a127aeb14005063be4092cf84
Reviewed-on: https://go-review.googlesource.com/c/build/+/192537
Run-TryBot: Bryan C. Mills <bcmills@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2019-08-30 16:02:34 +00:00