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

1595 Коммитов

Автор SHA1 Сообщение Дата
Bryan C. Mills 001aa5e173 cmd/debugnewvm: provide explicit scope for OAuth tokens
Otherwise, if we use debugnewvm with credentials for a standard
service account, the server rejects the instance creation request with
“Empty or missing scope not allowed.”

Change-Id: Id7546636edcce7e2b3f25b56c75e6dedf0887520
Reviewed-on: https://go-review.googlesource.com/110615
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-05-01 16:43:59 +00:00
Andrew Bonventre ccab5db2df dashboard: increase TIMEOUT_SCALE to 2 for windows-amd64
cmd/go takes ~188 seconds on windows-amd64, which is over the
default 180 second limit. Bump up the timout rate.

Change-Id: Ib0e5289ab6c4d6127d18375e3a72453818b984a8
Reviewed-on: https://go-review.googlesource.com/110415
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-05-01 14:03:32 +00:00
Filippo Valsorda 894d52ec08 cmd/gopherbot: close cherry-pick issues on merge to release branch
Change-Id: I1cbef83c32cffd33e2af9fda35c16b0cbd807505
Reviewed-on: https://go-review.googlesource.com/110339
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-04-30 19:15:58 +00:00
Filippo Valsorda 7387fe1553 cmd/gopherbot: make createGitHubIssue deduplication resilient to out-of-order events
Fixes golang/go#25031

Change-Id: I0424e1c3c73276595a0f8646b34b2545e261240a
Reviewed-on: https://go-review.googlesource.com/108977
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-04-27 19:46:01 +00:00
Kevin Burke eb31ece99b cmd/gopherbot: fix Printf vet failure
Currently "go test" on tip fails because there's no argument passed
for Printf.

Change-Id: I66a028bcb0f10f106c0dcc9643ba878363521127
Reviewed-on: https://go-review.googlesource.com/109458
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-04-26 13:02:36 +00:00
Filippo Valsorda b356aa6e0d cmd/gopherbot: log issue actions also off dry-run mode
Change-Id: I548576a8d9a10a6ce882a017fa87389d0c27ce04
Reviewed-on: https://go-review.googlesource.com/108976
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-04-25 17:23:40 +00:00
Filippo Valsorda 58ba60d65f cmd/gopherbot: correctly use milestone numbers instead of IDs
Fixes golang/go#25024

Change-Id: I5bd9dc01d798852a57e72f332c28056510c81e38
Reviewed-on: https://go-review.googlesource.com/108975
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-04-23 22:45:51 +00:00
Filippo Valsorda b977f68462 cmd/gopherbot: apply minor milestones to backport issues
Change-Id: I543b66ffaa6ec8231026542dd96ad507a64a287f
Reviewed-on: https://go-review.googlesource.com/108856
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-04-23 22:12:33 +00:00
Filippo Valsorda db5ecb79ec cmd/gopherbot: handle backport requests in closed issues
There is a reasonable use case for going back and backporting a fix for
a closed issue, or the user might have forgotten to open the backport
issues sooner.

Change-Id: I5b9afd10764c7b1438f163ff512ec1e2961b1afa
Reviewed-on: https://go-review.googlesource.com/108915
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-04-23 21:53:12 +00:00
Brad Fitzpatrick 6e90891687 devapp: hide CLs with hashtag wait-author
Updates golang/go#24836

Change-Id: I9964dc7ec2de21201b9258709803623482aa4104
Reviewed-on: https://go-review.googlesource.com/108219
Reviewed-by: Andrew Bonventre <andybons@golang.org>
2018-04-23 18:06:37 +00:00
Filippo Valsorda 32ada1b43a cmd/gopherbot: fix cherry-pick messages
The mismatch in the prefix search made gopherbot always try to open
issues, but the duplicate issue safety engaged.

Also tweak the language a bit.

Change-Id: I26b3aa02b9a3a041bee2343097a535dfacf85d08
Reviewed-on: https://go-review.googlesource.com/108835
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-04-23 17:29:53 +00:00
Filippo Valsorda 9f296d8351 cmd/gopherbot: re-print the action name at each cycle
Change-Id: I080265111ea6bd6e52bde7de72cf394cda882552
Reviewed-on: https://go-review.googlesource.com/108855
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-04-23 17:29:24 +00:00
Filippo Valsorda cf7dab0b4d cmd/gopherbot: add ability to open backport issues
Fixes golang/go#24899

