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

21 Коммитов

Автор SHA1 Сообщение Дата
Brad Fitzpatrick 5524b9ef25 all: stop using service accounts, prefer user creds
It's better to authenticate with an identity (e.g. foo@google.com),
rather than all of us copy/pasting a service account JSON (a glorified
access token) around and the server not knowing who's who.

I was previously misled into using service accounts because the gcloud
tool (when run on a GCE VM) strongly urges you not to use user
accounts and says you should be using service accounts instead. But
turns out that's because it assumes you'd never use GCE for
development and only for deployment. That is, gcloud assumes you'd
only use gcloud on desktop/laptop, and then deploy your binary to GCE
where the application itself would use service accounts. (We do use
service accounts for the application, but I also develop on a GCE VM.)

Also, the precursor helper function to FindDefaultCredentials (for
"Application Default Credentials") had a different search order for
credentials and prefered the GCE VM's service account instead of the
user-specific credentials. Now that FindDefaultCredentials uses a good
order we can remove some of our old complexity.

Change-Id: Ia888e264cfb88e977f3ff1a3a4bb583db70466ab
Reviewed-on: https://go-review.googlesource.com/129416
Reviewed-by: Andrew Bonventre <andybons@golang.org>
Reviewed-by: Filippo Valsorda <filippo@golang.org>
2018-08-15 17:50:03 +00:00
Brad Fitzpatrick a6dd626c4c all: use "context" instead of golang.org/x/net/context
Change-Id: I106c81a16eb5b39ff38c6f896095a27f597b3f8d
Reviewed-on: https://go-review.googlesource.com/99016
Reviewed-by: Ian Lance Taylor <iant@golang.org>
2018-03-06 23:26:52 +00:00
Brad Fitzpatrick 8ca758bc18 cmd/upload: add support for updating go1.4-bootstrap-yyyymmdd.tar.gz
Stop doing this by hand and automate it.

Updates golang/go#20672

Change-Id: I2ff02053882f76406c220bf015dd21ad0c0dca1a
Reviewed-on: https://go-review.googlesource.com/79275
Reviewed-by: Ian Lance Taylor <iant@golang.org>
2017-11-22 02:38:27 +00:00
Jess Frazelle 5c1740d89a env: add alpine linux builder
Adds flag to upload to build binary statically.

Updates golang/go#17891

Change-Id: If19b2e2cf9a84fa2b4cc6fdf55d8add5b54abff7
Reviewed-on: https://go-review.googlesource.com/33890
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-04-11 22:20:54 +00:00
Brad Fitzpatrick f0e5510faf cmd/buildlet, dashboard: add linux-arm-arm5 buildlet
Updates golang/go#17082
Updates golang/go#19662

Change-Id: I2b8294f9a8d9144033f8a3479a64186b0f5143a2
Reviewed-on: https://go-review.googlesource.com/38453
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-03-22 23:17:26 +00:00
Brad Fitzpatrick 861725df83 cmd/upload: add --gzip flag
Change-Id: Iecfa82f2fb11cfe7f30b9e735a97ee659f0f23c1
Reviewed-on: https://go-review.googlesource.com/28571
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2016-09-07 04:06:09 +00:00
Jonathan Amsterdam 30d377d8a3 build: update cloud client import paths and options
Change to cloud.google.com/go import paths, and new options package.

Change-Id: I2bb33fe0486d39407c445cafa88f8fc8e6504549
Reviewed-on: https://go-review.googlesource.com/25464
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2016-08-04 18:19:28 +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 c27d60ff02 cmd/upload: update to new Google Cloud Storage API
Change-Id: I8411c688f6aee17a2ebe46ff7081b32c5a0715f4
Reviewed-on: https://go-review.googlesource.com/17314
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2015-12-02 22:58:36 +00:00
Brad Fitzpatrick c4e3f42b3e cmd/upload: add tags flag
Change-Id: Ib9125b882a5b65d1192764df16f69614c42f89fb
Reviewed-on: https://go-review.googlesource.com/16954
Reviewed-by: Andrew Gerrand <adg@golang.org>
2015-11-20 03:22:31 +00:00
Brad Fitzpatrick 9a1973d19f cmd/upload: add flag for GCE project
This allows either overriding the default, or using cmd/upload for
non-builder buckets.

