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

777 Коммитов

Автор SHA1 Сообщение Дата
Andrew Gerrand f7f4528954 all: refer to build.golang.org by HTTPS URLs only
Most of these are documentation fixes.

Change-Id: If100cc2ef0ee0b8b47a1e96e4c51a2be8caf5842
Reviewed-on: https://go-review.googlesource.com/22366
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2016-04-22 02:40:25 +00:00
Brad Fitzpatrick e42afb7dbd cmd/coordinator: give each build and try set a globally unique random ID
These IDs will become the cloud datastore keys for keeping history and logs.

Many more CLs will follow: changing farmer URLs, logging to datastore,
fetching old logs from datastore, etc.

Updates golang/go#13076 (make all logs URLs permanent)
Updates golang/go#12669 (collect logs, stats)

Change-Id: I5b9fd21bf23581c59724b0ed32c8459baa9683f7
Reviewed-on: https://go-review.googlesource.com/21968
Reviewed-by: Andrew Gerrand <adg@golang.org>
2016-04-13 13:44:08 +00:00
Brad Fitzpatrick 00477ab270 cmd/coordinator: note that cmd/compile/internal/gc tests are slow
Until we can use historical data, keep this roughly-accurate handmade
table up to date. This helps with the coordinator's critical path
scheduling of tests over buildlets. (I noticed this stuck at the end
of a build, rather than the beginning)

Change-Id: I6e64b138b1f5b3163157d93c59ba19c25c959730
Reviewed-on: https://go-review.googlesource.com/21966
Reviewed-by: Andrew Gerrand <adg@golang.org>
2016-04-13 05:38:15 +00:00
Brad Fitzpatrick a2d211fdeb cmd/coordinator: remove plan9 as a trybot
Updates golang/go#15251

Change-Id: I723a70cdc6169252d2088dfcceea89ec5f8f9bc4
Reviewed-on: https://go-review.googlesource.com/21859
Reviewed-by: David Crawshaw <crawshaw@golang.org>
2016-04-12 15:40:31 +00:00
Brad Fitzpatrick 7f36a4fb64 env, cmd/buildlet: add support for linux/arm64, linux/ppc64le
Also start of some solaris stuff.

Fixes golang/go#10601 (all five ppc64le now in systemd)
Fixes golang/go#14197 (all five arm64 up and also in systemd)
Updates golang/go#15072 (not a fix for Sun Solaris, but progress)
Updates golang/go#9515 (more progress towards SmartOS)

Change-Id: I9c878017904441823dae7b6945938396b0c2974b
Reviewed-on: https://go-review.googlesource.com/21670
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2016-04-09 20:09:00 +00:00
Brad Fitzpatrick 30761a084e dashboard: add test buildlet config for Oracle Solaris
Updates golang/go#15072

Change-Id: I4e02556429ac65d521e6d01687232c1412d078fb
Reviewed-on: https://go-review.googlesource.com/21766
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2016-04-08 19:46:07 +00:00
Brad Fitzpatrick 90f7179840 kubernetes: fix potential goroutine leak
Change-Id: I2e9343c7441db43fe7004d877ee0409d29cb9a23
Reviewed-on: https://go-review.googlesource.com/21764
Reviewed-by: Evan Brown <evanbrown@google.com>
2016-04-08 19:09:22 +00:00
Brad Fitzpatrick 874eda751f cmd/coordinator: re-enable Kubernetes in staging
Change-Id: I06ac00b8be9717adf0add3f82e3663883825283a
Reviewed-on: https://go-review.googlesource.com/21761
Reviewed-by: Evan Brown <evanbrown@google.com>
2016-04-08 18:55:09 +00:00
Brad Fitzpatrick 95f1498c2d cmd/genbootstrap: new tool to generate minimal GOROOT_BOOTSTRAP tarballs
Fixes golang/go#9797

Change-Id: Ib8a8a5f9c0e51c22b93a1ba2957362e8fe829937
Reviewed-on: https://go-review.googlesource.com/21657
Reviewed-by: Andrew Gerrand <adg@golang.org>
2016-04-07 22:31:52 +00:00
Brad Fitzpatrick 5f6e05435c dashboard: add arm64 buildlet, update ppc64 buildlet definition
Change-Id: I25c6de0f97c3338f9d32f4125b2c7c68c3f3c13c
Reviewed-on: https://go-review.googlesource.com/21656
Reviewed-by: David Crawshaw <crawshaw@golang.org>
2016-04-07 20:45:49 +00:00
Evan Brown 34ff1d9bc8 all: kubernetes builder autoscaling
Improvements to support rapid scheduling of many build jobs:

- Retry logic in Kubernetes client to handle sporadic connection
  closes from their API server under heavy load

- Cluster autoscaler scales on default CPU utilization metric

- Debug mode allows scheduling multiple builds to test scaling

- Account for scheduled vs. provisioned resources in a cluster
  and use that information to estimate when a build's pod
  will be scheduled and in running state

- Use estimated scheduled time to set context timeout

- Track pod lifecycle (requested time, estimated available time,
  actual available time, terminate time, etc)

Change-Id: I14d6c5e01af0970dbb3390a29d1ee5c43049fff8
Reviewed-on: https://go-review.googlesource.com/19524
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2016-04-07 17:22:57 +00:00
Brad Fitzpatrick 86757ddb63 cmd/coordinator: push new logging down into the buildlet creation
Next step is logging it to datastore/bigquery. Then stats and
visualizing with trace viewer later.

Updates golang/go#12669

Change-Id: I039097791993dbe3d4aceb18d2a08db8299f3c05
Reviewed-on: https://go-review.googlesource.com/21640
Reviewed-by: Andrew Gerrand <adg@golang.org>
2016-04-07 05:32:57 +00:00
Brad Fitzpatrick 577245f215 cmd/coordinator: fix watcher restart on coordinator restart, reuse git dirs
The Docker watcher process wasn't being restarted when the coordinator
restarted, leading to confusion when trying to deploy new versions,
and spammy error messages.

Also, make the watcher start up faster by reusing its previous
instance's git mirrors if they appear to be not corrupt. This reduces
the start from 45+ seconds to 11 seconds. (All the repos are fetched in
parallel and most 1-2seconds, but the "go" repo is 11 seconds.)

It's no longer on tmpfs, but it's still on SSD and will be in the page
cache, and there's plenty of disk:

farmer watcher-git # pwd
/var/cache/watcher-git

farmer watcher-git # du -h -c | tail -1
412M    total

farmer watcher-git # df -h .
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda9        47G  5.7G   39G  13% /

Fixes golang/go#12673

Change-Id: I1ad58ab94b02dbe79340e2226023a3e52cf3be49
Reviewed-on: https://go-review.googlesource.com/21625
Reviewed-by: Evan Brown <evanbrown@google.com>
Reviewed-by: Andrew Gerrand <adg@golang.org>
2016-04-07 00:13:09 +00:00
Brad Fitzpatrick ccf742ca78 cmd/coordinator: initialize inStaging again
It got lost at some point.

Change-Id: I50f262d971ce4de418dbb5ee4f0ddd383ce72d0e
Reviewed-on: https://go-review.googlesource.com/21616
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2016-04-06 21:00:51 +00:00
Brad Fitzpatrick 6a9837cad4 cmd/coordinator: log event spans with associated success, not stop/start text
Now events and phases of the build are represented by a span, with a
stop and start, and each has timing and a success status.

These will visualize nicer (later) and will be able to be logged and
queried in Cloud Datastore + BigQuery.

Also, remove the overloaded and not-to-be-used "rev" parameter from
the GetBuildlet interface. An upcoming change disconnects the
buildlet's lifetime from that of a single build, so the rev isn't even
known at the time of the GetBuildlet call; the buildlet will be handed
out to the most worthy current waiter (and the rev might not have even
existed at the tim the GetBuildlet call started)

Updates golang/go#12669

Change-Id: I02b28fea8bbbc16dc95c1ea0507418be01aa8ca8
Reviewed-on: https://go-review.googlesource.com/21570
Reviewed-by: Andrew Gerrand <adg@golang.org>
2016-04-06 20:59:49 +00:00
Brad Fitzpatrick 011a895a63 cmd/coordinator/buildongce, dashboard: fix basepin creation, add NetBSD
Updates golang/go#8643

Change-Id: I031ffb52537500c52df34f54552296c61dc2df10
Reviewed-on: https://go-review.googlesource.com/21493
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2016-04-04 23:26:30 +00:00
Brad Fitzpatrick 5b7c3ad15d cmd/coordinator: disable netbsd builds for now
They're not working yet.

Updates golang/go#8643