Change-Id: I37eb4a05b00abe3ade5a755095edc10ba7d6e59f
Reviewed-on: https://go-review.googlesource.com/108298
Reviewed-by: Andrew Bonventre <andybons@golang.org>
2018-04-23 17:04:41 +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
Filippo Valsorda 40c59bfeba cmd/coordinator: show expected number of reverse buildlets in HTML
Change-Id: Iabbf2023fc6122fceb151f97b1d9563da23445d0
Reviewed-on: https://go-review.googlesource.com/107595
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-04-20 20:25:01 +00:00
Filippo Valsorda 306115f322 cmd/gopherbot: switch to real Docker multi-stage builds
Change-Id: Ide596f0a9079cbed698f59f3cac6e5ad4f58f2c9
Reviewed-on: https://go-review.googlesource.com/108299
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-04-20 18:31:16 +00:00
Brad Fitzpatrick cbf993764b cmd/gopherbot: remove the wait-author hashtags from CLs when author replies
Updates golang/go#24836

Change-Id: I65dd57290634b31b112062dca9fafa76b2cc7153
Reviewed-on: https://go-review.googlesource.com/108218
Reviewed-by: Andrew Bonventre <andybons@golang.org>
2018-04-20 17:08:09 +00:00
Filippo Valsorda ee237436e8 cmd/gopherbot: normalize and restore dry-run mode
Make sure dry-run does not require credentials, logs the skipped action,
and is applied uniformly.

Also, add instructions on how to use it from Docker.

Change-Id: I05ed681f7dd070e68a85638bf08fc7ee4a7705b6
Reviewed-on: https://go-review.googlesource.com/108235
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-04-19 23:38:31 +00:00
Filippo Valsorda 834e961079 cmd/gopherbot: fix GCE metadata fetching
It was working because the key that exists is the last one.

Change-Id: I632bf7fdecc5124f4f1e2f8297daed7493771bf1
Reviewed-on: https://go-review.googlesource.com/108176
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-04-19 17:34:39 +00:00
Brad Fitzpatrick dd35151f24 maintner: track hashtag edits on GerritMeta, make HashtagEdits method faster
Updates golang/go#24836

Change-Id: I75cae7de574af7525964bdf420328d3e553a044c
Reviewed-on: https://go-review.googlesource.com/107305
Reviewed-by: Andrew Bonventre <andybons@golang.org>
2018-04-17 02:28:26 +00:00
Brad Fitzpatrick e8681e42c7 cmd/release: fix releaselet tests
They didn't compile before when added in CL 103856

Fixes golang/go#24874

Change-Id: I9bf547248d1cdaa84c8e5f4a299a2efcc93e37c9
Reviewed-on: https://go-review.googlesource.com/107303
Reviewed-by: Andrew Bonventre <andybons@golang.org>
2018-04-16 21:42:58 +00:00
Brad Fitzpatrick 0b261d0443 maintner: add hashtag mutation accessors on GerritMeta
Updates golang/go#24836

Change-Id: Id529f12dba54366d49feb112662473ca214ba2f6
Reviewed-on: https://go-review.googlesource.com/107297
Reviewed-by: Chris Broadfoot <cbro@golang.org>
2018-04-16 21:12:23 +00:00
Kevin Burke 4213dcbc0a cmd/gitmirror, cmd/gopherbot, maintner/maintnerd: fix Docker build
The Docker build didn't have the x/time/rate dependency. Also run Go
1.10 instead of Go 1.8.

Verified that this works by building the Dockerfile locally.

Change-Id: Id55bbb3e8cb81ba112351d4558a318939c22d8a5
Reviewed-on: https://go-review.googlesource.com/106985
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-04-16 16:49:00 +00:00
Brad Fitzpatrick ce9aca4b8e maintner: change type/name of GerritCL meta fields, ensure Meta always non-nil
They were of type GitCommit, but we want to hang the useful methods
off the existing GerritMeta wrapper.

This was the plan earlier (when the GerritMeta type was added), but
that earlier CL didn't go all the way and convert callers.

This will likely break some maintner-using code, but there aren't many
callers.

