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

1556 Коммитов

Автор SHA1 Сообщение Дата
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
Andrew Bonventre 3203ec0ca1 cmd/gerritbot: ensure commit message consistency
The message generated by the commitMessage method
does not always match the one that Gerrit sees.
This is because the commit-msg hook runs git stripspace
and has different logic for placing the Change-Id.

Remove the commit-msg hook and insert a Change-Id
(a SHA-1 hash preceded with an I) using the Pull
Request’s ID and run git stripspace on the generated
commit message.

This is preparation for updating the Gerrit CL once
the title or description changes.

Also updates Dockerfile.0 to use 1.10 and disable
cgo so that building doesn’t emit errors.

Updates golang/go#23756

Change-Id: Ib437d3e9c1496ad1bee6268afcbe7c766eb82bde
Reviewed-on: https://go-review.googlesource.com/96995
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-02-26 18:15:00 +00:00
Chris Broadfoot 34b4188793 maintner: update DismissedReviewEvent "state" field from int to string
GitHub has docs on valid values. On many repos in the
GoogleCloudPlatform org, I observed that this field is indeed a string.

Change-Id: I19fd4871f741c6e44968ec7a2dda9f1ef93ae128
Reviewed-on: https://go-review.googlesource.com/96835
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-02-23 22:17:11 +00:00
Brad Fitzpatrick b2715105cb devapp, status: start of status handler for monitoring
Also bump Go from 1.8 to 1.10, and change how the static binary is
built to avoid warnings during link.

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

Change-Id: I426491d48f787a77cb3eea4dff4d11f474236548
Reviewed-on: https://go-review.googlesource.com/96416
Reviewed-by: Andrew Bonventre <andybons@golang.org>
2018-02-23 20:41:26 +00:00
David Url d4bc8ed035 x/build/devapp: support title prefix filtering in HelpWanted handler
A query '/imfeelinghelpful?pkg=net,cmd/go' only redirects to random
issues with the prefix 'net' or 'cmd/go'. This allows individuals to
browse random issues for packages they have specialized in.

Fixes golang/go#20955

Change-Id: I786975fc9f6ea87269176039a3e9233a3500cf06
Reviewed-on: https://go-review.googlesource.com/95275
Reviewed-by: Andrew Bonventre <andybons@golang.org>
2018-02-23 18:42:13 +00:00
Andrew Bonventre cc2a632e6a cmd/gerritbot: always die when initCorpus fails
If an error were to occur in corpusUpdateLoop's call of
initCorpus, b.corpus would have been nil after the continue,
causing a nil pointer dereference.

Change-Id: I0257fca95141eb9e9c1a48466f5d95df87ad5e76
Reviewed-on: https://go-review.googlesource.com/96200
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-02-23 16:57:59 +00:00
Andrew Bonventre 9b65dd4945 cmd/gerritbot: check error returned by b.initCorpus
Change-Id: I19f2df55ada11cef0aa76d0643a5386125f5df43
Reviewed-on: https://go-review.googlesource.com/96199
Reviewed-by: Kevin Burke <kev@inburke.com>
2018-02-22 05:32:22 +00:00
Andrew Bonventre 0389b41937 maintner,cmd/gerritbot,cmd/gitmirror: add golang/lint to whitelist
As lint is moving to Gerrit for its source of truth, add it to the
appropriate whitelists.

Change-Id: I4ce4d9eb6ebd9dbe847a83030c71c38103116bc3
Reviewed-on: https://go-review.googlesource.com/96035
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-02-21 21:53:32 +00:00
Brad Fitzpatrick 8c11d8a52c dashboard: adjust how many Mac VMs we expect
Updates golang/go#23859

Change-Id: I7e0fed5b17430669a726a8a7bbf8d3efc190034c
Reviewed-on: https://go-review.googlesource.com/95735
Reviewed-by: Andrew Bonventre <andybons@golang.org>
2018-02-21 03:33:01 +00:00
Brad Fitzpatrick 80ed4b47e9 cmd/gopherbot: use Go 1.10, don't make vgo also Unreleased
gopherbot was setting vgo stuff to Unreleased, and then to vgo.

