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

1556 Коммитов

Автор SHA1 Сообщение Дата
Jeff Johnson 61f11a357f cmd/release: prompt MSI users to uninstall existing golang
The MSI will uninstall any existing versions of Go before installing
a new one. This is good because managing multiple versions of Go is
unsupported but the user has no idea this is going to happen.

- Duplicate the WixUI_InstallDir UI Sequence[1]
- Show a dialog box[2] before uninstalling the existing version.
  Existing version detection is done through the `installed` reg key.
  Other methods (eg PREVIOUSVERSIONINSTALLED) did not work.

[1] http://wixtoolset.org/documentation/manual/v3/wixui/wixui_customizations.html#changing-the-ui-sequence-of-a-built-in-dialog-set
[2] http://i.imgur.com/3IChlhf.png

Fixes golang/go#16305

Change-Id: Id71af1b89e70fccc5befa391d47fe51a446e4722
Reviewed-on: https://go-review.googlesource.com/48010
Reviewed-by: Alex Brainman <alex.brainman@gmail.com>
2017-07-14 21:22:04 +00:00
Kevin Burke fefb8562f0 gerrit: switch GetChange argument type
Matching what's currently defined in the Gerrit package, instead of
the int32 type defined in maintner.

Change-Id: I463c7a83e9c9e7d933a2375790d35d59056ea09d
Reviewed-on: https://go-review.googlesource.com/48570
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-07-14 17:58:47 +00:00
Kevin Burke afc6d121f3 gerrit: add GetChange API call
GetChange returns details about a specific change, and we need it for
CL 46390.

Change-Id: I0047e7170e4c9f822663640e28ee4eaf24b184de
Reviewed-on: https://go-review.googlesource.com/48553
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-07-14 17:27:11 +00:00
Shawn Walker-Salas 22e055b434 x/build: add Solaris amd64 release builder to dashboard
Fixes golang/go#20949

Change-Id: I4f85ee76783a1240a2ebd4a2a1f167ab849fcebe
Reviewed-on: https://go-review.googlesource.com/47811
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-07-14 17:15:58 +00:00
Brad Fitzpatrick d525484783 dashboard: add netbsd-8 builder
Fixes golang/go#20852

Change-Id: I68d72a488779cdd65a59b9c25429632bf4a26dd4
Reviewed-on: https://go-review.googlesource.com/48552
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-07-14 17:12:24 +00:00
Benny Siegert e5d50625c9 x/build: upgrade netbsd-amd64 builder to netbsd-8
There have been a number of fixes for issues found with the Go test
suite in kqueue, signal handling and vio drivers.

Updates golang/go#20852

Change-Id: I95861220990c05f3e89a4a40893e17758d29ebe0
Reviewed-on: https://go-review.googlesource.com/48091
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-07-14 16:51:58 +00:00
Andrew Bonventre 440ca734e5 devapp: some CSS tweaks to the contributor dashboard
Change-Id: I00a515ced978902541f1cdb3fcdc404c07e1e460
Reviewed-on: https://go-review.googlesource.com/48456
Reviewed-by: Andrew Bonventre <andybons@golang.org>
2017-07-13 23:32:11 +00:00
Andrew Bonventre 44295aee19 devapp: hook up Gerrit CLs and autoupdate page
Change-Id: Ifcdf02a4f453ae6a48fae6f69f2956d36e5ace25
Reviewed-on: https://go-review.googlesource.com/48450
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-07-13 23:30:43 +00:00
Andrew Bonventre cc6dcd2212 devapp: fix tests
Change-Id: I459a75c2a33bd88c9cd79ee6b5fae95a19d48fa1
Reviewed-on: https://go-review.googlesource.com/48350
Reviewed-by: Kevin Burke <kev@inburke.com>
Reviewed-by: Andrew Bonventre <andybons@golang.org>
2017-07-13 06:20:16 +00:00
Brad Fitzpatrick aee02ad64d cmd/gitlock: new tool to lock git dependencies in place in Dockerfiles
Fixes golang/go#20747

Change-Id: I8fe03af0fb8db4d1fd7c396d7b228b87209a9208
Reviewed-on: https://go-review.googlesource.com/47971
Reviewed-by: Kevin Burke <kev@inburke.com>
2017-07-13 04:54:15 +00:00
Andrew Bonventre 27405e4a4c devapp: add GopherCon community dashboard
+ Add html/css/js base code. Does not do real-time updating
+ Currently only registration is supported as an activity

