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

869 Коммитов

Автор SHA1 Сообщение Дата
Brad Fitzpatrick d1cc7bf10a maintner: keep changed files from GitCommitMutation in memory too
And add a dummy query for fun.

Change-Id: Icc3f846691b83433f4b47d68b0a6c102be275ae9
Reviewed-on: https://go-review.googlesource.com/37994
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-03-09 21:32:51 +00:00
Kevin Burke bdccc45797 maintner: move files to github.go
No functional changes, just moving Github related code to its own
file.

Change-Id: I9600518142202c5519984564743a1996615d693a
Reviewed-on: https://go-review.googlesource.com/37992
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-03-09 21:08:54 +00:00
Kevin Burke 674c8cf7e8 kubernetes/gke: skip GKE tests if no metadata present
Currently the x/build test suite fails on Travis CI, since Travis
runs on GKE but doesn't have any of the correct metadata set up. We
should skip these tests in that environment like we do when we are not
running on GKE.

Change-Id: Ib99ad1e9f33ce9f05aaf690653ab1bf23718ce2b
Reviewed-on: https://go-review.googlesource.com/37942
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-03-09 21:06:35 +00:00
Brad Fitzpatrick a7d233fc8d maintner: import git commits
And some misc fixes & logging elsewhere.

Change-Id: I10c9ae237a7d492173a10897938b147f5c1cb03c
Reviewed-on: https://go-review.googlesource.com/37972
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-03-09 18:53:09 +00:00
Brad Fitzpatrick 147e896835 maintner: start of git polling (just proto and maintner plumbing, no git)
This is just the start of git commit metadata importing, but without
any of the git-specific bits. This is just the proto changes and the
changes to wire up the guts with maintner. The guts will come in a
following CL.

Change-Id: I321590dc30ba5c62346911526fed647fc0d0b3ad
Reviewed-on: https://go-review.googlesource.com/37938
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-03-08 05:51:05 +00:00
Kevin Burke db193c8feb maintner: add github ID field
Change-Id: Ia497734b786c4e013a5dc3b0982ad068de23138c
Reviewed-on: https://go-review.googlesource.com/37888
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-03-07 17:41:52 +00:00
Kevin Burke c6b4b62f21 maintner: skip duplicate id's when paging
Due to the design of the github paging API it's possible to process
messages twice in the same paging run, which can lead to early
termination since the second run of the message will have the same
"UpdatedAt" as the first time we saw it. Keep track of messages we've
seen before in this paging run and ignore them the second/third times
we see them.

Also skip subdirectories of the `--data-dir` argument; we don't want
to search any other directories for data files than the one provided.

Change-Id: Ib4b867cc50568f7bfc5a3d3a0158e284d2038808
Reviewed-on: https://go-review.googlesource.com/37794
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-03-06 23:45:29 +00:00
Kevin Burke 8cb8408587 maintner: add more fields
This should comprise most of the fields that are needed by the
existing godash/devapp app. Will wire up the Milestone code in
another commit.

Change-Id: I83c399afebce5865dd03c00e295be5a19e1e36b2
Reviewed-on: https://go-review.googlesource.com/37753
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-03-06 22:36:29 +00:00
Kevin Burke 4072d545df maintner: catch up mutations from disk
Eventually we will add other mutation sources but for the moment
let's catch up from the same proto directory we are writing changes
to.

Change-Id: I6efa3c0fb6f49cf4240d8a365f558bbb1c52602e
Reviewed-on: https://go-review.googlesource.com/37733
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-03-03 05:20:49 +00:00
Kevin Burke 42a091f0b0 maintner: fix context usage
If the context returns, immediately return from the function instead of
continuing to sleep. Also, remove deprecated oauth2.NoContext.

Change-Id: If92c18d9d4dc1a801be8df5ad2e78ae809b9f274
Reviewed-on: https://go-review.googlesource.com/37650
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-03-01 20:08:52 +00:00
Kevin Burke 9fd5f30c83 maintner: flush protobufs to disk
For now, open and close the file each time we write a protobuf. We can improve
the performance in the future as necessary.

Change-Id: Idcc75df5aa59a604c0c0aeeff6ea0e0ff0f2db8f
Reviewed-on: https://go-review.googlesource.com/37626
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-03-01 19:33:50 +00:00
Brad Fitzpatrick 5370b53837 cmd/coordinator: skip netbsd-386 builds for now
Updates golang/go#19339

Change-Id: Id9e5247c0ffbddf4bcf0d807840399d3a5dd83c5
Reviewed-on: https://go-review.googlesource.com/37622
Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
2017-03-01 05:31:15 +00:00
Brad Fitzpatrick 18a41e7995 cmd/coordinator: fix kubernetes pod cleanup loop
Change-Id: If528d71faa6834d1392f693d252e97f6446939bf
Reviewed-on: https://go-review.googlesource.com/37616
Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
2017-03-01 00:01:24 +00:00
Brad Fitzpatrick eb1258212d cmd/coordinator: add a misc-vet-vetall to the trybot set
vet checks for all. josharian rejoices.

