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

56 Коммитов

Автор SHA1 Сообщение Дата
Chris Broadfoot 4932e8bd6b cmd/release: revert "notify explorer of PATH update after install on Win"
This reverts commit 924bb6ba07.
https://golang.org/cl/36324

When running the release builds, we get this error:

   C:\workdir\windows\installer.wxs(155) : error LGHT0094 : Unresolved
reference to symbol 'CustomAction:WixBroadcastEnvironmentChange' in
section 'Product:*'.

The wix documentation indicates we need to enable it:
http://wixtoolset.org/documentation/manual/v3/customactions/wixsettingchange.html

In any case, reverting this change for the 1.8 release.

Updates golang/go#18680.

Change-Id: I86e8d82dc57e585c11846edf589c4bab84a60308
Reviewed-on: https://go-review.googlesource.com/37135
Reviewed-by: Jeff Johnson <jrjohnson@google.com>
Reviewed-by: Chris Broadfoot <cbro@golang.org>
2017-02-16 19:08:14 +00:00
Brad Fitzpatrick b503835043 cmd/release: double-check gzip files are single streams
Updates golang/go#19052

Change-Id: I453dd1cc6016bf137f25f4e5b7a772b2c1888279
Reviewed-on: https://go-review.googlesource.com/36913
Reviewed-by: Joe Tsai <thebrokentoaster@gmail.com>
2017-02-13 18:32:11 +00:00
Brad Fitzpatrick 1e7c6919f1 cmd/buildlet, cmd/release: disable pargzip for release builds
Fixes golang/go#19052

Change-Id: Icf2923ea72290bd99b78e1c2fd9675668157b3ac
Reviewed-on: https://go-review.googlesource.com/36910
Reviewed-by: Quentin Smith <quentin@golang.org>
2017-02-13 17:51:36 +00:00
Kevin Burke 392d3a9c58 buildlet: add context to GetTar
This lets us set a timeout on the HTTP request, which lets us time out the
writeSnapshot call in cmd/coordinator.

Fixes golang/go#18812.

Change-Id: I370448df4d95130c9c5b30ba32459ce844a6c967
Reviewed-on: https://go-review.googlesource.com/36897
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-02-12 17:37:23 +00:00
Jeff Johnson 924bb6ba07 cmd/release: notify explorer of PATH update after install on Win
Windows installer will not broadcast WM_SETTINGCHANGE when a reboot is
pending. This message is required for explorer.exe to reload the PATH
from the registry so future cmd.exe processes will launch with go/bin in
the PATH.

Use the Wix extension to always broadcast this message after install.

More info:
http://wixtoolset.org/documentation/manual/v3/customactions/wixsettingchange.html

Fixes golang/go#18680

Change-Id: I4f3af49f167f3875bbf8e898f4d50ee358b4e35d
Reviewed-on: https://go-review.googlesource.com/36324
Reviewed-by: Chris Broadfoot <cbro@golang.org>
2017-02-07 05:20:46 +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
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
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
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 328c9b8918 all: split builder config into builder & host configs
Our builders are named of the form "GOOS-GOARCH" or
"GOOS-GOARCH-suffix".

Over time we've grown many builders. This CL doesn't change
that. Builders continue to be named and operate as before.

Previously the build configuration file (dashboard/builders.go) made
each builder type ("linux-amd64-race", etc) define how to create a
host running a buildlet of that type, even though many builders had
identical host configs. For example, these builders all share the same
host type (a Kubernetes container):

   linux-amd64
   linux-amd64-race
   linux-386
   linux-386-387

And these are the same host type (a GCE VM):

   windows-amd64-gce
   windows-amd64-race
   windows-386-gce

This CL creates a new concept of a "hostType" which defines how
the buildlet is created (Kube, GCE, Reverse, and how), and then each
builder itself references a host type.

Users never see the hostType. (except perhaps in gomote list output)
But they at least never need to care about them.

Reverse buildlets now can only be one hostType at a time, which
simplifies things. We were no longer using multiple roles per machine
once moving to VMs for OS X.

gomote continues to operate as it did previously but its underlying
protocol changed and clients will need to be updated. As a new
feature, gomote now has a new flag to let you reuse a buildlet host
connection for different builder rules if they share the same
underlying host type. But users can ignore that.

