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

853 Коммитов

Автор SHA1 Сообщение Дата
Elias Naur 1a27fb9752 dashboard: add new iOS builders
Change-Id: I2e09ea66759bcb8ccd93912a410059638a7f800d
Reviewed-on: https://go-review.googlesource.com/36095
Reviewed-by: David Crawshaw <crawshaw@golang.org>
2017-02-02 19:13:43 +00:00
Kevin Burke 86ad3148de devapp: fix build
Fix an error where we are using the wrong "log" variable to log to
the console and where we are continuing to process a request after we
have written an error to the browser.

Change-Id: I3d37b7e7ef00cc2263072890be222340246f3ff3
Reviewed-on: https://go-review.googlesource.com/36128
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-02-02 16:28:23 +00:00
haya14busa e55c76c87a gerrit: add CommentInput field to ReviewInput
CommentInput field is needed to post inline comments.

Fixes golang/go#18830

Change-Id: I04a77621f0bbbc587bbeb2e050ac363c3bbc7cf5
Reviewed-on: https://go-review.googlesource.com/35991
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-02-02 00:07:22 +00:00
Brad Fitzpatrick 9a631556e4 cmd/coordinator: reenable trybots for the perf repo
Change-Id: I9f9ed277849f5d8c0ef2554ab105719370476b4f
Reviewed-on: https://go-review.googlesource.com/36017
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-01-31 21:35:23 +00:00
Brad Fitzpatrick adc161a243 Add gke package, add kubenetes.Dialer type.
Updates golang/go#18817

Change-Id: Ifee53384486b0692899b77be2eaa42ca9006ef8e
Reviewed-on: https://go-review.googlesource.com/36016
Reviewed-by: Chris Broadfoot <cbro@golang.org>
2017-01-31 21:33:25 +00:00
Kevin Burke 310c0214e9 devapp: put appengine code behind build flag
Per discussion on the mailing list we want to make this app run
on more environments than App Engine and hopefully with a backing
datastore that is just in-memory, or at the very least is not App
Engine specific.

Puts the datastore implementation detail behind an appengine build flag.
Adds an in-memory datastore if you are not running on App Engine; it's slow
since you have to fetch issues every time, but you can get all of the issues
and browse them. Adds a single test so we have the most basic of protections
against a regression.

Add a cmd/devapp main package so we can run the server outside of an
App Engine context.

Rename gg.Percentile to gg.Quantile to match the change in the latest
version of the downstream library.

Change-Id: Icbdef29676ecbf7078b0fb8c3920f61df60a5e2e
Reviewed-on: https://go-review.googlesource.com/34928
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-01-31 18:33:17 +00:00
Brad Fitzpatrick d559b30a3a cmd/gitmirror: start of splitting off the git mirror code into separate service
Currently the Gerrit polling & git mirroring & serving & syncing
functionality is in the "watcher" process, which is in the same binary
as the cmd/coordinator (farmer.golang.org), but runs as a separate
process on that machine, and actually run in a separate Docker
container so it has a cache volume and the /usr/bin/git binary, etc. A
flag determines where func main delegates to: the build coordinator,
or the git mirror.

Start cleaning this up, in prep to run on Kubernetes as a separate service.

This copies the env/watcher-world/Dockerfile into a new gitmirror
Dockerfile, and copies the existing cmd/coordinator/watcher_process.go
into a new cmd/gitmirror/gitmirror.go process.

None of this is deployed or working yet. Once it's running and happy,
I'll then switch the coordinator to find & use it on GKE, and then
delete the old code.

Updates golang/go#18817

Change-Id: Ibaa87f244f08ce61662e689b815740c72c997536
Reviewed-on: https://go-review.googlesource.com/35911
Reviewed-by: Jaana Burcu Dogan <jbd@google.com>
2017-01-30 18:03:31 +00:00
Brad Fitzpatrick 46a0bbc43b version: use ProxyFromEnvironment
Thanks to Benjamin Bytheway for pointing out its omission.

Change-Id: Iee53e3d77fe575d1bbde7f3bc0c4693d293857a2
Reviewed-on: https://go-review.googlesource.com/35845
Reviewed-by: Chris Broadfoot <cbro@golang.org>
2017-01-27 06:42:13 +00:00
Brad Fitzpatrick bb89867699 cmd/buildlet: put a deadline before net.Conn writes to coordinator
Also, make the Darwin builder start-up script add a cache buster to
the URL, so it actually fetches the latest buildlet binary when
rebuilt.