Updates golang/go#11041

Change-Id: I1877c0523ba14bbe3a181323aa9ff058797fc4ab
Reviewed-on: https://go-review.googlesource.com/37614
Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
2017-02-28 23:41:56 +00:00
Brad Fitzpatrick 548e7d6a69 cmd/coordinator: skip the vet/all test
Change-Id: If2e03e16527753f271f9fa7431622d26d079e3f3
Reviewed-on: https://go-review.googlesource.com/37575
Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
2017-02-28 18:56:35 +00:00
Kevin Burke d71f595a20 maintner: start adding issue bodies to the corpus
When we get an issue from Github, add the issue and associated
details to the Corpus. Check whether the `Updated` timestamp on an
issue is newer than the one we have in the Corpus; if the timestamp
is the same, we can stop processing since we are sorting by the
updated date and no older issues will have new data.

If the mutation changes the Corpus, add it to an array of Mutations
that we will eventually flush to disk.

Adds a helper function to convert a github.Issue into a
maintpb.Mutation - this way we can reuse the logic for adding data to
the Corpus. Adds some more tests around data processing.

Change-Id: I9475e293941784179420ca7b638917943be1f29e
Reviewed-on: https://go-review.googlesource.com/37490
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-02-28 18:56:24 +00:00
Brad Fitzpatrick c36309f89d dashboard, coordinator: add vetall builder
Change-Id: I331a27050e6f068aa47afa9012a9bb50e3b0c46a
Reviewed-on: https://go-review.googlesource.com/37573
Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
2017-02-28 18:28:05 +00:00
Brad Fitzpatrick bed69d6045 dashboard: add FreeBSD 11 builders
Fixes golang/go#19097

Change-Id: I29725ef511f03e10d93561889b1a4a00eb959177
Reviewed-on: https://go-review.googlesource.com/37498
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-02-27 16:19:04 +00:00
Brad Fitzpatrick dd8f567f4f cmd/buildlet: reboot solaris VMs per build
They reboot quickly. Make sure they don't leave cruft behind.

Change-Id: Ibab22676c90a87f276e456673e479e16f5f60f4f
Reviewed-on: https://go-review.googlesource.com/37494
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-02-27 04:49:12 +00:00
Brad Fitzpatrick 6ecbefa127 cmd/buildlet: disable screensaver on MacStadium Mac VMs
It was using some CPU.

Kinda useless to save a virtual screen.

Change-Id: If2ca5a39818e190b44f87299837a305cfe966c3c
Reviewed-on: https://go-review.googlesource.com/37493
Reviewed-by: Kevin Burke <kev@inburke.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-02-26 23:48:04 +00:00
Brad Fitzpatrick dde7974771 all: enable NetBSD 7.0 builders
Fixes golang/go#8643

Change-Id: Id6a99d0bf4f032c5f5a2e5c282103cc98a515c7b
Reviewed-on: https://go-review.googlesource.com/37469
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-02-26 22:59:41 +00:00
Brad Fitzpatrick 14f308c1c7 cmd/coordinator: increase snapshot timeout from 1 to 5 minutes
Change-Id: I6230fdc5bbbfdaac9a42bad03350055fc6dbb97b
Reviewed-on: https://go-review.googlesource.com/37468
Reviewed-by: Kevin Burke <kev@inburke.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-02-26 06:26:51 +00:00
Brad Fitzpatrick f2ea6d4e58 cmd/coordinator: blacklist some builder/repo pairs
These never work and are a waste of resources and unnecessary scary
red on the page.

Change-Id: I2d8f8908096dee01618129a9082e98f3ffd92bb7
Reviewed-on: https://go-review.googlesource.com/37467
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-02-26 05:44:53 +00:00
Brad Fitzpatrick 760758efa1 build: stop testing release-branch.go1.6
Go policy is to support the past two released Go version, which is
currently Go 1.7 and Go 1.8. Most of the Go repos are broken for Go 1.6 now
because everybody is using subtests and contexts.

Previously:
  https://golang.org/cl/31767 removed Go 1.5.
  https://golang.org/cl/20843 removed Go 1.4.

Change-Id: I64b4af609a8be79a0f25a855430b73ba4d442ae0
Reviewed-on: https://go-review.googlesource.com/37466
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-02-26 05:30:09 +00:00
Brad Fitzpatrick 628acfc076 cmd/buildlet: halt the machine for Sierra VMs on MacStadium
macOS Sierra's network stack gets wedged after a few runs of all.bash.
Instead, halt the machine after a build is complete. cmd/makemac will make
a new one for the next build.