Change-Id: Ic97aaccf6d4db998dbb659455798b98a551714b6
Reviewed-on: https://go-review.googlesource.com/95584
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-02-21 03:23:33 +00:00
Brad Fitzpatrick 11a0107ae9 cmd/gopherbot: set vgo milestone automatically from subject
Change-Id: I8d893db8cee5efa5691303b4421d5940971e6a93
Reviewed-on: https://go-review.googlesource.com/95580
Reviewed-by: Andrew Bonventre <andybons@golang.org>
2018-02-21 02:53:44 +00:00
Andrew Bonventre 25d1ef7b12 cmd/gerritbot: account for a Change-Id in the PR description
If the Change-Id is not present in the footer section of the
git commit, then Gerrit will complain.

Fixes golang/go#23931

Change-Id: I0d6a435d489218c465fc90c3c79151f56254e915
Reviewed-on: https://go-review.googlesource.com/95636
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-02-20 22:20:13 +00:00
Brad Fitzpatrick b196686acd dashboard, cmd/buildlet/stage0: remove Windows XP builder
Go 1.11 will not support Windows XP, as pre-announced (per policy) at
https://golang.org/doc/go1.10#ports which says:

   Go 1.10 is the last release that will run on Windows XP or Windows
   Vista. Go 1.11 will require Windows 7 or later.

It was fun while it lasted.

Fixes golang/go#10267

Change-Id: I1929088be00c938621cc106acdb276ffcb93c8cc
Reviewed-on: https://go-review.googlesource.com/95576
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-02-20 20:25:20 +00:00
Brad Fitzpatrick 3df27e9d60 cmd/coordinator: use Go 1.10
No particular reason, other than using the latests to find any bugs.
And Go 1.8 is no longer supported. I guess we skipped Go 1.9.

Change-Id: I9a342c226ae53c7cc28a4b8e75b8d8e7834da917
Reviewed-on: https://go-review.googlesource.com/95575
Reviewed-by: Andrew Bonventre <andybons@golang.org>
2018-02-20 20:16:09 +00:00
Brad Fitzpatrick acc11e0e4c dashboard, app/appengine: disable macOS 10.8 builders, disable Go 1.8 builders
Change-Id: I84532de81c9eaaf3a989d1f855053c6104e2195d
Reviewed-on: https://go-review.googlesource.com/95555
Reviewed-by: Andrew Bonventre <andybons@golang.org>
2018-02-20 20:04:00 +00:00
Andrew Bonventre 40943d646d maintnerd,cmd/gerritbot: add golang/vgo to whitelists
Change-Id: I30e0a6ec666a06eae3e8444490d96fabcab3333e
Reviewed-on: https://go-review.googlesource.com/95515
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-02-20 18:59:13 +00:00
Andrew Bonventre cf54364c21 cmd/gitmirror: add vgo repo to mirror whitelist
Fixes golang/go#23945

Change-Id: Ifbae9d09c6d91fb392e0ebbda35995e668d99f22
Reviewed-on: https://go-review.googlesource.com/95499
Reviewed-by: Andrew Bonventre <andybons@golang.org>
2018-02-20 18:38:46 +00:00
Andrew Bonventre 77e2fa4ba8 cmd/gerritbot: use merge --squash instead of resetting commits
Previously, it would reset commits based on the number reported
by GitHub. This would cause issues if there was a merge commit
due to them having more than one parent. So GitHub would report
three commits, but one of them was a merge commit so the number
would be off and it would push the wrong change.

Change-Id: I1d16c7cabdb96c9cef45ce0b802c1c5abd12e2de
Reviewed-on: https://go-review.googlesource.com/94636
Reviewed-by: Jonathan Nieder <jrn@google.com>
Reviewed-by: Andrew Bonventre <andybons@golang.org>
2018-02-20 16:09:49 +00:00
Dmitri Shuralyov 398adf893f maintner: add GerritCL.CommitAtVersion method
Previous versions were available via GerritProject.remote, but that
symbol is not exported and can't be used by callers of this package.

Update test for go-github API change in google/go-github#816, so the
tests can pass locally. Since go-github isn't vendored, it's understood
that the latest upstream version is targeted.