Also, document & enforce that Meta & Commit are always non-nil when
enumerating CLs and when looking up CLs. Previously, two deleted CLs
didn't have this property, as the Gerrit server was returning a ref
for a version of the commit, but no meta ref. Filter those out.

Fixes golang/go#22060
Fixes golang/go#21984

Change-Id: I67727977c7a25e750f51a6ff7f3e00aaf960ef9f
Reviewed-on: https://go-review.googlesource.com/107296
Reviewed-by: Dmitri Shuralyov <dmitri@shuralyov.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-04-15 21:06:32 +00:00
Emil Hessman 9b553494b1 internal/gophers: add email address
Change-Id: I75f2f7755cfd3ae8eb6dceb7da965c569480f8a5
Reviewed-on: https://go-review.googlesource.com/107017
Reviewed-by: Kevin Burke <kev@inburke.com>
2018-04-14 19:16:13 +00:00
Andrew Bonventre 5a0445c1f7 devapp: use multi-stage builds in Dockerfile
Also update deps to pull in golang.org/x/time/rate for maintner.

Change-Id: I67ceef2eb16ccc0ce3ae4da8e8e07c07c1a8825f
Reviewed-on: https://go-review.googlesource.com/106916
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-04-13 20:30:09 +00:00
Brad Fitzpatrick a9c7bdc7aa gerrit: add support for hashtags
Tested in one-off local tool:

   func main() {
       gc := gerrit.NewClient("https://go-review.googlesource.com/", gerrit.GitCookiesAuth())
       ....

Updates golang/go#24836

Change-Id: I231e3afb4a27e41f9b56968e3e97fa1c31fd8d84
Reviewed-on: https://go-review.googlesource.com/106795
Reviewed-by: Andrew Bonventre <andybons@golang.org>
2018-04-13 14:30:05 +00:00
Chris Broadfoot f744882202 maintner: add option for GitHub rate limiting (10 qps by default)
GitHub gets upset when you send it too many requests. We do have some
backoff, but it's handled per-repo, rather than across all GitHub
requests. This adds a global GitHub limiter to add more control.

Change-Id: I42898d25cf66a93970d96e922743b766f9a21c3f
Reviewed-on: https://go-review.googlesource.com/101919
Reviewed-by: Bryan C. Mills <bcmills@google.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-04-11 21:14:27 +00:00
Brad Fitzpatrick 2851c36693 dashboard: skip some slow/broken tests on arm5 builder
Updates golang/go#24754

Change-Id: Ie5e94a8fd0b76e6394249a734d8fc1a61650dbad
Reviewed-on: https://go-review.googlesource.com/106118
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
2018-04-10 20:58:06 +00:00
Kevin Burke 0008c9638d cmd/coordinator: remove gofmt inconsistency
Issue golang/go#22852 modifies formatting for Go tables. If the
code stays as is, users running Go 1.9 will format the file one way
and users running tip will format the file a different way. This is
problematic when git-codereview attempts to check the file is gofmt'ed
correctly, and does not let you mail commits that aren't.

Adding another newline makes the file compatible with tip and the
stable release branch and avoids this problem.

Change-Id: I0dbfe01db6e07578993e793e3710702ff2518436
Reviewed-on: https://go-review.googlesource.com/104836
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-04-05 05:13:34 +00:00
Felix Kollmann aac5a874d1 cmd/release: have MSI installer check for Win7 SP1 for Go>=1.11
Fixes golang/go#24643

Change-Id: I67436f5cfa35d0bb0dfb990833690a1f67b92b8e
GitHub-Last-Rev: 06324a05fc
GitHub-Pull-Request: golang/build#3
Reviewed-on: https://go-review.googlesource.com/103856
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-04-04 21:56:40 +00:00
Brad Fitzpatrick 943bea3331 cmd/pushback: delete
No longer used. We accept GitHub pull requests now.

Updates golang/go#18517

Change-Id: I900bf7028c824814ec309ce366dcd89aee402c16
Reviewed-on: https://go-review.googlesource.com/104577
Reviewed-by: Bryan Mills <bcmills@google.com>
2018-04-03 22:08:58 +00:00
Felix Kollmann f1e44c5e0e cmd/release: add user env-vars for GOPATH and PATH on Windows
Fixes golang/go#23025

Change-Id: Id8f8e248fe3c1af9c4bd09486fc2e86162b982b1
GitHub-Last-Rev: ea929c1766
GitHub-Pull-Request: golang/build#4
Reviewed-on: https://go-review.googlesource.com/104115
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-04-03 00:02:59 +00:00
Kevin Burke d742befa4d cmd/coordinator: style the "trybot status" page
Load style.css so we share some styles with the Go Build Coordinator
homepage. Add some custom styles so text in tables is a little bigger
- there's less of it on the trybot page.

Instead of formatting to the nearest tenth of a minute, we can round
to the nearest second - Duration.Round() is now two Go versions old
- and use more natural duration formatting.

Instead of issuing many small writes to the ResponseWriter, write HTML
to a buffer and then write it to the ResponseWriter all at once. (We
should just use a template but that's a bigger project.)

Add a "/try-dev" handler you can enable with the `-dev` build tag
which makes it easy to view and test the "trybot status" page locally,
without requiring a builder.

Change-Id: I28617d02ed857c28d2bb2d9ccfb05ca9dc572212
Reviewed-on: https://go-review.googlesource.com/103870
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-04-02 16:16:46 +00:00
Dmitri Shuralyov 5298ba98fb cmd/releasebot: check os.Stat error in loadGithubAuth
The error value returned from os.Stat call was not being checked.
This change fixes that.

Change-Id: I640c59275aa7adf21fa5ba52e1d114473ff3c82d
Reviewed-on: https://go-review.googlesource.com/103855
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-03-31 02:18:23 +00:00
Dmitri Shuralyov 35ebb6b410 cmd/releasebot: use comment ID in updateGithubComment
When editing a comment, the current code used the issue number in place
of the comment ID. But the EditComment endpoint needs the comment ID.

The issue number is not needed at all in updateGithubComment because the
EditComment endpoint uses the repository and comment ID to uniquely
identify the comment.

References:

-	https://developer.github.com/v3/issues/comments/#edit-a-comment.
-	https://godoc.org/github.com/google/go-github/github#IssuesService.EditComment.

Updates golang/go#24598.
Updates google/go-github#883.
Updates google/go-github#597.

Change-Id: Iae9d967d7be7a75b1bcee7118a3c80fe8f2375b4
Reviewed-on: https://go-review.googlesource.com/103398
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-03-30 23:40:26 +00:00
Andrew Bonventre de8714be58 cmd/releasebot: fix usage of GitHub client EditComment
It now expects an int64 for the id.

Fixes golang/go#24598

Change-Id: I40ac273087234bcf5d8726e8e4dce6350fa562ac
Reviewed-on: https://go-review.googlesource.com/103475
Reviewed-by: Kevin Burke <kev@inburke.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
2018-03-29 18:00:06 +00:00
Filippo Valsorda 0da8e46d89 version: fix the go1.10.1 and go1.9.5 packages
They were missing the "go" prefix.

Fixes golang/go#24597

Change-Id: If28eebaf916c7f73ee83198fa7bdf9977b813a5e
Reviewed-on: https://go-review.googlesource.com/103435
Reviewed-by: Ian Lance Taylor <iant@golang.org>
2018-03-29 16:51:30 +00:00
Andrew Bonventre 8a619fed44 version: add 1.9.5 and 1.10.1
Change-Id: I2cc739a187252443446c02ad09b4199e641d3cc9
Reviewed-on: https://go-review.googlesource.com/103219
Reviewed-by: Ian Lance Taylor <iant@golang.org>
2018-03-29 14:54:33 +00:00
Andrew Bonventre bcf777d588 cmd/gerritbot: support PR branches other than master
Fixes golang/go#24028

Change-Id: Ic3e741e9edcbf6a36af5a6beb1bdd8aa75192ef0
Reviewed-on: https://go-review.googlesource.com/97000
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Jonathan Nieder <jrn@google.com>
2018-03-16 16:39:51 +00:00
Andrew Bonventre b5aaf8424b CONTRIBUTING.md: remove note about not accepting Pull Requests
Updates golang/go#24185

Change-Id: Ic0522fc0f682cd2fe60aa3081a47a025a76d7f9c
Reviewed-on: https://go-review.googlesource.com/100678
Reviewed-by: Andrew Bonventre <andybons@golang.org>
2018-03-14 18:02:21 +00:00
Dmitri Shuralyov 5e2fb0da4c maintner/cmd/maintserve: update .woff2 MIME type to "font/woff2"
Since February 2017, the proper MIME type is "font/woff" for WOFF 1.0 and
"font/woff2" for WOFF 2.0. Prior to February 2017, the standard MIME type
for WOFF 1.0 was "application/font-woff", but it is now deprecated.

References:

-	https://www.iana.org/assignments/media-types/media-types.xhtml
-	https://tools.ietf.org/html/rfc8081

Change-Id: I8d5c04a9f74a2647197179fde4865b3db2d99708
Reviewed-on: https://go-review.googlesource.com/100435
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-03-13 20:21:28 +00:00
Andrew Bonventre 7e3c8a7a7f cmd/gerritbot: use multi-stage Docker builds
Replace our current builder pattern (Dockerfile.0) in favor
of multi-stage builds. This simplifies maintenance by not
having builder artifacts exist outside of the image, reducing
the number of files to maintain and steps to take in the Makefile.

Change-Id: I5c90acc3ed4a302bd8d0850ed0ffe243c07a6c08
Reviewed-on: https://go-review.googlesource.com/99557
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-03-08 22:53:29 +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
Andrew Bonventre ed63073cfb cmd/coordinator: allow CORS requests to /try.json
Allow any origin to make cross-origin requests to get builder
statuses.

Also fixes a bug with an ineffectual Header().Set(...) call since
WriteHeader was called before it.

Change-Id: Ic2867624a286dad7268ddb94c3bb5afb52bf84ac
Reviewed-on: https://go-review.googlesource.com/98995
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-03-06 20:25:51 +00:00
Andrew Bonventre 08b634734f cmd/coordinator: add /try.json endpoint
To retrieve results of a trybot run in JSON.

Also removes optional HTML tags from normal trybot
status output.
https://google.github.io/styleguide/htmlcssguide.html#Optional_Tags

Change-Id: I369806fcab439da9d9ce9c46f4d6f1d94c54e814
Reviewed-on: https://go-review.googlesource.com/98237
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-03-06 18:09:42 +00:00
Dmitri Shuralyov 13b1c06671 maintner/cmd/maintserve: don't count PRs as issues
Pull requests are now in the maintner corpus via *maintner.GitHubIssue.
We don't want to count them as issues, since they're not issues in a
strict sense.

Follows https://golang.org/cl/69590
and ecd998cade.

Change-Id: Ia89e89e263626e661633f888c24070073f6fe567
Reviewed-on: https://go-review.googlesource.com/97797
Run-TryBot: Dmitri Shuralyov <dmitri@shuralyov.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-03-01 00:32:11 +00:00
Brad Fitzpatrick fbf3a25047 devapp: revert status changes
This reverts the status changes to devapp from CL 96416

This will go into its own server instead.

Updates golang/go#21315
Updates golang/go#22603

Change-Id: Icb17a5915124241b2ef97a1ee2e9a0e4298784ce
Reviewed-on: https://go-review.googlesource.com/97516
Reviewed-by: Andrew Bonventre <andybons@golang.org>
2018-02-27 21:14:24 +00:00
Brad Fitzpatrick 3d62d0f6e6 dashboard: disable OpenBSD 6.0 builders
Fixes golang/go#24131

Change-Id: I08b014c2b2f06fc1eb6e2b1f31af77529987609f
Reviewed-on: https://go-review.googlesource.com/97417
Reviewed-by: Andrew Bonventre <andybons@golang.org>
2018-02-27 19:44:28 +00:00
Andrew Bonventre 375300b473 cmd/gerritbot: use full commit message to determine staleness
Instead of checking only against the last revision of a GitHub PR,
check to see if the Gerrit commit message matches that of the one
determined by the PR, which is the source of truth due to
GerritBot’s one-way nature.

Also deletes some dead code and adds a dry-run flag.

Fixes golang/go#23756

Change-Id: Ib2f93ebaf3f6af274f62d0e6b1e8bcab89fb7109
Reviewed-on: https://go-review.googlesource.com/96999
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-02-26 18:15:19 +00:00