Change-Id: If9a242c9e5cbb4be50768870eec5705b5a265cd5
Reviewed-on: https://go-review.googlesource.com/16800
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2015-11-10 09:10:32 +00:00
Matthew Dempsky d5f422f474 all: fix vet warnings
Change-Id: Ia4519d9b050136b4d46dc8361f546e3c4205a9cd
Reviewed-on: https://go-review.googlesource.com/16288
Reviewed-by: Dave Cheney <dave@cheney.net>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2015-10-25 04:14:39 +00:00
Chris Manghane 108bdf6238 cmd/gomote, cmd/upload, build: add gccgo-specific TODOs and constants
Change-Id: If4060367da6e9a769b692f408584104193e14502
Reviewed-on: https://go-review.googlesource.com/16085
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2015-10-19 21:21:53 +00:00
Brad Fitzpatrick 654bcec846 cmd/upload: support cross-compiling Go targets
Cleans up Makefiles. Correct and much faster now.

Change-Id: I78a7437492d5d1a21b8f7cddf4abffdb70c9c604
Reviewed-on: https://go-review.googlesource.com/15540
Reviewed-by: Andrew Gerrand <adg@golang.org>
2015-10-08 00:34:36 +00:00
Andrew Gerrand 3c77f22665 cmd/coordinator/buildongce, cmd/upload: support dev project
Change-Id: I88a02eb5ec6aae75b8c4ff804334e0716d87d959
Reviewed-on: https://go-review.googlesource.com/10075
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2015-05-14 05:09:49 +00:00
Brad Fitzpatrick 421541fcd9 coordinator: trybot support
Change-Id: Ib7cd89aba1d529944120d6024c120a7b19330378
Reviewed-on: https://go-review.googlesource.com/4680
Reviewed-by: Andrew Gerrand <adg@golang.org>
2015-02-12 23:22:58 +00:00
Brad Fitzpatrick 4f7abaa595 all: remove extdep build tag, now that it's all out of x/tools
The 'build' repo (unlike the 'tools' repo) is allowed to depend on
anything.

Change-Id: I4caa9fe61bccf05f488152eac53ed5769a848d4d
Reviewed-on: https://go-review.googlesource.com/3113
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2015-01-21 16:18:31 +00:00
Andrew Gerrand fa8373a2a0 Update import paths after move from tools repo
Also:
- Move the watcher to cmd/watcher (somehow this was missed earlier).
- Move dashboard package from the repo root to its own directory.
- Update docker build scripts. (Although not yet the version hashes in
  the Dockerfiles; this leaves the docker builds broken, but they were
  already broken after moving the builder to cmd/builder. They'll be
  fixed in a followup CL after this one is submitted.)

Change-Id: I29a9758da1f3c60446e3ce18174c0df26e4d8325
Reviewed-on: https://go-review.googlesource.com/3077
Reviewed-by: Andrew Gerrand <adg@golang.org>
2015-01-21 06:37:43 +00:00
Brad Fitzpatrick 874c0834ce dashboard: start of cmd/gomote buildlet client, more packification
Change-Id: I874f4f5ef253cf7f1d6d5073d7c81e76fa1de863
Reviewed-on: https://go-review.googlesource.com/2981
Reviewed-by: Andrew Gerrand <adg@golang.org>
2015-01-20 03:05:44 +00:00
Brad Fitzpatrick d2d8c110f4 dashboard: fixes from tree move, use 'extdep' build tag consistently
extdep means the package has contains external dependencies and will
be omitted from the regular x/tools build + tests.

Change-Id: I48d9161665811f0a0dc988d6f0c25d9c14b9e4ab
Reviewed-on: https://go-review.googlesource.com/2892
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2015-01-15 18:52:22 +00:00
Brad Fitzpatrick 4821e1d4e1 dashboard: rearrange tree, in prep for packagification
Package main binaries now go under cmd, leaving the top level for
similarly-named packages.

I'll be moving a lot of data structures and functions out of the
commands and into common packages.

A future CL will also unify all the "+build whatever" restrictions
into one common build tag, since there will be so much package sharing
coming up. Probably they will become "+build extdep", to indicate that
they have dependencies outside of x/tools.

Change-Id: Idc198e0dfa933b5f5de8f2b581533e8d299d2293
Reviewed-on: https://go-review.googlesource.com/2738
Reviewed-by: Andrew Gerrand <adg@golang.org>
2015-01-15 02:58:11 +00:00