Change-Id: I948182b25d234474170a7c967804c1bfef3e3d99
Reviewed-on: https://go-review.googlesource.com/35846
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-01-26 23:13:25 +00:00
Chris Broadfoot 6fb4cc7648 version: add go1.8rc3
Change-Id: I13a9efc492905b5db0636682306e27efebb2a1bb
Reviewed-on: https://go-review.googlesource.com/35840
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-01-26 21:16:41 +00:00
Brad Fitzpatrick f6c3c87daa cmd/coordinator: start of a Dockerfile
Moving all the Go bots and services everything to Kubernetes.

Change-Id: I811c370ea8b650e1553bab891325fee7e110f029
Reviewed-on: https://go-review.googlesource.com/35810
Reviewed-by: Kevin Burke <kev@inburke.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-01-26 18:57:53 +00:00
Quentin Smith b2b5c61511 app/build: allow specific commits to be shown
This is particularly useful for mode=json; this way, you can fetch
specific commits instead of having to page through results.

Change-Id: I756315e08665ba5b84a212384b01bdad26a6824d
Reviewed-on: https://go-review.googlesource.com/35790
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-01-26 16:41:55 +00:00
Brad Fitzpatrick 9d1e5158e9 cmd/coordinator: don't build pre-Go 1.7 code on Sierra builders
Updates golang/go#18751

Change-Id: Iadd7dded079376a9bf9717ce8071604cee95d8ef
Reviewed-on: https://go-review.googlesource.com/35643
Reviewed-by: Kevin Burke <kev@inburke.com>
Reviewed-by: Russ Cox <rsc@golang.org>
2017-01-25 17:31:05 +00:00
Kevin Burke 7ddddf10ad cmd/coordinator/buildongce: fix tests
The second section of the template was removed from the default
kubeConfig and the Staging environment now has 32 cores instead of
16.

After this the only failing tests are in the devapp package and fixed
by CL 34928.

Fixes golang/go#18769.

Change-Id: I719ee8368ce85ae6837b6df915bfa69753e24417
Reviewed-on: https://go-review.googlesource.com/35630
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-01-24 16:49:10 +00:00
Kevin Burke 2888211c41 cmd/buildstats: fix breaking API change in dependency
CL https://code-review.googlesource.com/#/c/9567/ unexported
bigquery.ValueList, which broke the code in this project. Switch the
buildstats code per the suggestion in the linked commit.

Fixes golang/go#18764.

Change-Id: I55b748f65732d5627d966623cd3b0e73223b16be
Reviewed-on: https://go-review.googlesource.com/35572
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-01-23 22:14:31 +00:00
Kevin Burke 84c3f714d2 gerrit: support contexts
Switch all API methods that make requests to Gerrit to take a
context.Context as their first argument. Adds a package example and
a simple test that we make requests to the correct endpoint and that
the Client can handle correct responses and error responses from the
Gerrit server.

Switches all code in the x/build tree to use the new Gerrit
client. There are several projects outside the tree that import
x/build/gerrit; I'll submit CL's against those to pull in the new
interface once this gets merged.

Documents that the API is unstable.

Fixes golang/go#18742.
Fixes golang/go#18743.

Change-Id: Ifa78cbb058981e23cf5769955f6312fcbe08e174
Reviewed-on: https://go-review.googlesource.com/35559
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-01-23 21:06:28 +00:00
Cherry Zhang 297480d104 cmd/release: set CGO_{C,LD}FLAGS if GOARM is set
So it really builds an ARMv6 binary when GOARM=6.

Tried "release -rev go1.8rc2 -tools release-branch.go1.8 -version go1.8rc2 -target linux-armv6l -watch"
and the generated binary works on my Raspberry Pi 1.

Fixes golang/go#18748.