Change-Id: I82c3d62ec1ffce30e6a20eb85503be6be52194a6
Reviewed-on: https://go-review.googlesource.com/47935
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-07-12 18:14:28 +00:00
Andrew Bonventre 6990c3464a maintner, devapp: initial integration of maintner
+ Add UpdateWithLocker method to maintner.Corpus to allow an
  external locker to be passed that will be held during mutations.
+ Add OwnerID to maintner.GerritCL that returns the Gerrit user ID
  of a change using its meta commits.
+ Add maintner corpus to server.
+ Add /imfeelinglucky and /imfeelinghelpful endpoints that redirect
  to a random HelpWanted GitHub issue.
+ Add initial scaffold for GopherCon dashboard.

Change-Id: I2567b084f012cad5a9b4dee07e92be05088ac9d8
Reviewed-on: https://go-review.googlesource.com/47830
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-07-07 20:23:05 +00:00
Brad Fitzpatrick d59834090c cmd/gopherbot: fix (avoid) updateNeeds task scheduling
CL 46838 added the update-needs task, to remove the prior NeedsFoo
label when NeedsBar was added.

Prematurely worrying about making it cheaper, I added some last
modified tracking code to avoid running a task on an issue if it had
already been run before the issue was last modified. For unknown
reasons, that code didn't work and this task wasn't being run. Add a
TODO for now, and avoid it. Use a different check to keep it cheap
instead.

Also adds a maintner.GitHubIssue.ForeachLabel method I used to find
label IDs. Not used otherwise, but might be useful later.

Fixes golang/go#20819

Change-Id: Ia6260661310c9f25a99b256bbf4d398853271577
Reviewed-on: https://go-review.googlesource.com/47134
Reviewed-by: Andrew Bonventre <andybons@google.com>
2017-06-29 17:30:52 +00:00
Brad Fitzpatrick 070f1785b2 maintner: don't use github caching transport after getting webhook update
If we got a webhook update, we know there's new data. We're not in
polling mode, so don't use the caching transport.

The caching transport was being too agressive and we were missing
label changes to issues, since the Issues.ListByRepo call to get
issues sorted by mod time descending was being cached.

This speeds up gopherbot. Gopherbot can react in realtime to changes,
but only if they make it into maintner in realtime.

Updates golang/go#20819

Change-Id: I5c0a0bbcb4bf0d9d484b9279ff5a80732b4e1269
Reviewed-on: https://go-review.googlesource.com/47133
Reviewed-by: Andrew Bonventre <andybons@google.com>
2017-06-29 17:28:02 +00:00
Brad Fitzpatrick 3b550cd671 app: fix XSS
build.golang.org does't use any cookies or allow any non-read actions,
but fix anyway.

Change-Id: Ib9002753de268083d7e16ce41cd7ff950f7f28a4
Reviewed-on: https://go-review.googlesource.com/47091
Reviewed-by: Chris Broadfoot <cbro@golang.org>
2017-06-28 22:58:17 +00:00
Andrew Bonventre d2321a9ebd devapp: serve favicon with definitive content-type
It will differ depending on the box it’s being run on, breaking
tests depending on the environment.

Change-Id: I9d6e6ef3c89c922ab8fa3a4a52c364ed02230b7e
Reviewed-on: https://go-review.googlesource.com/47033
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-06-28 19:05:55 +00:00
Brad Fitzpatrick 7bd4334799 cmd/gopherbot: auto-remove old Needs labels
Fixes golang/go#20819

Change-Id: I9016a0f9dd5553961e9f526e9d5a3dfa22759379
Reviewed-on: https://go-review.googlesource.com/46838
Reviewed-by: Kevin Burke <kev@inburke.com>
2017-06-28 16:50:19 +00:00
Andrew Bonventre 058437e7a7 devapp: redirect to TLS when autocert is turned on
Updates golang/go#20691

Change-Id: I5247683f62cbe922a880246dbd2e99e31686e2d3
Reviewed-on: https://go-review.googlesource.com/46911
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-06-27 23:43:21 +00:00
Andrew Bonventre 9a31848956 devapp: add ticker to update dashboard data in place of /update
Updates golang/go#20691