This CL is a long-standing TODO (previously attempted and aborted) and
will make many things easier and faster, including the linux-arm
cross-compilation effort, and keeping pre-warmed buildlets of VM types
ready to go.

Updates golang/go#17104

Change-Id: Iad8387f48680424a8441e878a2f4762bf79ea4d2
Reviewed-on: https://go-review.googlesource.com/29551
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
2016-09-22 23:13:34 +00:00
Chris Broadfoot 51046006d9 cmd/release: use Mac OS 10.11 builders for Mac releases
Change-Id: I0d82e62f5d294abcbc5225c9eb08aaf9422e6e1e
Reviewed-on: https://go-review.googlesource.com/28710
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2016-09-07 19:42:37 +00:00
Brad Fitzpatrick 9702f6a846 dashboard: add s390x cross-compile-only builder and release config
Also modifies cmd/release to wire it up.

Updates golang/go#16443

Change-Id: Ie80a224957f6f662d0aec0fd083e2a57e30436c4
Reviewed-on: https://go-review.googlesource.com/28172
Reviewed-by: Jessica Frazelle <me@jessfraz.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2016-08-31 21:16:19 +00:00
Chris Broadfoot 8e9299f245 build: simplify some usages for Cloud auth
Change-Id: Ieacbf2082a7f2e807349104e8bbcce486ba18437
Reviewed-on: https://go-review.googlesource.com/25492
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2016-08-05 15:34:48 +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 0b53279658 cmd/release: Go requires Windows XP, not Windows 2000
Updates golang/go#16544

Change-Id: I96a7a657f2378b86db04f823c6b7a9918e1d502f
Reviewed-on: https://go-review.googlesource.com/25364
Reviewed-by: Alex Brainman <alex.brainman@gmail.com>
2016-07-31 00:42:00 +00:00
Chris Broadfoot 66c2dc2fee cmd/release: don't try to copy to go/bin/godoc if it already exists
Change-Id: I11e68706bfe0e63baea659ab9982e3bfbe3802c7
Reviewed-on: https://go-review.googlesource.com/25003
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2016-07-18 16:37:59 +00:00
Andrew Gerrand 82423c1e52 cmd/release: remove .github directory before build
Fixes golang/go#15932

Change-Id: I52c8c3b2c888100a9988270aa2ab7a2bfad7715a
Reviewed-on: https://go-review.googlesource.com/24752
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2016-07-05 06:09:07 +00:00
Andrew Gerrand a277b3f099 cmd/release: copy godoc to $GOROOT/bin/godoc instead of gotour
Fixes golang/go#15941

Change-Id: I02dc47c3e6b1426f414db5922d403af040a1af10
Reviewed-on: https://go-review.googlesource.com/23730
Reviewed-by: Ian Lance Taylor <iant@golang.org>
2016-06-03 01:49:56 +00:00
Andrew Gerrand bd6b12a04d cmd/release: move godoc binary from $GOPATH/bin to $GOROOT/bin
After https://golang.org/cl/21701 is in the tree,
cmd/go won't put godoc in $GOROOT/bin automatically.

This should be submitted once the dependent CL is in,
shortly before rolling the 1.7 beta,
as it will break cmd/release for building Go 1.6 and below.

Fixes golang/go#15106

Change-Id: I1de1b658291d1d031f123fa12c18893e538d7e8f
Reviewed-on: https://go-review.googlesource.com/21703
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2016-05-26 19:30:21 +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
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 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
Dave Cheney 9b694ba7f5 build/cmd/release: always maintain the atime/mtime when copying
Fixes #13769

When copying source files for the OSX pkgbuilder (and others) make
sure the atime/mtime of the source is respected.

Change-Id: I75d463d6a3a350f95c5ab4d8b943b60c8cbf2715
Reviewed-on: https://go-review.googlesource.com/18355
Reviewed-by: Andrew Gerrand <adg@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2016-01-08 00:06:16 +00:00
Andrew Gerrand a86a1573c2 cmd/release: supply SHA256 hash when uploading releases
Fixes golang/go#12057