Change-Id: I11113f98703049dc9990fe8c8abf505dcfd980f2
Reviewed-on: https://go-review.googlesource.com/35501
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-01-23 00:29:24 +00:00
Brad Fitzpatrick 409147cbbc build: add macoS Sierra builder
Change-Id: I10a7a9e44a158fdce5287a9b0b065b35d11fb502
Reviewed-on: https://go-review.googlesource.com/35470
Reviewed-by: Chris Broadfoot <cbro@golang.org>
2017-01-19 18:52:10 +00:00
Chris Broadfoot 6c05e148cf version: add go1.8rc2
Change-Id: I85e9b07de440f160dc3f7a5c22907e4f38a73db6
Reviewed-on: https://go-review.googlesource.com/35310
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-01-17 22:03:53 +00:00
Brad Fitzpatrick 88cf783e2f build/env/netbsd-amd64: add Makefile
Change-Id: If1d3079a4285ead907d96349a39d1d2390ddab2e
Reviewed-on: https://go-review.googlesource.com/35127
Reviewed-by: Benny Siegert <bsiegert@gmail.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-01-12 19:03:24 +00:00
Benny Siegert d360c8d2de build: use NetBSD 7.1_RC1 for GCE builder.
Let's try this again with a release (candidate) that has a vioscsi
driver.

Update golang/go#8643

Change-Id: Ib438b506a2a2a3c9046a16bedb69da54fd81ab00
Reviewed-on: https://go-review.googlesource.com/35170
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-01-12 18:20:51 +00:00
shawnps d9a0206b04 cmd/coordinator: remove unused variables
Change-Id: I39f265cbbcaaa21162e28921e7b279456e143a55
Reviewed-on: https://go-review.googlesource.com/34970
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-01-09 20:02:52 +00:00
Kevin Burke fafbc45494 devapp: update source code link
The homepage linked only to the older godash package, when in reality
dev.golang.org is being served by the devapp package.

Adds a <title> to the page and adds closing </body> and </html> tags.

Change-Id: I71ee1e8739094c4cc8489d9759e5b3aabf610771
Reviewed-on: https://go-review.googlesource.com/34927
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-01-09 17:59:05 +00:00
shawnps fa502f4bc2 godash: remove assigned but unused start var
Change-Id: I4c99ca26d7a6a5d4941fb764937f54bdd6cd5b99
Reviewed-on: https://go-review.googlesource.com/34974
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-01-09 01:12:33 +00:00
shawnps 72ebb1e3e7 all: fix typos
Change-Id: I16c20d6eb746a3ec81021c2a367d74c258437019
Reviewed-on: https://go-review.googlesource.com/34921
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-01-07 18:01:14 +00:00
shawnps 2610191dbd gerrit: add ability to pass QueryChangesOpt to GetChangeDetail
The existing implementation of GetChangeDetail does not allow for
an optional QueryChangesOpt. QueryChangesOpt adds the ability to
pass options such as CURRENT_FILES and CURRENT_REVISION in order
to receive a more detailed ChangeInfo struct.

Change-Id: I7925e75821538b2720fff7d62c8404ed97e18791
Reviewed-on: https://go-review.googlesource.com/34922
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-01-07 17:46:31 +00:00
Kevin Burke 6809b41628 doc: fix typo
Change-Id: I640dbeb5fe2b2f7eb46e4c46790bde9f209c74bf
Reviewed-on: https://go-review.googlesource.com/34919
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-01-07 04:26:20 +00:00
Chris Broadfoot db949ec19b version: add go1.8rc1
Adding ahead of the release so it's ready to go once the binaries land
and it's announced.

Change-Id: I04a68f5a6a50ae7a22df9cba14005237a276ffaa
Reviewed-on: https://go-review.googlesource.com/34913
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-01-06 19:36:37 +00:00
Jonathan Amsterdam 997e261222 buildstats: update to new bigquery client surface
Changes for the new cloud.google.com/go/bigquery surface that came out a
couple of weeks ago.

Change-Id: I4e9d66c606df67fe24058e72665bde10bde5ca8d
Reviewed-on: https://go-review.googlesource.com/32444
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-01-05 00:07:43 +00:00
Russ Cox 26f811fe65 cmd/pushback: update deploy instructions
Change-Id: I0e2da21255f547c3e8aa5f48c8bbbe7d060f5dc4
Reviewed-on: https://go-review.googlesource.com/34617
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2016-12-21 04:22:06 +00:00
Russ Cox f3411686b1 app/build: add perf subrepo
For golang/go#14304.

Change-Id: I4b9737716bdb9de74fd9ca5e855f853494651b77
Reviewed-on: https://go-review.googlesource.com/34614
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2016-12-20 20:11:53 +00:00
Russ Cox 133a933746 build/cmd/pushback: add golang/perf repo
New perf subrepo for golang/go#14304.