Change-Id: I3c691c647860d541d53497c9923383421a5d2298
Reviewed-on: https://go-review.googlesource.com/46837
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-06-27 21:51:27 +00:00
Andrew Bonventre 69f93e2edb devapp: remove App Engine code
This change removes all but the / and /release endpoints, moving
things around and deleting all App Engine-specific code while
attempting to not make many core logic changes (those will come in a
follow-up change).

Updates golang/go#20691

Change-Id: Ie8fa184578177cc2cb3c070e9108cf27d9e6f689
Reviewed-on: https://go-review.googlesource.com/46832
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-06-27 18:50:50 +00:00
Shawn Walker-Salas 53a3d0e42d dashboard: add Oracle Solaris development builder
Fixes golang/go#15072

Change-Id: I85677636a0f7f8b6a7b2405bb0669c39cc1da7f0
Reviewed-on: https://go-review.googlesource.com/46831
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-06-27 17:52:00 +00:00
Brad Fitzpatrick d925a7bd2b cmd/coordinator: add CONNECT proxy support in reverse buildlet mode
Updates golang/go#15072

Change-Id: I56767a421428418add66aa9b50f0baf9aa202538
Reviewed-on: https://go-review.googlesource.com/46724
Reviewed-by: Andrew Bonventre <andybons@google.com>
Reviewed-by: Shawn Walker-Salas <shawn.walker@oracle.com>
2017-06-27 05:14:48 +00:00
Andrew Bonventre 225b18be82 devapp/devappserver: support TLS for local dev and prod via autocert
Updates golang/go#20691

Change-Id: If0f160713496b1c9ebceacb4975e9afa44539e5a
Reviewed-on: https://go-review.googlesource.com/46720
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-06-26 22:24:21 +00:00
Chris Broadfoot 5c6aa2c3b5 version: add go1.9beta2
Change-Id: I7c3d889abfa14e205cb931379c248f1aad8bcd9f
Reviewed-on: https://go-review.googlesource.com/46718
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-06-26 20:43:23 +00:00
Andrew Bonventre abffef5383 devapp/devappserver: add dev and prod kubernetes configurations
Updates golang/go#20691

Change-Id: I816fc059473ded8ef85e9bb6fb6cb73e41ba21d6
Reviewed-on: https://go-review.googlesource.com/46710
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-06-26 18:20:45 +00:00
Brad Fitzpatrick 51d6777076 cmd/scaleway: add -list, -list-all flags, show status, reboot wedged machines
Change-Id: Iacb3c84011330fdc7f3dfb168c33d81aec9b58cd
Reviewed-on: https://go-review.googlesource.com/46570
Reviewed-by: Andrew Bonventre <andybons@google.com>
2017-06-23 17:32:40 +00:00
Brad Fitzpatrick 16ad6774c2 dashboard: fix build
Tests (and binaries) panicked before this.

Change-Id: If984e9e30016d403af2a94971fc4a419a269b73a
Reviewed-on: https://go-review.googlesource.com/46510
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-06-23 14:07:39 +00:00
Andrew Bonventre 3cc3abb423 devapp/devappserver: add kubernetes service and deployment configs
Updates golang/go#20691

Change-Id: Ia92422213111a965136c33359c16b17ca3fabec5
Reviewed-on: https://go-review.googlesource.com/46465
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-06-22 21:47:29 +00:00
Sarah Adams b60de1f46f all: dockerize scaleway builders
Fixes golang/go#20397

Change-Id: I353e879e61aeef56f0c228bbd37cc1eea2ce8b4e
Reviewed-on: https://go-review.googlesource.com/43612
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-06-22 20:32:39 +00:00
Jeff Johnson fb385a2208 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.

- Updated to wix v3.11[1]
- Added sha256 validation of wix binary after download
- Use the Wix extension[0] to always broadcast WM_SETTINGCHANGE after install.
- Removed to RegistryKey/@Action in installer.wxs suppress warning CNDL1138.
  The param is deperacated and not needed.

[0] http://wixtoolset.org/documentation/manual/v3/customactions/wixsettingchange.html
[1] https://github.com/wixtoolset/wix3/releases/tag/wix311rtm

Fixes golang/go#18680