Change-Id: I3b9b91bcd2071a59a232ea936d7e0495adecba9a
Reviewed-on: https://go-review.googlesource.com/21499
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2016-04-04 23:26:11 +00:00
Benny Siegert 45e699cc5f env: delete WORKDIR unless run with -k for netbsd-amd64 build.
Change-Id: I4daaf2320d031352301f98e7ba55858cee390b50
Reviewed-on: https://go-review.googlesource.com/21505
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2016-04-04 17:04:24 +00:00
Benny Siegert adc8f86220 env: script to generate VM image for netbsd-amd64.
This uses anita to install and configure NetBSD.

Update golang/go#8643

Change-Id: Iba1e75a65314380339d0c88370ab7cc5d08e78de
Reviewed-on: https://go-review.googlesource.com/19350
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2016-04-04 16:13:45 +00:00
David du Colombier 77ef5db46c dashboard: use Go 1.6 to bootstrap Go on Plan 9
On the Plan 9 builder, we are experiencing regular
failures in cmd/compile when building go_boostrap.

We suspect the failures to be related to a bug in
the Go 1.4 runtime. This is affecting the cmd/compile
program, since it has been built with Go 1.4 and
linked with the Go 1.4 runtime.

Updates golang/go#14650

Change-Id: I78729c8660314be381d7b668810c6f64214f2358
Reviewed-on: https://go-review.googlesource.com/21411
Reviewed-by: Richard Miller <millerresearch@gmail.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2016-04-01 22:43:33 +00:00
Brad Fitzpatrick 5ded83e782 cmd/buildlet/stage0: set linux-arm-scaleway resolv.conf to 8.8.8.8
Fixes golang/go#14997

Change-Id: I44d5390d72da12f9f6ed8b2f3f5ec8f8ab13799f
Reviewed-on: https://go-review.googlesource.com/21194
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
2016-03-29 04:18:07 +00:00
Brad Fitzpatrick 08bad8ca42 buildenv: add a Development buildenv
Change-Id: I9a78632ad63a526397702b4ee1e3ec253a0e81e5
Reviewed-on: https://go-review.googlesource.com/21010
Reviewed-by: Andrew Gerrand <adg@golang.org>
2016-03-22 22:20:58 +00:00
Brad Fitzpatrick dddf9bcc5e cmd/coordinator: start up in dev mode without crashing again
Change-Id: I24b48a33e9f32e74f532aa234608e2ebb3aefa31
Reviewed-on: https://go-review.googlesource.com/21011
Reviewed-by: Andrew Gerrand <adg@golang.org>
2016-03-22 22:20:47 +00:00
Brad Fitzpatrick 1bebb26a15 cmd/coordinator: remove two flags
One was in buildenv anyway.

The other hasn't been used in ages.

Change-Id: I1d5f652ca3bf713f59d50a11bdba1339653867bb
Reviewed-on: https://go-review.googlesource.com/20978
Reviewed-by: Andrew Gerrand <adg@golang.org>
2016-03-22 22:20:43 +00:00
Brad Fitzpatrick c868c8b3ff cmd/coordinator: start of abstracting storage for testability
Change-Id: Ia7c77affe4751703c953753b9433e74b3c3a0cdf
Reviewed-on: https://go-review.googlesource.com/21012
Reviewed-by: Andrew Gerrand <adg@golang.org>
2016-03-22 09:45:11 +00:00
Brad Fitzpatrick 44eb74d0cb buildenv: fix typos, clarify CoordinatorURL
Change-Id: I86b1545018abb208452c46797013b3a4bfd6b90d
Reviewed-on: https://go-review.googlesource.com/20979
Reviewed-by: Andrew Gerrand <adg@golang.org>
2016-03-22 09:44:49 +00:00
Andrew Gerrand 8e28dc9fa6 dashboard: rename Go14URL to goBootstrapURLTmpl and provide accessor
Also update all users, and rename another template field.
Includes changes to coordinator, gomote, and release.

Change-Id: I1c4408eadbcb83d61063a910dfa18cc395952bc2
Reviewed-on: https://go-review.googlesource.com/20976
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2016-03-21 22:19:10 +00:00
Brad Fitzpatrick c071a92054 cmd/coordinator: fix crash on nil global variable buildenv
This local variable was shadowing the global one.