Change-Id: Icb1b21c045376cff9958a0d3b4cfaf784c9948d0
Reviewed-on: https://go-review.googlesource.com/37465
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-02-26 05:22:58 +00:00
Brad Fitzpatrick ee9a2c63fc cmd/makemac: add -auto mode to auto-delete and create VMs as needed
Poll the local VMWare status and the farmer.golang.org status and compare
the two, deleting or creating VMs as appropriate.

Change-Id: Ifaee94b0b3ce062f0865bd9c4fb80937a560f650
Reviewed-on: https://go-review.googlesource.com/37464
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-02-26 05:22:55 +00:00
Brad Fitzpatrick 15521bc259 cmd/coordinator: clean up reverse buildlet code, export status JSON
Will be used for dynamic creation/destruction of Mac VMs in subsequent CL.

Updates golang/go#9495 (Mac virtualization)
Updates golang/go#15760 (monitoring)

Change-Id: I48b17589b258d5d742bad5a3ddae18de98778149
Reviewed-on: https://go-review.googlesource.com/37457
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-02-25 18:24:32 +00:00
Brad Fitzpatrick 79b3e11048 cmd/pushback: use flex
Change-Id: I5774ee66486c65f6bfc3c83c060e053f42f4dcb9
Reviewed-on: https://go-review.googlesource.com/37450
Reviewed-by: Chris Broadfoot <cbro@golang.org>
2017-02-24 21:58:18 +00:00
Kevin Burke 7ebe3f6394 maintner: wire up maintnerd and PollGithub
Now you can actually pass repos to maintnerd and tell a Corpus to
track/store them. Adds a hook to "catch up" a given repo, though it's
unimplemented at the moment, so all requests hit the API. Also only
Github is implemented.

Change-Id: Ib074c02437d6530fc8d57dd433486c05cd75ee64
Reviewed-on: https://go-review.googlesource.com/37299
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-02-24 21:54:39 +00:00
Kevin Burke b1e8ca238f all: add contexts to go-github calls
The latest master for go-github (google/go-github@23d6cb9c) adds
Context parameters as the first argument to every function call.
Update code that calls go-github to have contexts, where appropriate,
and adds timeouts to some long-running commands that didn't
previously have them.

Fixes golang/go#19208.

Change-Id: I25203de5d10ada1dcd3a97eb5434a85bb328ce7e
Reviewed-on: https://go-review.googlesource.com/37293
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-02-24 21:54:04 +00:00
Yuval Pavel Zholkover ea3536e3af env/freebsd-amd64: add FreeBSD 11.0 image, change 10.1 to 10.3
Verify checksum of downloaded image files.
Set cache=none on image disk.

Updates: golang/go#19097

Change-Id: Icae149fa9772f038b8946ee680f36e4e6f3db516
Reviewed-on: https://go-review.googlesource.com/37389
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-02-23 00:36:40 +00:00
Brad Fitzpatrick 300c0ef374 cmd/buildlet: clamp modtime to be no greater than current time
Updates golang/go#19062

Change-Id: I12faf2941083d44466e6ff8a053c832631276ffe
Reviewed-on: https://go-review.googlesource.com/37381
Reviewed-by: Lynn Boger <laboger@linux.vnet.ibm.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-02-22 21:52:24 +00:00
Brad Fitzpatrick 88f4d73e1a cmd/coordinator: use gitmirror for trybot runs also
(been in production for past few days)

Updates golang/go#19166

Change-Id: Iee301aac5aa87c6644ac1253d7c0bd6c522ff066
Reviewed-on: https://go-review.googlesource.com/37380
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-02-22 20:05:47 +00:00
Brad Fitzpatrick bb130cefab cmd/gitmirror: new config after deploying version "v4"
Probably not doing this right yet, but it's done.

Change-Id: Ic38b02c6cb0d42eb7e661c67f860254ff9f2fc76
Reviewed-on: https://go-review.googlesource.com/37296
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-02-21 02:09:02 +00:00
Brad Fitzpatrick 7441680b50 cmd/gitmirror: update Dockerfile to go1.8 final
Change-Id: I716df9fd406bf3c15efc768d110d68cc4e10611c
Reviewed-on: https://go-review.googlesource.com/37295
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-02-21 02:08:55 +00:00
Kevin Burke 66b5428547 cmd/gitmirror: try to fetch unknown revs from remote
If new commits are submitted to the remote repository while gitmirror
is running, gitmirror won't be able to find them when a user asks for
that commit to be exported.

If a request asks for an unknown commit, attempt to fetch it
on-demand from the remote and serve from there.

I checked that this worked by starting a local gitmirror, verifying
the commit was not present in the local repo, submitting a changeset,
asking for that commit, and verifying that gitmirror fetched the
remote commit to serve it.