Change-Id: I645b1e4a32bf0c1df2925d53474a38a7d7ddec94
Reviewed-on: https://go-review.googlesource.com/46458
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-06-22 17:21:21 +00:00
Jess Frazelle 49954a56d0 cmd/makemac: add govc env vars to systemd service file
Fixes golang/go#20224

Change-Id: Iae7d70bdf0950541d774d12077552153ce1a15e0
Reviewed-on: https://go-review.googlesource.com/46332
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-06-21 20:24:08 +00:00
Andrew Bonventre b2bd0d6da5 devapp: further preparation for running on GKE
+ Remove superfluous check for PORT env var since only the flag
  will be used.
+ Remove HTML being written to the page before escaping step,
  causing jank.
+ Grab the GitHub token from GCE metadata if it’s available.

Updates golang/go#20691

Change-Id: I10fbc163ee91907ef0b843c823f40fd87a62f476
Reviewed-on: https://go-review.googlesource.com/46210
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-06-21 17:58:18 +00:00
Jess Frazelle 07279cc7e6 makemac: add systemd service file
Fixes golang/go#20224

Change-Id: Ia1639dad1760e120c23dc495d8341dfaee86ff63
Reviewed-on: https://go-review.googlesource.com/46330
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-06-21 17:43:31 +00:00
Andrew Bonventre 4b84ce7680 devapp/devappserver: add Dockerfile in preparation for running on GKE
Since we can’t run an App Engine Flex app on *.golang.org (see
issue), the Flex app.yaml file is removed.

Updates golang/go#20691

Change-Id: Id775962349a88b119c9fe671f9a5180f70528836
Reviewed-on: https://go-review.googlesource.com/46133
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-06-20 20:04:40 +00:00
Kevin Burke 9fb5d0849b maintner: suppress spurious error message
Currently maintnerd prints

    2017/06/17 15:00:16 Unknown error type <nil>: <nil>

if it successfully downloads a file. It shouldn't log if there was no
error.

Change-Id: I01c4f2bde616d709d5c081219f9c123d6ea6a678
Reviewed-on: https://go-review.googlesource.com/46007
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-06-18 16:17:44 +00:00
Brad Fitzpatrick 07714b07ce cmd/release: add linux-arm64
Updates golang/go#19082

Change-Id: I02cd4f0e06e1f405761967dd550cf6c7a638835a
Reviewed-on: https://go-review.googlesource.com/45913
Reviewed-by: Chris Broadfoot <cbro@golang.org>
2017-06-15 20:33:50 +00:00
Brad Fitzpatrick 433d02824b cmd/relnote: ignore unmerged CLs
Change-Id: Ie76e8c11663b0092bae5f842d40e81b964e767d0
Reviewed-on: https://go-review.googlesource.com/45781
Reviewed-by: Matt Layher <mdlayher@gmail.com>
Run-TryBot: Matt Layher <mdlayher@gmail.com>
2017-06-14 22:19:35 +00:00
Chris Broadfoot aa7202f746 version: add go1.9beta1
Change-Id: I6f349ee39be7628c7d421a759e40796d7d984c1f
Reviewed-on: https://go-review.googlesource.com/45782
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-06-14 22:13:56 +00:00
QiuxuanZhu 77c531d15a cmd/coordinator: change trybot success message
Fixes golang/go#20585

Change-Id: I4208733af69feebb61db846576b19ede290cd5be
Reviewed-on: https://go-review.googlesource.com/45710
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-06-14 16:44:34 +00:00
Brad Fitzpatrick 5aedb5fe08 all: update to grpc.go4.org and grpc-codegen.go4.org package names
Fixes camlistore/go4#30

Change-Id: Id914ac18bb5bed723a14147d239496aa165e1f3a
Reviewed-on: https://go-review.googlesource.com/45272
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-06-09 22:04:38 +00:00
Brad Fitzpatrick df7f651c2b dashboard: limit openbsd-386 and plan9 to a few builds at once
Updates golang/go#20564

Change-Id: I32d4afb892231fd1067164f103b88c77930ef2b5
Reviewed-on: https://go-review.googlesource.com/45230
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-06-09 18:44:42 +00:00
Brad Fitzpatrick 08949ae08e buildgo: change to package directory before running benchmarks
Fixes golang/go#20584

