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

513 Коммитов

Автор SHA1 Сообщение Дата
Andrew Gerrand 34287c5ea0 build: don't verify certificates in development mode
Change-Id: I8ee6af4e576123be0f95e2f9ab233d455f0d41e3
Reviewed-on: https://go-review.googlesource.com/12224
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2015-07-15 21:32:52 +00:00
Andrew Gerrand de0661e7b1 cmd/release: build darwin packages and source tarballs
Change-Id: Idd1143cae097c3d19dcbdf72b8fdf1bc193e77b1
Reviewed-on: https://go-review.googlesource.com/12223
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2015-07-15 21:32:32 +00:00
Andrew Gerrand f8b4a13722 cmd/coordinator, cmd/buildlet: use dev cert in development mode
Change-Id: I34cfbb159eef300ef97060d6f4aabc5996bbe27d
Reviewed-on: https://go-review.googlesource.com/12210
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2015-07-15 01:25:44 +00:00
Andrew Gerrand 9fb312f7fd cmd/release: fix linux-386 build, add TODOs
Change-Id: Ifff9b2da0c71ba25442cf397a2c409b54b731c26
Reviewed-on: https://go-review.googlesource.com/11969
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2015-07-08 17:44:04 +00:00
Brad Fitzpatrick 931f6ead63 cmd/coordinator: add priority awareness to remote buildlet pool
Change-Id: Ic4354839ee5a6347df08ae6db188e574f0a2725b
Reviewed-on: https://go-review.googlesource.com/11944
Reviewed-by: Andrew Gerrand <adg@golang.org>
2015-07-08 04:22:55 +00:00
Andrew Gerrand 78810b0a6f cmd/release: make it actually work
Change-Id: I5e58492e16384739bb7c93dccd54f6c482a47b6e
Reviewed-on: https://go-review.googlesource.com/11970
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2015-07-08 02:21:41 +00:00
Brad Fitzpatrick 3e9b740778 cmd/buildlet: fix build, work on Windows, add TODO
Change-Id: I49d2c81826556011849304ab9a6468d0627ce1d7
Reviewed-on: https://go-review.googlesource.com/11945
Reviewed-by: Andrew Gerrand <adg@golang.org>
2015-07-08 01:54:32 +00:00
Brad Fitzpatrick 1fa06d94b3 cmd/coordinator: don't crash in GCE pool if rev len is less than 8
"adg" crashed it.

Change-Id: If8dd524b6bd06f121c3bf2e71faf7164c0cc4581
Reviewed-on: https://go-review.googlesource.com/11966
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2015-07-07 22:57:58 +00:00
Brad Fitzpatrick 4b95661f45 cmd/release: use remote buildlets
Change-Id: Id5dfde505c0485bb4cb0ec98c328fd087e96411b
Reviewed-on: https://go-review.googlesource.com/11942
Reviewed-by: Andrew Gerrand <adg@golang.org>
2015-07-07 16:59:38 +00:00
Brad Fitzpatrick 7b6d1b1b28 all: remote buildlets
This creates a mechanism for clients (such as cmd/release and
cmd/gomote) to obtain buildlets via the coordinator. Previously
cmd/release and cmd/gomote could only create GCE VMs themselves, and
required the GCE project's credentials. In addition to the awkwardness
of needing to hand out the GCE credentials, it also meant ARM and
Darwin buildlets (which use the reverse buildlet pool) weren't usable.