Change-Id: I1656df375b1163dfb0a9e5a57f459f093fc5aadb
Reviewed-on: https://go-review.googlesource.com/34613
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2016-12-20 20:11:42 +00:00
Chris Broadfoot e5b4098888 version: add a User-Agent to aid analytics on use of this tool
Change-Id: I31f823cd6679255bc3a6341b5e140a91027a2749
Reviewed-on: https://go-review.googlesource.com/34550
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2016-12-16 22:35:26 +00:00
Daniel Theophanes d351361fee cmd/release: update releaselet to specify arch on windows msi
Fixes golang/go#17602

Change-Id: Ia7873d6a5e0226833b2e16a3486bc71f183a8442
Reviewed-on: https://go-review.googlesource.com/34502
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2016-12-15 23:50:31 +00:00
Chris Broadfoot d3e4508986 version/go1.8beta2: fix typo
Change-Id: I44bcce4377a5623323e9f03fb9a67bff7b2e90e2
Reviewed-on: https://go-review.googlesource.com/34504
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2016-12-15 23:39:53 +00:00
Brad Fitzpatrick 071a06af6a version: add programs to download & run go1.8beta1 and go1.8beta2
This permits a user with any halfway recent version of Go to run:

   $ go get golang.org/x/build/version/go1.8beta1

   $ go1.8beta1
   go1.8beta1: not downloaded. Run 'go1.8beta1 download' to install to /home/bradfitz/sdk/go1.8beta1

   $ go1.8beta1 download
   Downloaded 0.0% (15225 / 90818333 bytes) ...
   Downloaded 50.1% (45514752 / 90818333 bytes) ...
   Downloaded 100.0% (90818333 / 90818333 bytes).
   Unpacking /home/bradfitz/sdk/go1.8beta1/go1.8beta1.linux-amd64.tar.gz ...
   Unpacked /home/bradfitz/sdk/go1.8beta1/go1.8beta1.linux-amd64.tar.gz.
   Success. You may now run 'go1.8beta1'

   $ go1.8beta1 version
   go version go1.8beta1 linux/amd64

   $ go1.8beta1 run ~/helloworld.go
   Hello, world from go1.8beta1!

Updates golang/go#18136

Change-Id: I4297df19138facbf90dfab790ab30b942151b096
Reviewed-on: https://go-review.googlesource.com/34385
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2016-12-15 00:27:39 +00:00
Brad Fitzpatrick d621541eb1 dashboard: switch to OpenBSD 6.0 completely, remove OpenBSD 5.8
Updates golang/go#16951

Change-Id: I7b92363671e0ba4c6ab80cef60e7c8600687f440
Reviewed-on: https://go-review.googlesource.com/34384
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
2016-12-14 22:50:41 +00:00
Brad Fitzpatrick 4776272495 dashboard: add OpenBSD 6.0 amd64 builder, bump mips timeouts
Start of OpenBSD 6.0 builders. Not trybots yet, and don't have 386 yet.

Waiting on tmpfs resolution first, and then I'll delete the 5.8 builders.

Updates golang/go#16951

Change-Id: Ib9c68090d531344125ac5410e732ae0c664a0dc4
Reviewed-on: https://go-review.googlesource.com/34276
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2016-12-10 19:19:29 +00:00
Joel Sing 9412838986 env/openbsd-amd64: fix network configuration for GCE
The network configuration specified by the GCE DHCP server does not
work correctly on OpenBSD 6.0. Add a hack that reconfigures the
network using a 10.0.0.0/8 network with a high priority route.

Updates golang/go#16951

Change-Id: I8100f34ac48411c885478e72c083754e57c14aa7
Reviewed-on: https://go-review.googlesource.com/34172
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
2016-12-09 20:11:26 +00:00
Brad Fitzpatrick 4c2f6ba62c env/openbsd-amd64: fix make.bash spam
Updates golang/go#16951

Change-Id: I23fdef7fb99e9c5587c0bc0be5d5ddd2b27a145a
Reviewed-on: https://go-review.googlesource.com/34138
Reviewed-by: Joel Sing <joel@sing.id.au>
2016-12-08 04:10:35 +00:00
Brad Fitzpatrick 71265acedb all: adjust things for upgrade from GKE 1.2 to GKE 1.4
We hit GKE bugs and changes when upgrading from GKE 1.2 to 1.4.