Change-Id: Id66b1ec37a3d2dfb36aac6b70d8b70e537d4f3cb
Reviewed-on: https://go-review.googlesource.com/18353
Reviewed-by: Russ Cox <rsc@golang.org>
2016-01-07 05:21:31 +00:00
Özgür Kesim 06bbf3a139 x/build/cmd/release: on windows, allow direct upgrade of go with MSI
On Windows, the ProductCode must be different¹ for different versions of
the same product while the UpgradeCode must remain the same².

By setting the Id-field in the Product-tag in installer.wxs file to "*" 
(instead of the static GUID), a new ProductCode will be generated by the
WiX-Toolkit on each run of the building process. This allows to upgrade
from previously installed versions of Go without uninstalling them
manually.

Quotes from MSDN
¹) https://msdn.microsoft.com/en-us/library/aa370854(v=vs.85).aspx:
" The ProductCode property is a unique identifier for the particular
  product release, [...]. This ID must vary for different versions and 
  languages. "

²) https://msdn.microsoft.com/en-us/library/aa372375(v=vs.85).aspx:
" The UpgradeCode property is a GUID representing a related set of 
  products. The UpgradeCode is used in the Upgrade Table to search for 
  related versions of the product that are already installed.  "

Fixes golang/go#12213

Change-Id: I5d04eef7786107d0d7d4a913e8799838e8788a4f
Reviewed-on: https://go-review.googlesource.com/18071
Reviewed-by: Alex Brainman <alex.brainman@gmail.com>
2015-12-24 00:23:16 +00:00
Shenghou Ma 558ac4fe06 cmd/release: use armv6l as arm binary arch name
See also golang/go#13669 for rationales.

Change-Id: I5847ec1d3558b24716b8e753b8517105ad66fd3c
Reviewed-on: https://go-review.googlesource.com/18059
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2015-12-20 20:14:45 +00:00
Chris Broadfoot f84ad5277e cmd/release: include the ARM version in the arch identifier
Change-Id: I8744e9dd027da390f55e7d75de2d845b83b73b7f
Reviewed-on: https://go-review.googlesource.com/18021
Reviewed-by: Dave Cheney <dave@cheney.net>
2015-12-18 00:32:10 +00:00
Chris Broadfoot 401a9dbc45 cmd/release: don't remove pkg when building race detector
Fixes golang/go#13664.

Change-Id: I2d4d3ac833f99e052ee35bdc17a061edac085c83
Reviewed-on: https://go-review.googlesource.com/18017
Reviewed-by: Minux Ma <minux@golang.org>
2015-12-17 23:57:59 +00:00
Chris Broadfoot e296e7ebd7 cmd/release: stream output from releaselet with -watch flag
Change-Id: I16dd7a8bde473847faa9ba71fcdd6fe162f9da01
Reviewed-on: https://go-review.googlesource.com/18018
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2015-12-17 23:44:30 +00:00
Brad Fitzpatrick dcc7bc3bcf cmd/release: add --watch flag to stream output
Change-Id: I97ab70f3d05ca17b9ab752bf0a6a7c46c2693167
Reviewed-on: https://go-review.googlesource.com/18016
Reviewed-by: Chris Broadfoot <cbro@golang.org>
2015-12-17 23:04:14 +00:00
Brad Fitzpatrick ba6d109faf cmd/release: add flag to skip tests
Updates golang/go#13663

Change-Id: I95ecbe8d2f6c3c2799ecb81016261bc4f92ba1c9
Reviewed-on: https://go-review.googlesource.com/18013
Reviewed-by: Chris Broadfoot <cbro@golang.org>
2015-12-17 22:33:28 +00:00
Chris Broadfoot c13f7d2fb0 cmd/release: remove unused static flag
Change-Id: I6e44c41a417f764ad8826b90c3ce7b8b1f6aa107
Reviewed-on: https://go-review.googlesource.com/18012
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2015-12-17 22:03:42 +00:00
Dave Cheney 25a7b0ca1e cmd/release: add support for linux-arm
Updates #13066

Change-Id: Ia3feb8fb5bdfdb8b68d51dd3bf8817a6d3ffbcb2
Reviewed-on: https://go-review.googlesource.com/17663
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2015-12-12 01:07:23 +00:00
Chris Broadfoot dc44019055 cmd/release: update to new storage API
Change-Id: I6c06f00a2fc85852257d72c45656462b5e5e41d2
Reviewed-on: https://go-review.googlesource.com/17392
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2015-12-03 21:15:41 +00:00
Brad Fitzpatrick a2a6908254 cmd/release: don't ship the api tool source or binary in releases
Fixes golang/go#13030