Change-Id: If4a28de430050d884097a5474f8bb56c45c31fb1
Reviewed-on: https://go-review.googlesource.com/20958
Reviewed-by: Andrew Gerrand <adg@golang.org>
2016-03-21 22:12:20 +00:00
Andrew Gerrand 5683700b6d app/build: hide release-branch.go1.4 from the dashboard
Change-Id: I3f0d0691b56fb8a134a5c7ef83da681a9a6068d0
Reviewed-on: https://go-review.googlesource.com/20843
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2016-03-21 20:48:31 +00:00
Keith Randall a04c8136b9 dashboard: add SSA check builder
Now that SSA checks are off by default, let's run a builder with the
checks on just to make sure they keep passing.

Change-Id: I7edd2a2865681a135ccf755be7a14f8645c0a8aa
Reviewed-on: https://go-review.googlesource.com/20882
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2016-03-21 08:22:19 +00:00
Andrew Gerrand 24f7399f96 cmd/release: upload file.sha256 alongside release binaries
This makes it easier to programmatically verify the
integrity of the binaries.

Fixes golang/go#14385

Change-Id: Ie3688d9b07412018b74d6189ab0d7bc72ef50398
Reviewed-on: https://go-review.googlesource.com/19783
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2016-03-15 00:29:45 +00:00
Shenghou Ma 59077b03e8 cmd/builder: pass $HOME to child
It's needed by new os/user test.

Change-Id: I9dfe7c2a1c17e2cdc2d034c5cfc669e4aabd358d
Reviewed-on: https://go-review.googlesource.com/20480
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2016-03-09 03:31:48 +00:00
Andrew Gerrand 4d5da96954 cmd/pushback: add gddo repo
Change-Id: I23d29f0f10cf8fbf48eb6f247344f437e84db52b
Reviewed-on: https://go-review.googlesource.com/20313
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2016-03-08 00:52:59 +00:00
Evan Brown a731151878 all: consolidate configuration for coordinator and gomote
buildenv.Environment type defines configuration options:

- Coordinator uses the GCE project name to lookup config. A custom
  config name can be provided at runtime to override.

- The conventional prod and stage project names ('symbolic-datum-552'
  and 'go-dashboard-dev') map to prod and staging configuration structs.

- Production and staging status is explicitly defined in configuration.

- GCS bucket names for buildlet, logs, and snapshots are
  configurable.

Change-Id: I7e6d7874eb0bdfe35dbdd5fcf6212ab50d576b88
Reviewed-on: https://go-review.googlesource.com/19502
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2016-03-04 22:24:11 +00:00
Bryan Chan 1ba80cef3d cmd/buildlet: Basic support for linux-s390x revdial
Change-Id: Ia9889d88be2ec78168e0070f251f653e0f780904
Reviewed-on: https://go-review.googlesource.com/20220
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2016-03-04 18:56:20 +00:00
Bryan Chan 2de28ddc9f dashboard: fix bootstrap path for s390x builder
Change-Id: I8d28dfdb18da11e64cd94c7d205990f64793fcc6
Reviewed-on: https://go-review.googlesource.com/20168
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2016-03-03 21:45:50 +00:00
Brad Fitzpatrick c2a36fd3fd dashboard: add solaris, ppc64le, s390x reverse buildlets
Change-Id: I5061ae1da7884ed82786e8a042e966ccbe423e89
Reviewed-on: https://go-review.googlesource.com/20135
Reviewed-by: Andrew Gerrand <adg@golang.org>
2016-03-03 05:01:50 +00:00
Andrew Gerrand 4713e09c38 app/build: add oauth2 to build dashboard
Fixes golang/go#12775

Change-Id: I9ac3870bb27b8dc715fcd0628993965086642b4d
Reviewed-on: https://go-review.googlesource.com/19879
Reviewed-by: Burcu Dogan <jbd@google.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2016-02-29 01:49:32 +00:00
Shenghou Ma 68a04950ca cmd/release: package golang.org/x/tour/reader
Fixes golang/go#14184.

Change-Id: I9ce09a6b6ea4d0eb1a8c2b7cb43ecec9ee1e5109
Reviewed-on: https://go-review.googlesource.com/19797
Reviewed-by: Francesc Campoy Flores <campoy@golang.org>
2016-02-22 17:30:21 +00:00
Russ Cox 759962e7b3 cl: hide DoNotReview changes
The actual spelling of DoNotReview that has meaning
to the dashboard includes spaces, but I can't put that
string in the commit message because it makes the
CL uncommitable. :-)