The main issue is that Kubernetes does't reserve CPU or memory for
itself on nodes, so things were OOMing and getting killed. And when
Docker or Kubernetes got killed themselves, they were wedging and not
recovering.

So we're going to run a daemonset (POD on all nodes) to reserve space
for Kubernetes for it. That's not in this CL.

But this CL got us limping along and was already in production. It
doubles resource RAM usage for jobs, so fewer things schedule per node.
While we're at it, let jobs use more CPU if it's available.

Also, disable auto-scaling. It was off before by hand. Force it off
programatically too. And make the node count 5, like it was by hand.

Also, force un-graceful pod deletes, since GKE 1.3 or something
introduced a graceful-vs-ungraceful distinction, which we weren't
handling previously and therefore pods never were being deleted.

Change-Id: I3606e4e2e92c496d8194503d510921bd1614d34e
Reviewed-on: https://go-review.googlesource.com/33490
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2016-12-01 23:48:21 +00:00
David du Colombier 3689a13303 dashboard: set GO_TEST_TIMEOUT_SCALE=2 on plan9-386
On the plan9-386 builder, the cmd/go tests sometimes
take a little more than 3 minutes to complete.
We set GO_TEST_TIMEOUT_SCALE=2, so the cmd/go tests
doesn't time out anymore.

Updates golang/go#18047

Change-Id: I16ce26917ee785ebed8ad16e0370d575a0fdd638
Reviewed-on: https://go-review.googlesource.com/33774
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2016-12-01 23:25:03 +00:00
Brad Fitzpatrick 4f62cec368 cmd/buildlet: add graceful shutdown on SIGTERM and SIGINT on Linux for GKE
Change-Id: If06cf0c1a8e2f78aa3822a2acbf99338a2be53f0
Reviewed-on: https://go-review.googlesource.com/33551
Reviewed-by: Kelsey Hightower <khightower@google.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2016-11-23 21:40:26 +00:00
Brad Fitzpatrick 058d87cc87 cmd/release: make Windows installer require WinXP SP2+
Instead of Win2k.

Fixes golang/go#16544

Change-Id: I6068e402428a7cc65f18e4d236801ce609a73d56
Reviewed-on: https://go-review.googlesource.com/33354
Reviewed-by: Quentin Smith <quentin@golang.org>
2016-11-17 19:11:52 +00:00
Brad Fitzpatrick a6cb7e420a cmd/release: also release ppc64le binaries
Updates golang/go#17193

Change-Id: Ibd882cca4c19b4ba4cdd58f43476a149a3eb6a28
Reviewed-on: https://go-review.googlesource.com/33299
Reviewed-by: Chris Broadfoot <cbro@golang.org>
2016-11-17 19:00:21 +00:00
Brad Fitzpatrick 98922e1041 dashboard: don't test-compile mips32 yet
Change-Id: Id24f8dce9fcadb91747a97d6db17c90bd61ecbb4
Reviewed-on: https://go-review.googlesource.com/33155
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2016-11-12 00:35:34 +00:00
Brad Fitzpatrick 01647ecae6 dashboard: set GOARCH and GOHOSTARCH explicitly for mips builders
They're running the 32-bit versions on 64-bit hardware.

Change-Id: I365aa2b77cd729484d49aaefed12737c657abed8
Reviewed-on: https://go-review.googlesource.com/33010
Reviewed-by: Cherry Zhang <cherryyz@google.com>
2016-11-09 20:10:23 +00:00
Brad Fitzpatrick 0e765f5afd dashboard: change mips GOROOT_BOOTSTRAP by request of Brendan Kirby
Change-Id: If8478e9f1b6ef65f5253f5f3faf0f50eaf527ce5
Reviewed-on: https://go-review.googlesource.com/32680
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
2016-11-03 23:31:31 +00:00
Brad Fitzpatrick 31e2bfaaaf all: add linux-mips{,64}{,le} builders
Change-Id: I28814c70872cce57f05120073a7d653a6879841c
Reviewed-on: https://go-review.googlesource.com/32675
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2016-11-03 23:12:47 +00:00
Brad Fitzpatrick bafd82606f cmd/coordinator: don't push Gerrit-internal refs to github
Change-Id: Ie7b0d97e6450be2e31a61bd2f3556060c07d7255
Reviewed-on: https://go-review.googlesource.com/32315
Reviewed-by: Russ Cox <rsc@golang.org>
2016-11-03 16:50:19 +00:00