Change-Id: I7acf5375a973bc7957914143d67efcf5607ea950
Reviewed-on: https://go-review.googlesource.com/44816
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-06-09 18:40:42 +00:00
Brad Fitzpatrick b5a146f37c cmd/relnote: add HTML output and delta-from-last-HTML support
Updates golang/go#20587

Change-Id: Ie4ba1a4c31d363310b654bb6dff5080b0528cb32
Reviewed-on: https://go-review.googlesource.com/45011
Reviewed-by: Ian Lance Taylor <iant@golang.org>
2017-06-06 21:14:51 +00:00
Brad Fitzpatrick ff60292ad1 maintner: make godata.Get use locally cached data when network is unavailable
This is "Airplane mode". I had cached the latest maintner data before
a flight, but using godata.Get in flight failed when it tried to
update it.

Instead, detect the lack of network and just use whatever's available
instead.

Change-Id: Ieea29f844353377b3c36a531642a716f91f34436
Reviewed-on: https://go-review.googlesource.com/44813
Reviewed-by: Kevin Burke <kev@inburke.com>
2017-06-06 04:31:44 +00:00
Brad Fitzpatrick 6cbbc637ae cmd/relnote: basic tool to summarize release notes from Gerrit
It'll need to be expanded later to let the caller specify which
release, but the lack of flags works for now since we just started
using RELNOTE annotations.

Change-Id: I2a7d7cde050fe50e53010cbe6358ad1887618725
Reviewed-on: https://go-review.googlesource.com/44814
Reviewed-by: Ian Lance Taylor <iant@golang.org>
2017-06-05 18:19:04 +00:00
Quentin Smith 2d2dfd477a cmd/coordinator, internal: move benchmark building to separate package
This moves getSourceTgz* to a new package called sourcecache. The
original functions couldn't be left in coordinator.go because that
would cause a single process to have multiple caches.

The code for building and running benchmarks is moved into the buildgo
package, and the public API becomes GoBuilder.EnumerateBenchmarks and
Run on the resulting BenchmarkItem objects.

Updates golang/go#19871

Change-Id: I28b660e1cdaa6d1c6b0378c08de30f5e58316cc6
Reviewed-on: https://go-review.googlesource.com/44211
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-05-26 19:34:43 +00:00
Quentin Smith 41170a3b04 cmd/coordinator, internal/buildgo: add RunMake
This moves RunMake from coordinator.go, allowing other packages to
build Go on a buildlet.

Updates golang/go#19871

Change-Id: Ic0e7c056020ef434f0620ae816f52b9112ea1c8d
Reviewed-on: https://go-review.googlesource.com/44176
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-05-26 14:24:25 +00:00
Quentin Smith 9a67679eab cmd/coordinator, internal/buildgo: create buildgo package
This package contains the BuilderRev type moved from cmd/coordinator.

The rest of the CL is simply updating coordinator with the new
exported names of the type and its fields.

This refactoring is in preparation for moving the benchmark building and running
code into a separate package.

(Most of the diff could have been avoided with a type alias, but I
assume we'd rather not do that.)

Updates golang/go#19871

Change-Id: Ib6ce49431c8529d6b4e72725d3cd652b9d0160db
Reviewed-on: https://go-review.googlesource.com/44175
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-05-26 14:10:59 +00:00
Quentin Smith 2ec582fede cmd/coordinator: create separate spanlog package
This moves main.spanLogger and main.eventSpan to spanlog.Logger and
spanlog.Span. This change is necessary to start pulling build and
benchmark code out of coordinator. The interfaces cannot simply be
copied because Logger contains a function whose return type is
Span, so the interface must be defined in exactly one place.

Updates golang/go#19871

Change-Id: I0a48192e6a5c8f5d0445f4f3d3cce8d91c90f8d3
Reviewed-on: https://go-review.googlesource.com/44174
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-05-25 23:25:32 +00:00
Quentin Smith 93871fa775 cmd/coordinator: remove buildStatus from most of benchmarks.go
This refactoring is in preparation for moving benchmarks.go to a
separate package.

Updates golang/go#19871

Change-Id: I2b30bf5416937e52b603aec8102131fdccceee42
Reviewed-on: https://go-review.googlesource.com/44173
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-05-25 20:23:50 +00:00