Change-Id: Ib4b78abacb19d73f95df2215b4a248a24376ae10
Reviewed-on: https://go-review.googlesource.com/95136
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-02-19 17:27:22 +00:00
Andrew Bonventre ef2faf7a5d version/internal/genv: gofmt generated file
git-codereview will complain otherwise (plus it should be properly
formatted)

Change-Id: I9fa4ebec347f39a0a6ed0d79ddf369a9bcecd868
Reviewed-on: https://go-review.googlesource.com/94716
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-02-17 05:10:16 +00:00
Andrew Bonventre d0810e9ec0 version: add go1.10
Change-Id: I18eccd6321f46ffa3c3a2acaa73b1fd36ec114f0
Reviewed-on: https://go-review.googlesource.com/94715
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-02-16 19:35:33 +00:00
Brad Fitzpatrick 629ea14e94 internal/gitauth: new package to write out git cookies file
Then use it from gitmirror and maintnerd.

Updates golang/go#23853

Change-Id: I8112f004638667894676c04fa218a7ced10422ac
Reviewed-on: https://go-review.googlesource.com/94836
Reviewed-by: Andrew Bonventre <andybons@golang.org>
2018-02-16 15:58:06 +00:00
Andrew Bonventre cf134060d5 cmd/gopherbot: don’t post to CLs in the refs/meta/config branch
Also removes unused b.maxIssueMod field.

Updates golang/go#23865
Change-Id: I4bb3799cbf9f463fa8e99b324f0b2c023422e87e
Reviewed-on: https://go-review.googlesource.com/94615
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-02-16 00:37:07 +00:00
Brad Fitzpatrick 91554abd49 dashboard: fix typo from CL 94601
Sigh.

Change-Id: Ife6006f9b0c65fa6ee7be50b6c9f55319e0fa28d
Reviewed-on: https://go-review.googlesource.com/94602
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-02-15 23:44:16 +00:00
Brad Fitzpatrick efebd52401 dashboard: disable Mac trybots for now
Updates golang/go#23859

Change-Id: Ic7833420b5538f59314afefefb431bfd14355ece
Reviewed-on: https://go-review.googlesource.com/94601
Reviewed-by: Andrew Bonventre <andybons@golang.org>
2018-02-15 23:42:44 +00:00
Brad Fitzpatrick ec0cbeed4b cmd/gitmirror: add Dockerfile.0 dep updates missing from CL 93755
These gitlock dep updates were supposed to be part of https://golang.org/cl/93755

It doesn't build otherwise, as other stuff in x/build/* required new
GitHub API symbols, even if this CL doesn't end up calling them.

Change-Id: Icc202f3bab85b38fd1182aaa97e81f74b90e3b0f
Reviewed-on: https://go-review.googlesource.com/94435
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-02-15 17:16:59 +00:00
Andrew Bonventre 6dde1a385b cmd/gerritbot: add the tini init wrapper to the Dockerfile
Updates golang/go#23705

Change-Id: I9c483efa491e2d9f705850d81ea94feda9f9d5a4
Reviewed-on: https://go-review.googlesource.com/94075
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-02-14 18:20:27 +00:00
Andrew Bonventre 38070e6d2a cmd/gerritbot: use conditional requests for PRs from GitHub
GerritBot retrieves all open PRs each time the maintner corpus
is updated since maintner doesn’t support PRs yet and some
additional info is needed from GitHub (the PR branch’s HEAD
SHA value in particular).

Currently the GitHub client doesn’t take advantage of conditional
requests, which causes us to needlessly take a hit in our API
quota, counting against all maintner users.

Use the returned Etag response header to make conditional requests
for PRs so that they don’t count against our rate limit unless
a change to the PR has been observed.

Change-Id: Ie984e94cc7cc4d254cbd7c7f4e92ca3f5bf688ba
Reviewed-on: https://go-review.googlesource.com/93835
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-02-14 18:01:50 +00:00
Brad Fitzpatrick f2f2feb438 cmd/gitmirror: add the tini init wrapper to the Dockerfile
Updates golang/go#23705