Instead, this creates a new auth mechanism where the coordinator is
contacted over TLS with key pinning (the CA system isn't used) in the
same way that the reverse builders already dialed into the
coordinator, and then a "user build type" and hash are sent as the
username and password. The same master key is used to sign user
builder keys, and they always start with "user-". (which isn't a GOOS).

Then the coordinator provides an API to create and list buildlets.
They auto-expire after a duration and are auto-renewed upon use.

The buildlet library (as used by cmd/release etc) then proxies HTTP
requests via the coordinator to the backend buildlet.

See doc/remote-buildlet.txt for protocol details.

Change-Id: I12e27eae788fdd91927cb182b950893dc759f8e9
Reviewed-on: https://go-review.googlesource.com/11901
Reviewed-by: Andrew Gerrand <adg@golang.org>
2015-07-07 16:45:21 +00:00
Brad Fitzpatrick c3a76e24a6 cmd/coordinator/buildongce: make the dev coordinator have a static IP
I made it static in GCE's web UI but as always, I forgot you can't
rename IP addresses in GCE, so we get another special case here since
our auto-detect logic below wouldn't work. Oh well.

Change-Id: Iae2a435576e9b03959f2e634929da94f0e9275c2
Reviewed-on: https://go-review.googlesource.com/11902
Reviewed-by: Andrew Gerrand <adg@golang.org>
2015-07-06 04:23:11 +00:00
Brad Fitzpatrick 2742bc3a0d cmd/release: start of getting darwin buildlets via the coordinator
Change-Id: I4a7bac619d5182235053fc0a10087cbd291b936c
Reviewed-on: https://go-review.googlesource.com/11891
Reviewed-by: Andrew Gerrand <adg@golang.org>
2015-07-05 18:37:25 +00:00
Brad Fitzpatrick a5383ffaa1 cmd/coordinator: shard linux race builder
Fixes golang/go#11074

Change-Id: I9401122e4d7febd3e38a80be89fcb2e03969f383
Reviewed-on: https://go-review.googlesource.com/11168
Reviewed-by: Andrew Gerrand <adg@golang.org>
2015-07-03 20:18:58 +00:00
Andrew Gerrand c03daae2cb app: fix caching of todo handler
Change-Id: I440ae3f20124b59b4679958bc623f00cca94f640
Reviewed-on: https://go-review.googlesource.com/11328
Reviewed-by: Chris Broadfoot <cbro@golang.org>
2015-06-23 01:26:38 +00:00
Andrew Gerrand 3121d292a8 app: fix caching
Also link commits to github (nicer diff view).
Also remove some old Mercurial cruft.

Change-Id: I717900cd9cac9c6b5d08b0594d5adf29ed56eeb7
Reviewed-on: https://go-review.googlesource.com/11327
Reviewed-by: Chris Broadfoot <cbro@google.com>
Reviewed-by: Andrew Gerrand <adg@golang.org>
2015-06-23 00:36:41 +00:00
Russ Cox 45cfe47072 cl: hide closed reviews
Add closed flag so people can ask for them.

Change-Id: Ifc69f318f54b0c644d2356381e39a757855cd619
Reviewed-on: https://go-review.googlesource.com/11171
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2015-06-17 15:36:33 +00:00
Brad Fitzpatrick c43006e3bc cmd/buildlet: make heartbeat less strict
Now you have to fail 3 in a row before you're killed.

This helped Plan 9 a bunch for a few days, before the change was
reverted (and then it started failing consistently again).

We still don't know why Plan 9 sucks at replying to heartbeats.

Change-Id: Ic64d2e8fb75f544c7c3e9a62c28ab9e20ff8392d
Reviewed-on: https://go-review.googlesource.com/11132
Reviewed-by: Andrew Gerrand <adg@golang.org>
Reviewed-by: David du Colombier <0intro@gmail.com>
2015-06-16 20:31:04 +00:00
Andrew Gerrand 82263f3ae2 env/commit-watcher: bump version
Change-Id: I8a40ad5b2630591923897487bb147142821437ec
Reviewed-on: https://go-review.googlesource.com/11116
Reviewed-by: Andrew Gerrand <adg@golang.org>
2015-06-15 23:38:58 +00:00
Andrew Gerrand b00072526e cmd/coordinator: fix bootstrapping of subrepo builds against releases
Change-Id: I2900ca663a05d37db606bb49042aab4c0cae03c0
Reviewed-on: https://go-review.googlesource.com/11114
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2015-06-15 21:56:13 +00:00
Andrew Gerrand cc63cd0d5b app: show sub-repo results for stable releases
The coordinator will automatically start building sub-repos against
the stable releases once this dashboard is rolled out.

Fixes golang/go#11197

Change-Id: I6f0735f842431a1c072d748f9073120812a03309
Reviewed-on: https://go-review.googlesource.com/11112
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2015-06-15 20:01:03 +00:00
Andrew Gerrand a3c7de9d12 app: add branch dropdown, show only master branch by default
Fixes golang/go#9572

Change-Id: I763905327d03cea84dde43bba544d3d54886fce5
Reviewed-on: https://go-review.googlesource.com/11096
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2015-06-15 02:14:00 +00:00
Brad Fitzpatrick d4ea014ceb cmd/coordinator, buildlet: reliability fixes
Add background heartbeats to detect dead GCE VMs (the OpenBSD
buildlets seem to hang a lot),

Add timeouts to test executions.

Take helper buildlets out of service once they're marked bad.

Keep the in-order buildlet running forever when sharding tests, in
case all the helpers die. (observed once)

Keep a cache of recently deleted VMs and don't try to delete VMs again
if we've recently deleted them. (they're slow to delete)

More reverse buildlets more paranoid in their health checking and closing
of the connection.

Make status page link to /try set URLs.

Also, better logging (more sometimes, less others0, and misc bug fixes.

Change-Id: I57a5e8e39381234006cac4dd799b655d64be71bb
Reviewed-on: https://go-review.googlesource.com/10981
Reviewed-by: Andrew Gerrand <adg@golang.org>
2015-06-13 01:50:33 +00:00
David du Colombier 5e8cfd4b8c cmd/coordinator: fix typo s/started/ended/
Change-Id: I88f4a19db4cd311382247eb1d43996ac473898be
Reviewed-on: https://go-review.googlesource.com/10951
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2015-06-12 15:17:28 +00:00
Johan Euphrosine 093044aa43 kubernetes: add minimal kubernetes API client
Change-Id: I4ca7c27084d5f80f116b8461d0e6769b8bd99ceb
Reviewed-on: https://go-review.googlesource.com/9981
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2015-06-12 14:50:32 +00:00
Andrew Gerrand 306c6b7e48 cmd/coordinator: put the sub-repo name and revision in the log heading
Change-Id: I6b6ac6edbdfa46e91e507b2225e7aa33e97c0ffe
Reviewed-on: https://go-review.googlesource.com/10961
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2015-06-11 20:46:01 +00:00
Andrew Gerrand a1f99d90bf app: remove hg dashboard
It's time.

Fixes golang/go#11152

Change-Id: I9211e2cac5e73870f613fbc13d825df426ee11e6
Reviewed-on: https://go-review.googlesource.com/10917
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2015-06-11 18:13:31 +00:00
Brad Fitzpatrick e8a3d43f54 cmd/coordinator: delay dashboard pinging until build starts
There were too many blue gophers too early on build.golang.org.
Wait until we have quota first (GCE quota or reverse buildlet pool
aquired).

Updates golang/go#10716

Change-Id: I076e89f319d68d55a61f3f8faf0242342c5ae825
Reviewed-on: https://go-review.googlesource.com/10921
Reviewed-by: Andrew Gerrand <adg@golang.org>
2015-06-11 17:43:07 +00:00
Brad Fitzpatrick 522e105de2 cmd/coordinator: fix a case where wrong error type was returned
Change-Id: Idbca639b6843902fc6d97559f72c193954fb0ea4
Reviewed-on: https://go-review.googlesource.com/10920
Reviewed-by: Andrew Gerrand <adg@golang.org>
2015-06-11 17:42:54 +00:00
Andrew Gerrand af7d181ea0 dashboard: build sub-repos on more builders
Change-Id: I57c12f427448281d71b8507ed950038209134143
Reviewed-on: https://go-review.googlesource.com/10915
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2015-06-11 17:37:02 +00:00
Brad Fitzpatrick 378fb2949f cmd/coordinator, buildlet: kill TCP conn of misbehaving reversePool buildlets
Also: heartbeat reverse buildlets more often
Also: adjust cmd/go test expected duration.

Change-Id: I75fbb66a0b20ac7357ad7cf78fc545101ac9aa33
Reviewed-on: https://go-review.googlesource.com/10884
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Andrew Gerrand <adg@golang.org>
2015-06-11 00:06:14 +00:00
Andrew Gerrand 4d2f2c9628 app: move commit information to left side of page and condense it
Change-Id: I5dc557e4dcc3aa1d34c259951674c98f93075d81
Reviewed-on: https://go-review.googlesource.com/10890
Reviewed-by: Russ Cox <rsc@golang.org>
2015-06-10 17:28:34 +00:00
Andrew Gerrand aee97806db app: and (finally) populate the fields in the commits
Change-Id: I94283ef9824bb39b80f7422d9ea81987012496f1
Reviewed-on: https://go-review.googlesource.com/10877
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2015-06-10 17:06:37 +00:00
Andrew Gerrand 8d855ce567 app: show building url in sub-repo template
Change-Id: I0a7e684e95c9a01fbfb32e806af418f00ebd29f4
Reviewed-on: https://go-review.googlesource.com/10876
Reviewed-by: Andrew Gerrand <adg@golang.org>
2015-06-10 16:59:55 +00:00
Andrew Gerrand 18e71ccb51 app: link to inflight builds for sub-repos
Change-Id: I708b83839d35287fcd644c0b243b59ed2d9c8cef
Reviewed-on: https://go-review.googlesource.com/10875
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2015-06-10 16:56:47 +00:00
Andrew Gerrand 234725beb8 cmd/coordinator: build sub-repositories
Fixes golang/go#9506

Change-Id: Iebfb52386b5ba3df7d058f266e227d634d210ec6
Reviewed-on: https://go-review.googlesource.com/10732
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2015-06-10 16:27:33 +00:00
Brad Fitzpatrick a1d1970625 cmd/coordinator: finish rename of logs to temporarylogs
Change-Id: Ic7a527112bbc137cca5aac28b4d0c439994016d3
Reviewed-on: https://go-review.googlesource.com/10881
Reviewed-by: Andrew Gerrand <adg@golang.org>
2015-06-10 00:37:46 +00:00
Andrew Gerrand f825c792c1 internal/loghash: move (soon-to-be-) shared code to its own package
Change-Id: Id8c7d5752449b0bb82a2b21157cb067f6a8be18b
Reviewed-on: https://go-review.googlesource.com/10871
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2015-06-09 22:46:08 +00:00
Brad Fitzpatrick 777a5bf830 cmd/coordinator: link to permalink failure URLs while trybot is still running
Per request of iant and rsc.

Change-Id: Ifae7b6c1a83240382635a87ccc2c8d8aa429b901
Reviewed-on: https://go-review.googlesource.com/10848
Reviewed-by: Andrew Gerrand <adg@golang.org>
2015-06-09 19:44:41 +00:00
Brad Fitzpatrick 080252283b buildlet: make exec fail with a remote error if no headers after 5 seconds
The reverse buildlets' RoundTrip are hanging, which is its own problem,
but this calling code should be robust and time out anyway.

Change-Id: Id9e3e1d9feb6ffa58cc0995d0623bd90845bb9d6
Reviewed-on: https://go-review.googlesource.com/10847
Reviewed-by: Andrew Gerrand <adg@golang.org>
2015-06-09 16:29:23 +00:00
Brad Fitzpatrick 1b1e086fd1 buildlet, cmd/coordinator: GCE quota accounting, fixes
And deal with Preemptible resource exhaustion errors.

And change all-compile to misc-compile and only do the builders
not covered otherwise (Fixes #11073)

And make the watcher serve git source.

And cache and singleflight fetching of git source.

And a million other things.

Fixes golang/go#11073

Change-Id: I0f45610f0c6a06bd0c8ba9632b8624e00aeb52fc
Reviewed-on: https://go-review.googlesource.com/10750
Reviewed-by: Andrew Gerrand <adg@golang.org>
2015-06-08 22:21:00 +00:00
Daniel Theophanes 854424e4c8 builder: on windows set files to rw before removing directory tree.
Windows will refuse to remove read-only files. Git marks some of
its files as read-only which prevents the directory tree from
being removed. Before attempting to remove the tree walk the
directory and mark any read-only files as read-write.

Change-Id: I7ae3999a98e1761ce47b7a42ac32ab55f68924ac
Reviewed-on: https://go-review.googlesource.com/10830
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2015-06-08 22:17:34 +00:00
Brad Fitzpatrick 79f3fc0823 cmd/coordinator: test sharding, better status, logs
Also gomote updates which came about during the process of developing
and debugging this.

Change-Id: Ia53d674118a6b99bcdda7062d3b7161279b6ad52
Reviewed-on: https://go-review.googlesource.com/10463
Reviewed-by: Andrew Gerrand <adg@golang.org>
2015-06-04 20:33:49 +00:00
Andrew Gerrand aa078a3723 cmd/coordinator: fix nostream feature
Change-Id: Iae8c46ccf7d87ecd33850ed2c750cb81022be3eb
Reviewed-on: https://go-review.googlesource.com/10494
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2015-05-28 23:14:30 +00:00
Andrew Gerrand ff978d757e cmd/coordinator: add query parameter to disable live log streaming
Change-Id: I2fd16ef9491c42c1ddb7cda9e12de12765fa6827
Reviewed-on: https://go-review.googlesource.com/10490
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2015-05-28 22:20:40 +00:00
Andrew Gerrand dbb9eb4467 cmd/coordinator: delete annoying log message
Change-Id: Ib5b2766636f7fc0a69be23190f05f60bf88f085f
Reviewed-on: https://go-review.googlesource.com/10491
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2015-05-28 22:11:29 +00:00
Chris Manghane ae81ba52e3 cmd/watcher: filter logs by file or directory name
Adds a new flag, "filter," that accepts a comma-separated list of
file or directory names to pass to git log.

Change-Id: Id89018b0591c7af8f425654c9d9256940b6c37f5
Reviewed-on: https://go-review.googlesource.com/10422
Reviewed-by: Andrew Gerrand <adg@golang.org>
2015-05-28 18:54:39 +00:00
Chris Manghane d3682196ec cmd/watcher: record files changed in each commit
Change-Id: I1c0140c564689d6f673494ddaf7c3d7cccd30397
Reviewed-on: https://go-review.googlesource.com/10320
Reviewed-by: Andrew Gerrand <adg@golang.org>
2015-05-28 18:53:12 +00:00
Brad Fitzpatrick 44de54d2c7 cmd/coordinator: query list of dist tests to run
Change-Id: I9be6a50f172f08e24cd81d872e7ce8fe3ce34064
Reviewed-on: https://go-review.googlesource.com/10462
Reviewed-by: Andrew Gerrand <adg@golang.org>
2015-05-28 03:29:06 +00:00
Andrew Gerrand 7d4dc222c7 cmd/coordinator: only write snapshot on successful build
Change-Id: Idc578b51ff8232b6a2790cee714fcd3ecef07ca5
Reviewed-on: https://go-review.googlesource.com/10461
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2015-05-28 00:47:22 +00:00
Brad Fitzpatrick 6de4d3f7ae cmd/coordinator/buildongce: add --dev flag, use dev token files, fix build
Change-Id: I490cb8922a552a3c2528fedd901299c1828f1522
Reviewed-on: https://go-review.googlesource.com/10447
Reviewed-by: Andrew Gerrand <adg@golang.org>
2015-05-27 22:30:39 +00:00