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

23 Коммитов

Автор SHA1 Сообщение Дата
Brad Fitzpatrick c8d18b7b8d env, buildlet/stage0, xb: build stage0 hermetically, add xb docker support
We used to build the buildlet/stage0 binary once, upload it to GCS,
and then future Docker builds of environments would slurp it down back
off the network (unversioned) and back that copy into its image
forever.

Now the buildlet/stage0 binary gets hermetically built as part of
env/*/Dockerfiles and GCS uploads/downloads aren't involved.

While we're at it, move more docker logic out of Makefiles and into
xb, including things like building dependent images (stage0) and
verifying the versions of dependent layers (e.g. that "golang:1.10" is
Go 1.10.2, and not Go 1.10 or Go 1.10.1).

Change-Id: I2a08d951b9fa8143fb3aee3ec7c2cc78d216962e
Reviewed-on: https://go-review.googlesource.com/113135
Reviewed-by: Andrew Bonventre <andybons@golang.org>
2018-05-21 17:49:41 +00:00
Alberto Donizetti 2021e17eae env/linux-x86-sid: add QEMU
Install qemu-user on the sid x86 builders to enable the QEMU user-mode
emulation tests added in CL 111477.

Change-Id: I28be452a843b7526b7d452b085e6fbfeb3a19ae7
Reviewed-on: https://go-review.googlesource.com/112077
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-05-08 14:50:01 +00:00
Filippo Valsorda 86f50f009a all: replace "gcloud docker" with "docker"
From the "gcloud docker" output:

WARNING: `gcloud docker` will not be supported for Docker client
versions above 18.03. Please use `gcloud auth configure-docker` to
configure `docker` to use `gcloud` as a credential helper, then use
`docker` as you would for non-GCR registries.

Not adding "gcloud auth configure-docker" to the Makefiles as it spams
and there are implicit required authentication steps already anyway.

Change-Id: I5bd1177e82d30a6590126a307bee01d0acee9d6a
Reviewed-on: https://go-review.googlesource.com/108560
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-04-20 23:51:18 +00:00
Alberto Donizetti c39cfe7466 env/linux-x86-sid: add upx (executables compressor)
Updates golang/go#16706

Change-Id: I56ec0f82119371bc7a1d6b7d8d9ba0fc7faa7fad
Reviewed-on: https://go-review.googlesource.com/72372
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-11-02 20:18:52 +00:00
Brad Fitzpatrick 5b0ec29935 env: use gcloud docker -- push
The '--' separating gcloud commands from docker commands will become
mandatory soon, and this quiets gcloud spam warning about.

Change-Id: I6ddec79c5f1fe28135a5e7a20c616536e4ddab98
Reviewed-on: https://go-review.googlesource.com/40475
Reviewed-by: Jessica Frazelle <me@jessfraz.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-04-12 18:28:40 +00:00
Jess Frazelle 00733c0d2b env/linux-x86-{sid,std-kube}: optimize image size
Cleanup and optimize Dockerfiles for making images smaller.

Before:
REPOSITORY                       TAG                 IMAGE ID            CREATED             SIZE
go-builders/linux-x86-sid        latest              9b9e88b7655c        55 seconds ago      1.12GB
go-builders/linux-x86-std-kube   latest              91a5a7a8cb1f        8 seconds ago       986MB

After:
REPOSITORY                       TAG                 IMAGE ID            CREATED             SIZE
go-builders/linux-x86-sid        latest              aab9e758925e        7 seconds ago       731MB
go-builders/linux-x86-std-kube   latest              8309123c2745        2 minutes ago       577MB

Change-Id: I613896faf0d298448995952d265b1729cd03392c
Reviewed-on: https://go-review.googlesource.com/40409
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-04-12 15:54:25 +00:00
Brad Fitzpatrick 171a17dca8 env/linux-x86-sid: convert from GCE VM to Kubernetes
And update it. What we used to call "sid" was probably ancient.

Change-Id: I76c1aad60eb655513119eaad0550ba5e0df3e9c5
Reviewed-on: https://go-review.googlesource.com/40399
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-04-12 02:12:33 +00:00
Salmān Aljammāz 74eb8a6846 linux-x86-sid: log to console
Also disable systemd-logind, which we don't need. golang/go#9873

Change-Id: I9a9e138c276fe13b48af07691c1cc1062c5aca90
Reviewed-on: https://go-review.googlesource.com/5528
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2015-03-01 23:58:14 +00:00
Brad Fitzpatrick f0728e33ea env: update linux-x86-sid to be a VM
Fixes #9873

Change-Id: I08c501ef52ebde4cdbc48fe45a5342488000c433
Reviewed-on: https://go-review.googlesource.com/4874
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2015-02-18 21:53:43 +00:00
Paul Nasrat de1efdcb09 env: update linux builds to include gdb.
Enables test for runtime-gdb.py to be run.

Change-Id: If8311cf159045b4eb497ecd0e74e2415fb18e3f9
Reviewed-on: https://go-review.googlesource.com/3102
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2015-01-22 22:25:42 +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 a63e9f17ff env: update Dockerfiles after repo move
Change-Id: Ia66164be270402dc171a59bfd8dee9cc6b439242
Reviewed-on: https://go-review.googlesource.com/3079
Reviewed-by: Andrew Gerrand <adg@golang.org>
2015-01-21 06:55:39 +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 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
Brad Fitzpatrick 5748f98fca dashboard: consolidate upload code, update to new oauth2 libraries
Adds dashboard/upload/upload.go, instead of oddly shoving it as part
of the coordinator/buildongce tool.

And as part of that (in order to compile and test buildongce/create.go
without installing mercurial on this machine), I updated it from
goauth2 to oauth2.

Despite this "just" being a cleanup CL, it took forever because I hit
OAuth2+Cloud Storage+Web UI woes along the way, documented partially
in upload.go. The web UI misled me for a long time. Maybe I shouldn't
have used service accounts, but it does make configuration easier for
upload.go. The buildongce/create.go probably should use them too,
but I can do that later. I'm done cleaning for now.

Change-Id: Icb8e3decb682d3685edffecea2a10fcb4e385e10
Reviewed-on: https://go-review.googlesource.com/2731
Reviewed-by: Andrew Gerrand <adg@golang.org>
2015-01-14 18:11:56 +00:00
Brad Fitzpatrick b3a2721c6c dashboard/env: update Linux builders to contain Go 1.4 for GOROOT_BOOTSTRAP
Change-Id: I256168d1bbe542ae78e4c1e7c4879d2b62b74c7e
Reviewed-on: https://go-review.googlesource.com/2690
Reviewed-by: Andrew Gerrand <adg@golang.org>
2015-01-13 01:43:41 +00:00
Brad Fitzpatrick fd1d48cd2c dashboard: more environment cleanups
sid was trying to use hg still.

And remove curl everywhere (except nacl). It's unnecessary.

Change-Id: I2a235d83b2bc7cf599c8de5796c724d8f368348e
Reviewed-on: https://go-review.googlesource.com/1368
Reviewed-by: David Symonds <dsymonds@golang.org>
2014-12-12 05:59:31 +00:00
Brad Fitzpatrick a406796b77 dashboard: update Linux clang, nacl, and sid builders
Change-Id: I69cda2fb7b0047201999781cdb27f4a9013920c6
Reviewed-on: https://go-review.googlesource.com/1367
Reviewed-by: David Symonds <dsymonds@golang.org>
2014-12-12 05:39:18 +00:00
Andrew Gerrand 221181f463 x/tools/dashboard/env: bump known good builder revision
LGTM=dsymonds
R=dsymonds
CC=golang-codereviews
https://golang.org/cl/176900043
2014-11-17 13:08:44 +11:00
Andrew Gerrand bf33b1bef7 go.tools/dashboard/env: use newer builder
This version of the builder can handle the new golang.org/x/ paths.

LGTM=bradfitz
R=bradfitz
CC=golang-codereviews
https://golang.org/cl/174750043
2014-11-10 11:49:19 +11:00
Andrew Gerrand 440f676b09 go.tools: use golang.org/x/... import paths
Rewrite performed with this command:
  sed -i '' 's_code.google.com/p/go\._golang.org/x/_g' \
    $(grep -lr 'code.google.com/p/go.' *)

LGTM=rsc
R=rsc
CC=golang-codereviews
https://golang.org/cl/170920043
2014-11-10 08:50:40 +11:00
Brad Fitzpatrick 398721d571 dashboard: add Debian sid builder
Update golang/go#8382

LGTM=rsc
R=adg, rsc
CC=golang-codereviews
https://golang.org/cl/150090044
2014-09-26 15:02:51 -07:00