Change-Id: I1fa42b2767d1a9780672458fd06d64ed998b9e04
Reviewed-on: https://go-review.googlesource.com/93755
Reviewed-by: Andrew Bonventre <andybons@golang.org>
2018-02-14 15:23:07 +00:00
Andrew Bonventre bff00b6336 cmd/gerritbot: track PR FETCH_HEAD instead of origin/master
If the PR branch gets out of date with origin/master, then the
current method of checking out a branch to track origin/master
and then merging in the changes will have unintended side effects
of including all changes since the PR branch became out of date.

Check out a branch tracking FETCH_HEAD after fetching the pull/N/head
github magic ref and perform the necessary incantations from there.

Change-Id: Ic771b9202714b975469fa956a926a64758ef54d1
Reviewed-on: https://go-review.googlesource.com/93516
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-02-13 05:11:04 +00:00
Andrew Bonventre a6e0400795 cmd/gerritbot: don't query GitHub as much
Use maintner as a fast-path to determine whether comments are
duplicates or not.

Update golang/go#18517

Change-Id: I3ddc380e6e202371903ce62ae9e4c07e9805c1ed
Reviewed-on: https://go-review.googlesource.com/93435
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-02-13 00:33:39 +00:00
Andrew Bonventre e008d53bc6 cmd/gerritbot: reword message for when a Gerrit message is posted
Update golang/go#18517

Change-Id: Iccb7b5c61d8fc161b877d0a39f4ee1c523a4cd75
Reviewed-on: https://go-review.googlesource.com/93356
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-02-12 16:35:38 +00:00
Andrew Bonventre 9f49e8c4a8 cmd/gerritbot: remind people to publish their draft comments
Update golang/go#18517

Change-Id: Ia970d648b85cd75831ee0c6969762752e9b49289
Reviewed-on: https://go-review.googlesource.com/93355
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-02-12 16:22:40 +00:00
Brad Fitzpatrick b6e015da0e maintner/maintnerd: fix use of tini
Updates golang/go#23705

Change-Id: Ia66e3c16bda3357daf4796f3eafb50b2eb019223
Reviewed-on: https://go-review.googlesource.com/93082
Reviewed-by: Andrew Bonventre <andybons@golang.org>
2018-02-09 19:48:01 +00:00
Brad Fitzpatrick 3e2c190e9c maintner/maintnerd: wrap maintnerd in tini init process to reap zombies
Updates golang/go#23705

Change-Id: If0e7826ab75aae46dc7b79306d36d6cd3f07a041
Reviewed-on: https://go-review.googlesource.com/93077
Reviewed-by: Andrew Bonventre <andybons@golang.org>
2018-02-09 19:27:28 +00:00
Andrew Bonventre 2cb4072a4a maintner/maintnerd: add additional GitHub projects to "go" config
Update golang/go#18517

Change-Id: Icdc131236092f15c51effafa71329e280979a0ef
Reviewed-on: https://go-review.googlesource.com/93135
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-02-09 19:12:03 +00:00
Andrew Bonventre a6a9ae9143 cmd/gopherbot: ignore GitHub PRs when updating issues
Otherwise you get something like
https://github.com/golang/go/pull/23752#issuecomment-364288277

Update golang/go#18517

Change-Id: I5298f1e34738a4f6faa8b829546bf880a237043d
Reviewed-on: https://go-review.googlesource.com/93015
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-02-09 00:17:13 +00:00
Andrew Bonventre faa0b51ea2 cmd/gerritbot: add all Gerrit projects to whitelist
Update golang/go#18517

Change-Id: I5ea227896265d5612b5efa60850f9e03b9025db6
Reviewed-on: https://go-review.googlesource.com/92937
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-02-08 21:49:16 +00:00
Andrew Bonventre f0cb6847bc cmd/gerritbot: include link to wiki in import messages
Update golang/go#18517

Change-Id: I5c7980d07db368c90c2e76610ee4c854cec27b60
Reviewed-on: https://go-review.googlesource.com/92936
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-02-08 21:38:42 +00:00
Andrew Bonventre 9a4204b0d0 version: add internal/genv to generate version files
Change-Id: I309ae46ddcd494166c72dcf1e94f7d2590576a9a
Reviewed-on: https://go-review.googlesource.com/92935
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-02-08 21:38:01 +00:00