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

1462 Коммитов

Автор SHA1 Сообщение Дата
Andrew Bonventre bd0d9b9fbb devapp/owners: seed ownership entries from golang.org/s/owners
Change-Id: If82cd3ee37265908006347e5ef3dbdeaa10d495d
Reviewed-on: https://go-review.googlesource.com/111295
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-05-07 19:27:57 +00:00
Dmitri Shuralyov 3848b4733c maintner: set GitHubComment.Updated to UTC when cmut.Updated is non-nil
This change fixes a copy-paste mistake from CL 38137, where the wrong
time variable was set to UTC when cmut.Updated is non-nil.

Change-Id: I4dc62abf9b70b52b700e3b6b688fa8adbc502d98
Reviewed-on: https://go-review.googlesource.com/111645
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-05-06 15:32:44 +00:00
Brad Fitzpatrick 23fc7515b0 buildlet: remove support for preemptible VMs we haven't used in a long time
Change-Id: I867c4b491327962410768291f8656665c2399e7b
Reviewed-on: https://go-review.googlesource.com/111641
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-05-05 17:19:19 +00:00
Brad Fitzpatrick a23395d5bb buildenv: add our GCP project numbers in addition to their named IDs
Updates golang/go#25108

Change-Id: I5a82a4b26407158cf24d770a887759f8335d6441
Reviewed-on: https://go-review.googlesource.com/111640
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-05-05 16:55:26 +00:00
Brad Fitzpatrick 14d99737ae all: rename Kube to Container and IsGCE to IsVM
Once containers run on COS instead of Kubernetes, one name (Kube*) is
wrong and the other (GCE) is ambiguous. So rename them now to be more
specific.

No behavior changes. Just renaming in this step, to reduce size of
next CL.

Updates golang/go#25108

Change-Id: Ib09eb682ef74acbbf6ed50b46074f834ef5e0c0b
Reviewed-on: https://go-review.googlesource.com/111639
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-05-05 16:50:07 +00:00
Brad Fitzpatrick dc1f665c06 internal/gophers: remove Alan dup
Change-Id: I903c744c49aa9ce7822caee3ad87c90a19d2bb61
Reviewed-on: https://go-review.googlesource.com/111260
Reviewed-by: Andrew Bonventre <andybons@golang.org>
2018-05-04 18:44:34 +00:00
Brad Fitzpatrick 4d7c49a9d9 cmd/release: clean up .exe~ files on Windows
Fixes golang/go#23894

Change-Id: I11a644492431974b5422ee99881e89536dda8037
Reviewed-on: https://go-review.googlesource.com/111518
Reviewed-by: Andrew Bonventre <andybons@golang.org>
2018-05-04 18:42:02 +00:00
Brad Fitzpatrick 9929a3fe2b all: move to using the oauth2/google.Credentials type, add buildenv accessor
This removes some duplication of scopes and how to get the
TokenSource and which credentials to use.

And update the coordinator deps, since its rev of
golang.org/x/oauth2/google was too old to have the new type.

I want to clean this up more, but I need to make some changes to to
the oauth2/google package first. More later.

Change-Id: Ic2799ec2ec62f67c65de6380b373fe915a43003e
Reviewed-on: https://go-review.googlesource.com/111266
Reviewed-by: Andrew Bonventre <andybons@golang.org>
2018-05-04 17:04:37 +00:00
Brad Fitzpatrick af5f19c135 dashboard: fix two typos in comments
Change-Id: Id11d08e511b1dce0f107cd1faf404a5a37fed895
Reviewed-on: https://go-review.googlesource.com/111262
Reviewed-by: Andrew Bonventre <andybons@golang.org>
2018-05-04 16:36:26 +00:00
Andrew 8c46052de7 devapp: log error if encoding owners response fails
Includes changes mistakenly omitted from 110996

Change-Id: I3e3da2590120f810d0413606c77cc0afa76029a9
Reviewed-on: https://go-review.googlesource.com/111115
Reviewed-by: Andrew Bonventre <andybons@golang.org>
2018-05-02 22:30:05 +00:00
Andrew Bonventre 728cad7784 devapp: add /owners/ endpoint
The current logic returns the entry with the deepest path matched
to the given resource. Entries have Primary and Secondary fields
for indicating who should be in the Reviewer and CC fields in a
code review, respectively.

Change-Id: Icf315f7964326a2549146f2b0558de80749f0b5e
Reviewed-on: https://go-review.googlesource.com/110996
Reviewed-by: Bryan C. Mills <bcmills@google.com>
2018-05-02 22:26:43 +00:00
Benny Siegert ff392962e3 env: update netbsd builders to 8.0_RC1
This updates both the 386 and the amd64 builder to the latest
NetBSD 8 release candidate, using the current versions of anita
(1.44) and pkgsrc packages (2018Q1).

Tested: ran both resulting images on GCE with buildlets.

Also added clang packages for use in golang/go#24354.

Change-Id: I00812f2ec315bca68fdfec14a6db1200d4f80d32
Reviewed-on: https://go-review.googlesource.com/109035
Reviewed-by: Bryan C. Mills <bcmills@google.com>
2018-05-02 18:27:21 +00:00
Bryan C. Mills e0f5a8ae4e dashboard: update netbsd builders to 8.0RC1
Rename the 8branch builders from “8branch” to “8_0” (in keeping with
the version suffixes for FreeBSD and Darwin), and fix an apparent typo
in the 386 SSHUsername field.

Updates golang/go#25206.
Updates golang/go#25109.

Change-Id: I6053c8de17dcb3c7ff32da05c51902ac4bcc45fe
Reviewed-on: https://go-review.googlesource.com/110626
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-05-02 18:25:07 +00:00
Andrew Bonventre 06d8ad25db cmd/release: update File struct to reflect godoc/dl
As this file should be kept in sync with x/tools/godoc/dl, update
the File struct accordingly (added JSON tags).

Change-Id: Ia23fe501282563ff6eec2cd0a590b6ce9193a674
Reviewed-on: https://go-review.googlesource.com/110628
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-05-01 20:47:53 +00:00
Chris Broadfoot b360853c44 maintner: add support for team assignment
GitHub reviews can be assigned to teams.

Change-Id: I675944c40619635e554d083cfa4fd6e332315f9b
Reviewed-on: https://go-review.googlesource.com/101955
Reviewed-by: Chris Broadfoot <cbro@golang.org>
2018-05-01 20:13:38 +00:00
Andrew Bonventre c364cc65cb version: name generated files main.go instead of goX.Y.Z.go
Change-Id: Idbfeca58b487cac7ab6348e3b4c91169d0ed817d
Reviewed-on: https://go-review.googlesource.com/110636
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-05-01 17:01:20 +00:00
Andrew Bonventre 8054bb008d version: add Go 1.9.6 and 1.10.2
Change-Id: I9598f9b0415283a5b70d023fd0aeca1b73d064d2
Reviewed-on: https://go-review.googlesource.com/110629
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-05-01 17:01:16 +00:00
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