Add dnr flag so people can ask for them.

If people do ask, show DoNotReview as the reviewer.
Similarly, show Closed as the reviewer for closed CLs.

Change-Id: Ibe758bbb5f5f03fcb5035e7cb068c6d8d0b6baa4
Reviewed-on: https://go-review.googlesource.com/11260
Reviewed-by: Andrew Gerrand <adg@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
2016-02-18 17:26:27 +00:00
Russ Cox bf1275c30e cmd/cl: fix is:xxx queries and include status in json output
Change-Id: I5c3f6ffcf7d80cb76f3f2d186d14bbc201e6c4f4
Reviewed-on: https://go-review.googlesource.com/19497
Reviewed-by: Andrew Gerrand <adg@golang.org>
2016-02-18 16:49:41 +00:00
Russ Cox 8a5850561b cmd/cl: accept R=go1.6 to close but auto-open when we start 1.6
Change-Id: If3cdb725ced3f726d48a2fd82ec8b12a84e9f889
Reviewed-on: https://go-review.googlesource.com/11671
Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Andrew Gerrand <adg@golang.org>
2016-02-18 16:48:21 +00:00
Brad Fitzpatrick 5612addc94 gerrit: add Auth mode to use a specific cookie file, add more methods
This is stuff needed for my Github->Gerrit bot.

Change-Id: Ie072d7b66be2b219ba48245305a8187446238c9e
Reviewed-on: https://go-review.googlesource.com/19380
Reviewed-by: Andrew Gerrand <adg@golang.org>
2016-02-08 23:00:44 +00:00
Brad Fitzpatrick 09ec8bf053 gerrit: add Client.AbandonChange
Change-Id: Ic48abd39a8a68de058595077082902f57577ce6d
Reviewed-on: https://go-review.googlesource.com/19312
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2016-02-07 01:06:58 +00:00
Andrew Gerrand 42df744f07 cmd/pushback: update deployment instructions; delete old vm
Change-Id: Ibfdbab5e4c79d3052a860c6e2ce381c140fe4bad
Reviewed-on: https://go-review.googlesource.com/19117
Reviewed-by: Chris Broadfoot <cbro@golang.org>
2016-02-02 00:25:59 +00:00
Andrew Gerrand 202af1f04f cmd/pushback: use friendlier message when closing pull requests
Fixes golang/go#13687

Change-Id: I87eb041b97c7368b40c1f578e9f71313570cf7f6
Reviewed-on: https://go-review.googlesource.com/19116
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Chris Broadfoot <cbro@golang.org>
2016-02-02 00:00:35 +00:00
Brad Fitzpatrick 1b6633d251 dashboard: disable Kubernetes builders
Updates golang/go#14112

Change-Id: Ie45029e27d8d8ce421135cc0e38f7019965bfa34
Reviewed-on: https://go-review.googlesource.com/18990
Reviewed-by: Andrew Gerrand <adg@golang.org>
2016-02-01 23:44:42 +00:00
Evan Brown c514b80fed env: add additional target for building env images
Revise Makefile in linux-x86-std-kube and linux-x86-nacl:

- Support a target named `dev` that allows specifying a non-default
  Docker repository name.

- Replace hard-coded image names with the directory name that Makefile
  resides in. This uses the existing convention of naming directories
  according to image name.

- When Dockerfile inherits from a custom image (i.e., linux-x86-nacl
  inherits FROM linux-x86-std-kube), use sed to dynamically set the
  repository prefix in the Dockerfile.

Change-Id: I372c834175a38bb34d80a18f2f0e23c5a1d007af
Reviewed-on: https://go-review.googlesource.com/19021
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2016-01-28 03:51:04 +00:00
Andrew Gerrand 662ec3ac54 cmd/coordinator: don't run trybots on build repo
Fixes golang/go#14118

Change-Id: I06a7a0e5bff509f0ba2b355855656119b4999b79
Reviewed-on: https://go-review.googlesource.com/19031
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2016-01-28 03:16:45 +00:00
Evan Brown cfb4f34505 kubernetes: improve error message if pod create fails
Updates golang/go#14112

Change-Id: I53e42647e5a8b22cfb70b78fc4571ff78dd23289
Reviewed-on: https://go-review.googlesource.com/18984
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2016-01-27 22:43:28 +00:00