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

1556 Коммитов

Автор SHA1 Сообщение Дата
Dmitri Shuralyov e7a2a012f3 maintner: deduplicate issue references in parseGithubRefs
When parsing commit messages for references to GitHub issues,
parseGithubRefs used to add entries to GerritCL.GitHubIssueRefs
slice whenever there was a reference, even if that reference has
already appeared before.

The GitHubIssueRef type only contains minimal information about
a reference: the repository and the issue number. As a result,
there is very little to gain from tracking multiple references
separately. Most users of the API would likely prefer a list
of unique issue references than the raw list. So, change it to
return unique issue references only, and document that.

If in the future there is a need to track issue references
at a more granular level, where it matters whether there was
one or multiple references, the API can be revisited then.

Fixes golang/go#26113.

Change-Id: Ib51372736bcf49e3eae4cf111d0258733c742e61
Reviewed-on: https://go-review.googlesource.com/128119
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-08-07 00:39:16 +00:00
Dmitri Shuralyov dcbfa19f24 maintner: propagate and use internal invariants in finishProcessingCL
This change simplifies and cleans up finishProcessingCL. It documents
a precondition for finishProcessingCL that cl.Meta must be non-nil.

finishProcessingCL is only ever called on CLs that have been noted as
dirty via noteDirtyCL, and CLs are always given a non-nil Meta before
noteDirtyCL is called on them.

foreachCommitParent sounded like it called f on all parents of commit,
not including commit itself. In reality, it called f on commit as well.
Rename it to foreachCommit and improve its documentation to make this
more visible.

As a result, it becomes more clear that cl.Metas will contain at least
one element (e.g., at least mostRecentMetaCommit). Then, cl.Metas[0]
can be used to find the CL creation time.

Also change foreachCommit to return an error if a parent commit isn't
found. Otherwise, we'd be cutting the history walk short and the caller
wouldn't know. This shouldn't happen, but if it does, it'll be logged
(by finishProcessingCL).

Define a CL to be complete if its Meta and Commit fields are non-nil,
and the Metas slice contains at least 1 element. Use this to simplify
OwnerName and OwnerID methods and remove the no longer needed
firstMetaCommit method.

Finally, use the simplified finishProcessingCL to set cl.Created to
the actual creation time of the CL (rather than "last updated" time).
It's easy now, because we can deduce that len(cl.Metas) >= 1 is
guaranteed to be true, and therefore cl.Metas[0] will not panic.
There's no need to add guards or think about what to do if cl.Metas
is empty.

Document GerritCL.Created field, since it's exported.

Background

This change was started with the goal of fixing golang/go#24744.
It was hard to fix that bug with a short diff, because there were
too few guarantees inside finishProcessingCL that could be relied on.
I wanted to improve that as part of my fix.

We already established some guarantees for the user-facing CLs (i.e.,
that their Commit, Meta fields are non-nil and len(cl.Metas) >= 1).
I started propagating and using that property in a few more places
in internal code.

It allowed simplifications such as:

	 // OwnerName returns the name of the CL’s owner or an empty string on error.
	 func (cl *GerritCL) OwnerName() string {
	-	m := cl.firstMetaCommit()
	-	if m == nil {
	-		return ""
	-	}
	-	return m.Author.Name()
	+	if !cl.complete() {
	+		return ""
	+	}
	+	return cl.Metas[0].Commit.Author.Name()
	 }
	-
	-func (cl *GerritCL) firstMetaCommit() *GitCommit {
	-	m := cl.Meta
	-	if m == nil { // TODO: Can this actually happen, besides in one of the contrived tests? Remove?
	-		return nil
	-	}
	-	c := m.Commit
	-	for c != nil && len(c.Parents) > 0 {
	-		c = c.Parents[0] // Meta commits don’t have more than one parent.
	-	}
	-	return c
	-}

	 // complete reports whether cl is complete.
	 // A CL is considered complete if its Meta and Commit fields are non-nil,
	 // and the Metas slice contains at least 1 element.
	 func (cl *GerritCL) complete() bool {
	 	return cl.Meta != nil &&
	 		len(cl.Metas) >= 1 &&
	 		cl.Commit != nil
	 }