Change-Id: I3067bdc91ed33ec9f97af2c2da4f77853e10ce73
Reviewed-on: https://go-review.googlesource.com/16802
Reviewed-by: Andrew Gerrand <adg@golang.org>
2015-11-12 08:50:05 +00:00
Brad Fitzpatrick 8bad2a8c99 buildletclient: simplify Close
Now Close always means destroy.

The old code & API was a half-baked implementation of a (lack of)
design where there was a difference between being done with a buildlet
(with it possibly being reused by somebody else?) and you wanting to
nuke it completely. Unfortunately this just grew messier and more
broken over time.

This attempts to clean it all up.

We can add the sharing ideas back later when there's actually a design
and implementation. (We're not losing anything with this CL, because
nothing ever shared buildlets)

In fact, this CL fixes a problem where reverse buildlets weren't
getting their underlying net.Conns closed when their healthchecks
failed, leading to 4+ hour (and counting) build hangs due to buildlets
getting killed at inopportune moments (e.g. me testing running a
reverse buildlet on my home mac to help out with the dashboard
backlog)

Change-Id: I07be09f4d5f0f09d35e51e41c48b1296b71bb9b5
Reviewed-on: https://go-review.googlesource.com/14585
Reviewed-by: David Crawshaw <crawshaw@golang.org>
Reviewed-by: Andrew Gerrand <adg@golang.org>
2015-09-15 22:42:57 +00:00
Andrew Gerrand 515e4ecf72 cmd/release: don't add superfluous trailing slash to zip directories
Change-Id: I2122c8fee49e6fe4bbc0977770ece607e3bbc55d
Reviewed-on: https://go-review.googlesource.com/13716
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2015-08-20 11:49:15 +00:00
Andrew Gerrand ce7e7fd410 cmd/release: fix upload and execution of releaselet
Change-Id: I9ee23c1473336c914692b0a7aaff799e3e757673
Reviewed-on: https://go-review.googlesource.com/13293
Reviewed-by: Andrew Gerrand <adg@golang.org>
2015-08-06 23:32:40 +00:00
Andrew Gerrand 106fbe96e4 cmd/release: locate releaselet source in workspace
This allows the release command to be run from any directory.

Change-Id: Ia0cac8ad32fb5a232bdf429ec2d8901ffd773d57
Reviewed-on: https://go-review.googlesource.com/12915
Reviewed-by: Andrew Gerrand <adg@golang.org>
2015-08-04 00:04:44 +00:00
Andrew Gerrand d719d266c7 cmd/release: run all.bash when constructing releases
This ensures that each release actually passes the tests.

Fixes golang/go#11943

Change-Id: Ia7bb34a611389fe0d529bdb76ff4d0cd68d3d7cd
Reviewed-on: https://go-review.googlesource.com/12914
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2015-07-31 04:15:32 +00:00
Andrew Gerrand ca5899f41a cmd/release: write out windows archive as a zip
Change-Id: I1cdc305f131d1a62a94109c357e20e4f1efb3c09
Reviewed-on: https://go-review.googlesource.com/12560
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2015-07-29 03:38:22 +00:00
Andrew Gerrand 063dc2fb3c cmd/release: add uploader code
Change-Id: I9e5bd34e2f8a915171cce2c62ebe9419791601b7
Reviewed-on: https://go-review.googlesource.com/12504
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2015-07-23 00:41:49 +00:00
Alex Brainman 2f8733f50c cmd/release: use correct url to fetch windows wix files
Fixes golang/go#11740

Change-Id: Iadf08c5f9459d1a3e9936744ed76a73d03dbae9a
Reviewed-on: https://go-review.googlesource.com/12343
Reviewed-by: Andrew Gerrand <adg@golang.org>
2015-07-17 05:50:08 +00:00
Andrew Gerrand ba1664c4a2 cmd/release: build Windows MSI files
Change-Id: I4a5b1bd900f7d0eead67cb465573496dc2f397b9
Reviewed-on: https://go-review.googlesource.com/12283
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2015-07-16 22:31:46 +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 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
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 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 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