Adds a very basic test for the archive functionality that won't go
over the network or hit the disk.

Fixes golang/go#19166.

Change-Id: I1ad017b9c8cd258849585c091122c889ea656017
Reviewed-on: https://go-review.googlesource.com/37225
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-02-20 18:08:18 +00:00
Brad Fitzpatrick 776028b858 maintner: start of github polling
WIP; not functional yet, but submitting so
Kevin can continue if he wants.

Change-Id: I1dab38f9845ebcbd69ec2a6f07e98793d3ed7cfb
Reviewed-on: https://go-review.googlesource.com/37053
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-02-19 18:03:21 +00:00
Kevin Burke aaa6b3e605 cmd/gitmirror, gerrit: move GetProjects to gerrit
This adds more utility to the Gerrit client and lets us reuse the
Gerrit API logic, instead of inventing it on an adhoc basis inside
the gitmirror code.

I added a test that this deserializes the correct data from the
Gerrit API for go.googlesource.com (and then removed it).

Change-Id: I449594b0257ed15d9b5aa7aa1eda7fb371fad6c1
Reviewed-on: https://go-review.googlesource.com/37252
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-02-19 17:54:52 +00:00
Kevin Burke 5ca173812d cmd/gitmirror: add tests and update documentation
Also add closing HTML tags to the /debug/watcher page.

Change-Id: I487874802a2a79ae442ca996f00ef2f04ef6dc16
Reviewed-on: https://go-review.googlesource.com/37221
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-02-18 05:55:15 +00:00
Brad Fitzpatrick 64510d09a2 cmd/coordinator: increase max allowed repo source tarball
The talks repo got too big.

Also clean up the gitmirror fetching a code while there. It no longer
runs as a subprocess, so we don't need to account for its start-up
time.

Fixes golang/go#19162

Change-Id: I0f80b95360d079989254c26ea0406dab9633f0c1
Reviewed-on: https://go-review.googlesource.com/37217
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-02-17 22:01:36 +00:00
Brad Fitzpatrick c5562d003a kubernetes: fix, test GetNodes
Broken in my cleanup golang.org/cl/36692

Change-Id: I5f82314b8ff703cf2c894771fbc0eb16834fc47b
Reviewed-on: https://go-review.googlesource.com/37216
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-02-17 22:01:21 +00:00
Benny Siegert b8aa0be147 build: Use stable branch packages for netbsd-amd64.
In the last iteration, Brad got an inconsistent (i.e. non-working) set
of packages because (a) the CDN uses different mirrors, some of which
are more stale than others and (b) it was using bleeding-edge packages.

Switch to a hardcoded mirror (the main one) and stable (2016Q4)
packages.

Change-Id: I45e5ec8596b522c6284ff4b8f08edd1a29f5597b
Reviewed-on: https://go-review.googlesource.com/37190
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-02-17 19:12:07 +00:00
Brad Fitzpatrick 8eec6fbb33 env/linux-ppc64le/osuosl: update NOTES with updated IPs
They were moved around a few months ago and I didn't
update the notes.

Change-Id: I435864acbb967a5c9f0eb6a0f969fe711cd720c9
Reviewed-on: https://go-review.googlesource.com/37143
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-02-17 02:15:09 +00:00
Brad Fitzpatrick bdd3cb5f93 cmd/coordinator: fix remote buildlet regression
Introduced in CL 36898

Prevented remote Kube buildlets from working.

Change-Id: If401c7833248083893a43c2d594885b4c8de213c
Reviewed-on: https://go-review.googlesource.com/37136
Reviewed-by: Chris Broadfoot <cbro@golang.org>
2017-02-16 19:15:35 +00:00
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
Jaana Burcu Dogan 0c329e94ad cmd/pushback: fix placeholder PR numbers
golang/go placeholder had to be changed to 19117 given the previous
placeholder cannot be reopened.

golang/oauth2 is using the correct PR number now.

Change-Id: I9ee4801d6b4abc340fa1c9a74e3c0a6649f537f0
Reviewed-on: https://go-review.googlesource.com/37108
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-02-16 18:02:22 +00:00
Jaana Burcu Dogan 12b69d3b8e cmd/pushback: keep oauth2 placeholder pull request open
Updates golang/oauth2#217.

Change-Id: I9d75fa2eb4365a6ff7945b088e7abbee9e1c9027
Reviewed-on: https://go-review.googlesource.com/36933
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-02-14 01:41:27 +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 9a094f9b85 buildlet: fix doc typo
Change-Id: I2e43aa33634eb63b7cbdcc6ba6296fe8e857ad81
Reviewed-on: https://go-review.googlesource.com/36912
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-02-13 18:03:35 +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