Also, previously, it was hard to be sure that the
gc, ok := ... line wouldn't panic:

	// called with Corpus.mu Locked
	func (gp *GerritProject) finishProcessingCL(cl *GerritCL) {

		// What happens if cl.Meta is nil?
		// Should there be a if cl.Meta == nil guard here?
		// What should it do if cl.Meta is indeed nil?
		gc, ok := c.gitCommit[cl.Meta.Commit.Hash]
		if !ok {
			log.Printf("WARNING: GerritProject(%q).finishProcessingCL failed to find CL %v hash %s",
				gp.ServerSlashProject(), cl.Number, cl.Meta.Commit.Hash)
			return
		}

By documenting that cl.Meta must be non-nil as a precondition of
finishProcessingCL, it became possible to know it won't panic:

	// finishProcessingCL fixes up invariants before the cl can be returned back to the user.
	// cl.Meta must be non-nil.
	//
	// called with Corpus.mu Locked
	func (gp *GerritProject) finishProcessingCL(cl *GerritCL) {

		// cl.Meta can't be nil due to precondition.
		gc, ok := c.gitCommit[cl.Meta.Commit.Hash]
		if !ok {
			log.Printf("WARNING: GerritProject(%q).finishProcessingCL failed to find CL %v hash %s",
				gp.ServerSlashProject(), cl.Number, cl.Meta.Commit.Hash)
			return
		}

(It would be a bug to call finishProcessingCL with a cl where
cl.Meta is nil, because it'd be violating the precondition.)

I think stating preconditions and propagating more internal invariants
is a good general direction, because it allows the code to be simpler
and easier to verify as being correct. Otherwise, one needs to keep
checking if fields are non-nil everywhere before using them and think
what to do if they are nil, and that's unpleasant.

Fixes golang/go#24744.

Change-Id: I07e362d52e30089a9ba03c30b04ad19b2c385722
Reviewed-on: https://go-review.googlesource.com/111877
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-08-06 16:50:14 +00:00
Kevin Burke 4639cd3919 cmd/racebuild: fix errors reported by go vet
Change-Id: I79b07beeb284386b1683cfb22f283b18caaee0ce
Reviewed-on: https://go-review.googlesource.com/127919
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-08-04 19:33:28 +00:00
Daniel Theophanes c1b72a71f2 gerrit: allow setAuth to fallthrough to netrc lookup
When git has no http cookies, the request for http cookies
will fail because git will exit(1). Ignore this failure
because the output is properly tested either way. This allows
authentication to fallthrough to the netrc lookup.

Correct the netrc lookup under windows. git reads the netrc
file as "_netrc" in the users home directory.

Add a warning at the end of the function that no authentication
was set.

Fixes golang/go#26782

Change-Id: I0ba94ff7fa4b6038d6117156dcc729ddf4616fdc
Reviewed-on: https://go-review.googlesource.com/127855
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-08-03 18:56:37 +00:00
Andrew Bonventre 24a3043779 maintner/maintnerd: increase RAM in k8s config
Change-Id: Iae6d90aa6692d4eaf247bde6834115d1b21ba514
Reviewed-on: https://go-review.googlesource.com/127677
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-08-02 22:18:53 +00:00
Andrew Bonventre 018bec1401 cmd/gerritbot: up RAM limits in k8s config
Change-Id: I0939e245f8dd2573e099491e0e014dc8571b6ebe
Reviewed-on: https://go-review.googlesource.com/127676
Reviewed-by: Bryan C. Mills <bcmills@google.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-08-02 22:03:54 +00:00
Brad Fitzpatrick 6ab2be55de dashboard: test sub-repositories on s390x
Fixes golang/go#26131

Change-Id: I07e84c255a158b843168612cc3dad7688343ffb7
Reviewed-on: https://go-review.googlesource.com/127375
Reviewed-by: Michael Munday <mike.munday@ibm.com>
Reviewed-by: Andrew Bonventre <andybons@golang.org>
2018-08-02 22:02:28 +00:00
Andrew Bonventre 1fadf6bf5a devapp: check for error from s.initCorpus
Also remove superfluous newlines from log strings.

Change-Id: I2e0fb408f40e47af3f6ea5149113722b3e1db114
Reviewed-on: https://go-review.googlesource.com/127675
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
2018-08-02 21:57:06 +00:00
Brad Fitzpatrick ec760fd405 cmd/gitmirror: update docs
Change-Id: If8b2dbde8001f6b89af52b34785bd894a6454e35
Reviewed-on: https://go-review.googlesource.com/127315
Reviewed-by: Andrew Bonventre <andybons@golang.org>
2018-08-01 19:43:13 +00:00
Brad Fitzpatrick 0d762918c5 cmd/gitmirror: bump resources
Change-Id: I634ffe2a7844a27e88bb958fa20836eaf500e915
Reviewed-on: https://go-review.googlesource.com/127316
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-08-01 19:32:51 +00:00
Andrew Bonventre a697e2c998 devapp: add healthz endpoint and configure k8s readiness probe
This will allow for zero-downtime deployments, which will be
important for when services start relying on the /owners endpoint.

Change-Id: I4671dbbbf473ba07dbab585222d12832c3193fac
Reviewed-on: https://go-review.googlesource.com/127036
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-08-01 18:15:17 +00:00
Martin Möhrmann b9f5d4d869 devapp/owners: add martisch to internal/cpu, runtime and cmd/compile contacts
runtime: mostly for maps, slices, utf8, string functions and cpu features.

Change-Id: I66765b1bdb4fb4dae1b28fb7a90c0ee23ce63112
Reviewed-on: https://go-review.googlesource.com/126595
Run-TryBot: Martin Möhrmann <moehrmann@google.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-07-28 20:19:57 +00:00
Quentin Perez f482cec68b dashboard: add zenly as builder for ios (Iphone 5C, 7+)
Change-Id: Ie1dd5c53ed0b2d207297ee0cd3ba46a111167e30
Reviewed-on: https://go-review.googlesource.com/125815
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-07-27 16:40:10 +00:00
Brad Fitzpatrick 4d0ec90705 dashboard: add windows-arm builder
Updates golang/go#26148

Change-Id: I23a2c7bd1c2f8f7c960aaedfe0dcdee4e11825ab
Reviewed-on: https://go-review.googlesource.com/125643
Reviewed-by: Andrew Bonventre <andybons@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-07-24 21:30:05 +00:00
Dmitri Shuralyov 779c38b4a2 all: update GitHub username shurcooL to dmitshur
I have renamed my GitHub username from shurcooL to dmitshur.
Update all instances to match.

Reference: https://twitter.com/dmitshur/status/1021266582834634752.

Change-Id: I7f2454fd8359c2af8a019baabee4f2a346f19718
Reviewed-on: https://go-review.googlesource.com/125439
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-07-23 15:38:57 +00:00
Daniel Martí 1650b5fc82 devapp/owners: add cmd/go to the table
Using the names that Russ provided on golang-dev in
https://groups.google.com/forum/#!topic/golang-dev/2A_Ks3p4svE.

Change-Id: If099c3d1a3863957aef8b1b4720e715bbc66d7cc
Reviewed-on: https://go-review.googlesource.com/124955
Run-TryBot: Daniel Martí <mvdan@mvdan.cc>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-07-19 16:38:17 +00:00
Robert-André Mauchin 0d6a6460c5 cmd/coordinator/buildongce: fix tests
Fixes golang/go#26476

Change-Id: I380e47cfc0d51d0c297a2d7e5cdb263e09bcfd9c
Reviewed-on: https://go-review.googlesource.com/124975
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-07-19 16:02:51 +00:00
Brad Fitzpatrick 9e3b83b06d version: delete generator, add README
Updates golang/go#23223

Change-Id: I98eb37fc572235ad4eb6e0bd6e687c308c99b4a9
Reviewed-on: https://go-review.googlesource.com/123678
Reviewed-by: Andrew Bonventre <andybons@golang.org>
2018-07-13 17:13:49 +00:00
Hana Kim a41435cbf9 cmd/gitmirror: fix html in handleRoot
Change-Id: Ie0ab89caedae20dbb8c38cba1f872a7539fb48f8
Reviewed-on: https://go-review.googlesource.com/121437
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-07-11 20:52:42 +00:00
Michael Dorner 7feb1540b0 gerrit: add parameter for pagination in QueryChangesOpt
QueryChangesOpt has now a new pagination field Start for the number of first changes to skip, as it was already implemented for QueryAccountsOpt.

Fixes golang/go#24838

Change-Id: If779a404f256aca1924ce2412c79b821f4f9f639
GitHub-Last-Rev: aa79a753b6
GitHub-Pull-Request: golang/build#8
Reviewed-on: https://go-review.googlesource.com/122584
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-07-09 13:51:24 +00:00
Akhil Indurti 5a0b491d3d version/go1.11beta1: change URL for release notes
Previously, the referenced URL for release notes was
https://golang.org/doc/go1.11beta1, where there was no document. This
change points it to https://tip.golang.org/doc/go1.11.

Updates golang/go#26240

Change-Id: Ie42cd9c16bc8ebe9e8f5cc820ff702f577212067
Reviewed-on: https://go-review.googlesource.com/122409
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-07-06 04:57:28 +00:00
Brad Fitzpatrick cd2ea43c78 dashboard: speed up js/wasm trybots
We don't need to run all the tests in a trybot. Run just enough to get
good coverage, without going over 5 minutes.

Any regressions elsewhere will be caught by the build.golang.org
(slower) runs.

Change-Id: I32f1fc17681bfb509844d2bd35b05c950806d283
Reviewed-on: https://go-review.googlesource.com/121938
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-07-02 21:32:06 +00:00
Jeff Johnson 114c42eb0e env/windows: disable windows defender on builders
Windows Defender scans all new files written to disk which slows down
build performance.

- Uninstall Windows Defender as part of image building
- Refactor/Cleanup registry section for consistency
- Promote new image version to dashboard (built in staging/prod)

fixes golang/go#26055

Change-Id: I3e16b9a9581824c20abed5e8ffae1efd46c6dd09
Reviewed-on: https://go-review.googlesource.com/121937
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-07-02 19:24:40 +00:00
Brad Fitzpatrick b64fecba50 app/appengine: update to Go 1.9 so we can use std context
Go 1.9 is the latest offered on App Engine, which at least is new
enough to get us type aliases.

Fixes golang/go#26115

Change-Id: I4de3062cf2f7df70216536a05b7150324c1a5e91
Reviewed-on: https://go-review.googlesource.com/121418
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
2018-06-28 20:39:12 +00:00
Andrew Bonventre 9b1b5cdabb version: add go1.11beta1
Change-Id: I75c08d170eab8452e305c6f35f625c713e5b0657
Reviewed-on: https://go-review.googlesource.com/121019
Reviewed-by: Andrew Bonventre <andybons@golang.org>
2018-06-26 21:56:02 +00:00
Andrew Bonventre 46b9db78f1 cmd/gitmirror: update deps
Pull in google.golang.org/api/compute/v1 and
google.golang.org/api/oauth2/v2 needed by
x/build/buildenv/envs.go

Change-Id: I3abb036f18f3dc10f86626205d0c2ea0bf75078b
Reviewed-on: https://go-review.googlesource.com/120856
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-06-26 17:04:47 +00:00
Filippo Valsorda 82893f770d releasebot: allow resuming after the tag was created
Change-Id: I1023761af4997e51273dc636b865ab35fce7366e
Reviewed-on: https://go-review.googlesource.com/120761
Reviewed-by: Andrew Bonventre <andybons@golang.org>
2018-06-25 22:38:30 +00:00
Brad Fitzpatrick 7538b3fd4c dashboard: enable trybots for js/wasm
Fixes golang/go#26015

Change-Id: I25656a8e2918196cf950e29184c783503da9f905
Reviewed-on: https://go-review.googlesource.com/120775
Reviewed-by: Andrew Bonventre <andybons@golang.org>
2018-06-25 18:54:22 +00:00
Andrew Bonventre 767337190e cmd/gopherbot: disable CGO to prevent warnings during linking
Change-Id: I5e5f351ea004e3b7e095398006cb13985ba6c91f
Reviewed-on: https://go-review.googlesource.com/120196
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-06-21 15:34:13 +00:00
Andrew Bonventre 4c462a87d7 cmd/gopherbot: check maintner and GitHub before adding/removing labels
This change introduces a tiered model for making changes to labels:
+ If a label exists (or does not exist in the case of removal) on an
  issue according to maintner, then no action is taken to add (or
  remove) that label.
+ Before making any requests to remove a set of labels, the GitHub
  API is checked to see which ones are already not present on the issue.
  Then it only removes the labels that exist on the issue.

Change-Id: If6693db71ad9dfc3537c462bcdbc5af8f33e5b16
Reviewed-on: https://go-review.googlesource.com/120043
Reviewed-by: Bryan C. Mills <bcmills@google.com>
2018-06-21 15:07:48 +00:00
Andrew Bonventre ad1b719e57 cmd/gopherbot: add ability for users to label issues using comments
See tests for the various acceptable range of commands.

Fixes golang/go#24785

Change-Id: If3dfded60db4879f6d7e2281a3ba014a003a2b81
Reviewed-on: https://go-review.googlesource.com/119538
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-06-20 17:15:00 +00:00
Brad Fitzpatrick c3923b0c65 dashboard: remove mobile misc-compile trybots
I guess they never worked.

Updates golang/go#25963

Change-Id: I1409a704670032410c3c6b87cbbb876fc96dfb22
Reviewed-on: https://go-review.googlesource.com/119856
Reviewed-by: Filippo Valsorda <filippo@golang.org>
2018-06-19 21:34:26 +00:00
Filippo Valsorda 7f9f9beb17 cmd/releasebot: add support for beta releases
Change-Id: I20b4c68dd2512dc76f5751c200d487784b68670b
Reviewed-on: https://go-review.googlesource.com/119537
Reviewed-by: Andrew Bonventre <andybons@golang.org>
2018-06-19 19:43:43 +00:00
Filippo Valsorda 98033f5827 cmd/releasebot: remove runDir and extraEnv object state
Change-Id: I361a42676926aaf92314a2681f519bbf21a1d612
Reviewed-on: https://go-review.googlesource.com/119536
Reviewed-by: Andrew Bonventre <andybons@golang.org>
2018-06-19 19:41:48 +00:00
Elias Naur e9a80ab72f dashboard: switch iOS hardware
Jakob Borg kindly supplied a new iPhone 6 to replace the ailing
iPhone 5 (arm) and iPhone 6 (arm64) that currenctly runs the iOS
builders.

The new phone runs iOS 10 that can run both arm and arm64, so
instead of replacing the device ids specified with GOIOS_DEVICE_ID,
simply remove them altogether.

Change-Id: I36cf574a902b953a3d2bf2a5de50741dff1b940d
Reviewed-on: https://go-review.googlesource.com/119415
Run-TryBot: Elias Naur <elias.naur@gmail.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-06-19 16:10:16 +00:00
Filippo Valsorda 6ae3f185d4 cmd/releasebot: adapt to new minor release process
Split the process in two parts with a manual +2 and submit of the
release commit in the middle. This way the release manager doesn't need
to force submit anything, and the first stage stops before serious
write operations. This also made dry-run mode more complete and the
process easier to resume if something breaks.

Completely removed the beta and rc code as it got messy with the partial
rewrite and it would have just been broken untested code waiting to break.

Fixes golang/go#24902

Change-Id: I2cbd9bdf88e283d2ca527e5c91c620617d7e068e
Reviewed-on: https://go-review.googlesource.com/116357
Reviewed-by: Andrew Bonventre <andybons@golang.org>
2018-06-13 21:27:35 +00:00
He Liu 64a630379a cmd/coordinator: fix build breakage
Change-Id: Ia20f95e96922c80616cb921cbd3eca8108e4b2fc
GitHub-Last-Rev: 5bfb2bed28
GitHub-Pull-Request: golang/build#6
Reviewed-on: https://go-review.googlesource.com/118435
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-06-13 01:37:22 +00:00
Brad Fitzpatrick b15cdb2e0a env/linux-x86-nacl: update builders to unreleased pepper_67
The nacl image hadn't been updated in 2+ years and it needed to be
updated as part of rolling out the new COS-based builders.

But no released version works for us yet; we were getting the same
errors as in golang/go#23836 ("Signal 11 from untrusted code")

We were getting lucky that it was working with an ancient (pepper_34?)
version, but I was unable to get those working again either.

Rolling forward is better anyway, as we haven't had a Dockerfile
reflecting reality for this builder for 2+ years.

This is the same version used in playground in CL 101735, which said:

> playground: update NaCl to trunk.544461
>
> This pulls in https://crrev.com/c/962675, which fixes the
> underlying issue of NaCl mishandling signals during a SIGSEGV.

Updates golang/go#23836
Updates golang/go#25108

Change-Id: I187042af71a1249e84ce2070aa8039a88d2c02c2
Reviewed-on: https://go-review.googlesource.com/112735
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Andrew Bonventre <andybons@golang.org>
2018-06-12 22:30:44 +00:00
Filippo Valsorda f4340766fd cmd/coordinator: list in HTML host types that are entirely missing
Change-Id: Id308486b5331c3c2ea8d4cb419a690aea1541433
Reviewed-on: https://go-review.googlesource.com/108561
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-06-12 22:30:20 +00:00
Chris Broadfoot 90850ed6b2 maintner, godata: explain updates and read locks
Explain how to keep the godata corpus up-to-date, and clarify the
requirements around locking and updating.

Fix a typo.

Change-Id: Ic9dbe203d1dee7ad3c7463ae932df5daadb51923
Reviewed-on: https://go-review.googlesource.com/47813
Reviewed-by: Andrew Bonventre <andybons@google.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-06-12 22:28:09 +00:00
Filippo Valsorda d8cc845c75 cmd/release: use Application Default Credentials
Using global API keys or user managed service account keys for
"personal" actions (as opposed to application ones) is discouraged, as
it does not map to a specific user identity.

Change-Id: I945cfc3ad581a9c1df2289c6b77891164258802d
Reviewed-on: https://go-review.googlesource.com/117315
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-06-12 17:58:38 +00:00
Filippo Valsorda eaa5f48c93 version: add go1.9.7 and go1.10.3
Change-Id: I2cf4b560a55b5908139bb4471c6dbf406b9cc0a2
Reviewed-on: https://go-review.googlesource.com/117316
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-06-07 23:05:08 +00:00
Brad Fitzpatrick ab8120588e cmd/buildlet/stage0: force buildlet URL for s390x cross compile builder
Fixes golang/go#25760

Change-Id: Ia3072824b3898dbd1b11b8b2b4fdc10cc967735b
Reviewed-on: https://go-review.googlesource.com/116695
Reviewed-by: Filippo Valsorda <filippo@golang.org>
2018-06-06 18:05:13 +00:00
Filippo Valsorda 715fac0d7a internal/gophers: add gomote to GitHub mapping for FiloSottile
Change-Id: Ic8e64bc2affea0681d7b01b891879bcc9624fe78
Reviewed-on: https://go-review.googlesource.com/116635
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-06-06 17:45:08 +00:00
Chris Broadfoot 3b34821471 maintner: refactor gcslog and API into separate packages
Fixes golang/go#24786.

Change-Id: I008810a0394c75e7c790165308ff9ef872c77fdc
Reviewed-on: https://go-review.googlesource.com/105935
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-06-05 21:16:45 +00:00
Bryan C. Mills 01f5214fec cmd/racebuild: use multi-line match for README regexp
In https://golang.org/cl/115375 I had neglected to test against a
non-empty README file, and accidentally wrote a regexp that never
matches.

Change-Id: I676cb11abea7e0f5bf337aab640ebc2478295a9b
Reviewed-on: https://go-review.googlesource.com/115377
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-05-31 18:02:37 +00:00
Bryan C. Mills 11ce5df82e cmd/racebuild: improve reproducibility of .syso builds
Use a known version of MinGW on Windows. (On other platforms, we use
whatever compiler is already installed on the system image.)

Test at a well-defined Go commit.

Record the Go and LLVM commits for each platform independently.
Extracting the C++ toolchain version is left for future work, but it
should be recoverable from the resulting .syso file anyway.

Change-Id: I9af1d2a6f540a4d276b87074864564bf989e4731
Reviewed-on: https://go-review.googlesource.com/115375
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-05-30 20:39:49 +00:00
Brad Fitzpatrick 1139b11e3e maintner: don't Fatal on unknown GitHub API fields
GitHub added some new field in their responses ("node_id") which
causes our maintnerd to start crashing.

The code was supposed to just log.Print, not log.Fatal.

Also, ignore that field. Not worth saving.

Change-Id: I3ecb20eb3c99c27baa147b226e1d21ce5ec592cb
Reviewed-on: https://go-review.googlesource.com/115335
Reviewed-by: Andrew Bonventre <andybons@golang.org>
2018-05-30 18:54:21 +00:00
Alberto Donizetti e7d3cfbb85 dashboard: increase TIMEOUT_SCALE to 2 for linux-amd64-longtest
runtime tests take about 180s in long mode, too close to the timeout
limit (180 seconds), and this is causing sporadic timeout failures
like

  https://build.golang.org/log/cda568a39f396e3fee64778a475528be452632ed

Bump up the builder's timeout by 2x.

Fixes golang/go#25629

Change-Id: I77e0f86f0b236cb953457ebdcbfc5763c2c6d54b
Reviewed-on: https://go-review.googlesource.com/115016
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-05-29 19:11:18 +00:00
Alberto Donizetti 60a6a1c9a0 env: add subversion to the linux-x86-stretch dockerfile
CL 114595 added git and hg to the stretch builder to fix cmd/go tests,
but I missed that one test is using svn. Add svn too.

Change-Id: I8c6555c1c71cecd4012136ca413008025deeef32
Reviewed-on: https://go-review.googlesource.com/114676
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-05-29 18:10:34 +00:00