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

59 Коммитов

Автор SHA1 Сообщение Дата
Dmitri Shuralyov 7bf60f09df all: make copyright headers consistent
Replace "Go Authors" with "The Go Authors." to be consistent with the
standard copyright header at https://go.dev/doc/contribute#copyright.
There were also a couple instances of a double space and double "the".

Change-Id: Ife7a80dd40f1a760ba85cbfee270356d46cfc53f
Reviewed-on: https://go-review.googlesource.com/c/build/+/472376
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org>
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
2023-03-01 01:31:01 +00:00
Carlos Amedee e8c8ca12ab all: add license headers
This change adds license headers to files which are missing them.
A modified version of the addlicense tool was used to add these headers:
https://github.com/google/addlicense

The command issued was:
addlicense -c "Go Authors" -l bsd *

Change-Id: Id6fd17c587f99b3ff0ef5f5f35befcfe5aaeef72
Reviewed-on: https://go-review.googlesource.com/c/build/+/409614
Run-TryBot: Carlos Amedee <carlos@golang.org>
Auto-Submit: Carlos Amedee <carlos@golang.org>
Reviewed-by: Carlos Amedee <carlos@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Alex Rakoczy <alex@golang.org>
2022-06-01 18:19:15 +00:00
Dmitri Shuralyov 6b1a97dcea app/appengine, app/key: delete
The appengine command is no longer needed since
the coordinator is serving the build dashboard.

The key package is now unused.

For golang/go#34744.

Change-Id: I74218bac6b7457434975d13842e59e150fc078be
Reviewed-on: https://go-review.googlesource.com/c/build/+/336792
Trust: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Carlos Amedee <carlos@golang.org>
2021-08-10 20:05:55 +00:00
Dmitri Shuralyov c0dcd4d928 app/appengine: delete cron.sh
This script was used on two cron-part.yaml files
which are gone as of CL 46832 and CL 208397.

For golang/go#34744.

Change-Id: If8dd34391e57e011909d22142a4f6c979b8bb51f
Reviewed-on: https://go-review.googlesource.com/c/build/+/336389
Trust: Dmitri Shuralyov <dmitshur@golang.org>
Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Carlos Amedee <carlos@golang.org>
2021-07-30 16:51:00 +00:00
Dmitri Shuralyov 70303fc210 app/appengine: stop hiding some tested configurations for x repos
The build dashboard can be used to view builds for the main Go repo
and other golang.org/x repos. The isUntested invocation was invalid
for repos other than the main one, which was causing results for some
tested configurations to become hidden (incorrectly replaced by '•').

Larger changes are needed before there's sufficient data to compute
the GoBranch value for all repos reliably, so for now, just update
the isUntested invocation to apply only for the main repo.

This prioritizes the ability to view test results over the ability
to see that some builds are intentionally missing because they are
configured not to run. Doing both is a part of future work.

For golang/go#40290.
For golang/go#34744.
For golang/go#28643.

Change-Id: Id43cb47abacb1036f578efbb8232ae17ad40eca9
Reviewed-on: https://go-review.googlesource.com/c/build/+/244137
Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Alexander Rakoczy <alex@golang.org>
Reviewed-by: Carlos Amedee <carlos@golang.org>
2020-07-22 20:00:05 +00:00
Rob Findley d1deecf122 app/appengine: fix the json view for subrepos
The UI's json view makes some assumptions about the main commit data
coming from the Go Gerrit repo, resulting in misreporting the commit
repo and missing result data. Update this logic to handle other repos.

Since jsonView was untested, a minimal test is added that validates its
handling of the go repo, and reproduces the bug reported in
golang/go#35515 for a subrepo.

Fixes golang/go#35515

Change-Id: I10f01b92bbdabe866e776217e02d64cb5c040389
Reviewed-on: https://go-review.googlesource.com/c/build/+/232897
Run-TryBot: Robert Findley <rfindley@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Alexander Rakoczy <alex@golang.org>
Reviewed-by: Carlos Amedee <carlos@golang.org>
2020-05-15 21:21:48 +00:00
Dmitri Shuralyov baf8b21809 dashboard, app/appengine: set a known issue for staticlockranking builder
The linux-amd64-staticlockranking builder was added pre-emptively so
that it could be tested and used during the development of a CL that
implements a new feature. It's expected to fail until that work is
completed. Mark it as a builder with a known issue, golang/go#38029.

The new BuildConfig.KnownIssue field can be used by builders being
added in the future so that if they fail at first, it doesn't take
away time for people looking at build.golang.org, which we always
aim to have as green as possible¹.

¹ https://groups.google.com/d/msg/golang-dev/y0yM_Xi665Q/hUpBiUPiCAAJ

Fixes golang/go#38283
For golang/go#38029
For golang/go#37937
For golang/go#11811

Change-Id: Iba1606c7021ffa7e67ddbaae2fc6b65f4e46ab34
Reviewed-on: https://go-review.googlesource.com/c/build/+/227379
Reviewed-by: Alexander Rakoczy <alex@golang.org>
2020-04-07 15:54:18 +00:00
Brad Fitzpatrick fba2c51d59 app/appengine: fix which builders we show as a function of repo/branch
This hides a bunch of old columns, especially from x/foo repos pages.

And it gives each x/foo release branch section at the bottom its own
set of builders.

Change-Id: I97ea93beb5ce4d89afcef9726c0d73aea745b275
Reviewed-on: https://go-review.googlesource.com/c/build/+/211117
Reviewed-by: Alexander Rakoczy <alex@golang.org>
2019-12-13 18:18:58 +00:00
Brad Fitzpatrick 9ff529881d app/appengine: gzip responses
Drops response size from 1.2 MiB to 37 KiB.

Fixes golang/go#36094

Change-Id: I4cf8eda0582da49cf97f7b0f9be93113f5090fbb
Reviewed-on: https://go-review.googlesource.com/c/build/+/211077
Reviewed-by: Bryan C. Mills <bcmills@google.com>
2019-12-13 17:01:29 +00:00
Brad Fitzpatrick 41fffb13b6 app/appengine: delete unused tail func
It's the only func not used by the template. Looking at the git
history, I don't see it ever being used.

Change-Id: Id074712996589fc3a7a517fd7ae47bc84a292904
Reviewed-on: https://go-review.googlesource.com/c/build/+/211317
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
2019-12-13 16:17:05 +00:00
Brad Fitzpatrick 20e40ba7b0 app/appengine: don't lose repo arg when switching between branches
Fixes golang/go#36117

Change-Id: I1daf7a56bb4c8395d819e644af4b7e5bf690b7a2
Reviewed-on: https://go-review.googlesource.com/c/build/+/211138
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
2019-12-13 05:55:55 +00:00
Brad Fitzpatrick 4143c80e8d app/appengine: update docs, add --dev and --fake-results flags
The dev_appserver.py is no longer available in Go 1.12+, so update
instructions so others know how to hack on this codebase.

The new --fake-results flag means anybody can hack on it locally
without any special access.

Change-Id: I3e395814bf7275bd3b24615d2a37f9c6ac186508
Reviewed-on: https://go-review.googlesource.com/c/build/+/211097
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
2019-12-12 21:10:18 +00:00
Brad Fitzpatrick 9ec77662a0 app/appengine: fix log handler's fallback to the old Mercurial namespace
In CL 210977 I broke the log handler's ability to see old pre-git
failures. They're stored in a different datastore namespace.

Change-Id: I494e2227f0aa8510490ff7e7075cb1d71d27e4f3
Reviewed-on: https://go-review.googlesource.com/c/build/+/211079
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Alexander Rakoczy <alex@golang.org>
2019-12-12 18:09:32 +00:00
Brad Fitzpatrick 42d8084f66 app/appengine: move some code, remove some variables
From comment by Alex on at
https://go-review.googlesource.com/c/build/+/210997/5/app/appengine/ui.go#69

Change-Id: I5aa3ee0ee0d0c2f434c8a78ae5127ebb089a60ec
Reviewed-on: https://go-review.googlesource.com/c/build/+/211078
Reviewed-by: Alexander Rakoczy <alex@golang.org>
Run-TryBot: Alexander Rakoczy <alex@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
2019-12-12 16:52:22 +00:00
Brad Fitzpatrick 662247f128 app/appengine: do maintner & coordinator RPCs concurrently
Fixes a TODO.

The coordinator RPC should be temporary, but a) who ever knows how
long temporary is, and b) it's easy enough to do, and c) faster is
nicer.

Updates golang/go#34744

Change-Id: Id7216e1c67dc04152565bb8c5d6181cde674a12e
Reviewed-on: https://go-review.googlesource.com/c/build/+/210997
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
2019-12-12 16:07:02 +00:00
Brad Fitzpatrick 0ee865c5a6 app/appengine: explicitly mark the Log.CompressedLog field as not indexed
The old App Engine datastore API and the new Cloud datastore API have
different behaviors with regard to indexing []byte properties.

Both APIs say the same:

https://godoc.org/google.golang.org/appengine/datastore#hdr-Properties
https://godoc.org/cloud.google.com/go/datastore#hdr-Properties

> All fields are indexed by default. Strings or byte slices longer
> than 1500 bytes cannot be indexed; fields used to store long strings
> and byte slices must be tagged with "noindex" or they will cause Put
> operations to fail.

But empirically only the new cloud API actually returns an error when
putting a >1500 []byte value into a field without noindex. Not sure
why.

Updates golang/go#34744

Change-Id: I15c938e91c92304eb7074de99c19f8e93182283e
Reviewed-on: https://go-review.googlesource.com/c/build/+/210998
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
2019-12-12 05:15:16 +00:00
Brad Fitzpatrick 7ea9c31f03 app/appengine: fix test breakage from CL 210977
Forgot Trybots. Yay me.

Change-Id: Ic18237bb976337febf7bb75f1e86374632dc2447
Reviewed-on: https://go-review.googlesource.com/c/build/+/210980
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2019-12-11 22:46:42 +00:00
Brad Fitzpatrick d3be4d6654 app/appengine: migrate from App Engine to Cloud APIs, move to Go 1.13
This is bullet 6 from the master plan at:
https://github.com/golang/go/issues/34744#issuecomment-563398753

Updates golang/go#34744

Change-Id: I273aed62a519ce240704e0ea190d08d0e254cdab
Reviewed-on: https://go-review.googlesource.com/c/build/+/210977
Reviewed-by: Alexander Rakoczy <alex@golang.org>
2019-12-11 22:30:18 +00:00
Brad Fitzpatrick 773315a321 app/appengine, cmd/coordinator: fetch active builds from coordinator, avoid memcache
This implements bullets 4 and 5 from the plan to unify the dashboard &
coordinator:
https://github.com/golang/go/issues/34744#issuecomment-563398753

Previously the coordinator would POST to the dashboard regularly, for
each active build, to say "I'm still working on this build! Write that
to memcache!". And then if somebody loaded https://build.golang.org/
it would do a big memcache multi-get to populate the little blue
gopher links to their status pages on the coordinator.

This instead turns it around. We no longer POST from the coordinator
to the dashboard, and we no longer use any memcache (which also means
migrating to the App Engine Go 1.13 runtime is easier, which drops
the built-in memcache support). Instead, the dashboard now does a GET
to the coordinator to get the list of active builds.

This also adds test coverage, which we didn't have before.

Updates golang/go#34744

Change-Id: I97a486ec362a7a00d29076c81a88d6417b138c1b
Reviewed-on: https://go-review.googlesource.com/c/build/+/210838
Reviewed-by: Alexander Rakoczy <alex@golang.org>
Run-TryBot: Alexander Rakoczy <alex@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
2019-12-11 17:47:50 +00:00
Brad Fitzpatrick 6e1808ab51 repos: flesh out package more, use it in maintnerd
This removes yet another list of all our repos.

(Goal is to simplify https://github.com/golang/go/wiki/CreatingSubRepository)

Most of the work was in earlier CL 208697.

Updates golang/go#36047

Change-Id: I9147b959fe6574e2f809091d08d360051b69402e
Reviewed-on: https://go-review.googlesource.com/c/build/+/210461
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Alexander Rakoczy <alex@golang.org>
2019-12-10 17:42:42 +00:00
Brad Fitzpatrick 5a6bc4402a app/appengine: fix tests from hasty CL 210287 fix
I forgot to run the tests when writing CL 210287, which were the quick fixes
found when deploying CL 208697.

Change-Id: Icdbc8afac89358c30c370fd9e1d1a3fd6df95db7
Reviewed-on: https://go-review.googlesource.com/c/build/+/210377
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2019-12-07 05:03:22 +00:00
Brad Fitzpatrick c1d9249edb app/appengine, cmd/gitmirror: fix things found during deployment failure
Change-Id: I6a0ba0c50fe2b51f6a3251dcf84cca8847142150
Reviewed-on: https://go-review.googlesource.com/c/build/+/210287
Reviewed-by: Carlos Amedee <carlos@golang.org>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
2019-12-06 22:06:42 +00:00
Brad Fitzpatrick e2b9141ea8 app, gitmirror, maintner: use maintner for dashboard, not datastore
Historically, the build.golang.org was the entire build system, and it
maintained a parallel copy of that git history in its datastore. It
was always buggy and incomplete and things like force pushes were
scary because the datastore mirror could get out of sync. It was also
a lot of code to support that sync.

This changes build.golang.org to instead get the git history from
maintnerd, and then we can remove all the HTTP handlers around
updating it, and can remove all the gitmirror code to call it to
maintain it.

Now build.golang.org only keeps build results, keyed on the commit
hash. It's much less code, but is still an App Engine app for now.
(but it's getting small enough, that porting it to
cloud.google.com/go/datastore is looking very simple)

This also adds a new "repos" package to unify the configuration of the
various Go repos. There were incomplete & redundant copies all over
the place.

Updates golang/go#34744
Fixes golang/go#35828
Fixes golang/go#31236 (New branch=mixed support adds this when desired)
Fixes golang/go#35944

Change-Id: Ifb39417287df3dea052ba8510566d80b4bc75d51
Reviewed-on: https://go-review.googlesource.com/c/build/+/208697
Reviewed-by: Bryan C. Mills <bcmills@google.com>
2019-12-06 21:18:41 +00:00
Brad Fitzpatrick 40c25c0cae app/appengine: remove unused tagHandler, document others, remove auth from init
tagHandler isn't used by anything. Delete. Less code to update.

And document who calls the other handlers.

Also, remove the auth requirement from the /init handler. It's
harmless to call without auth, and the login restriction went away
with the Go 1.12+ runtime anyway, so deleting it gets us closer to
being able to use the Go 1.12/Go 1.13 runtimes. (The plan is to delete
most the code, port the small remaining bit to the cloud.google.com/go
libraries so we can update to Go 1.12/Go 1.13+, and then at that
point, since the cloud.google.com/go code will run anywhere, we can
just run it in the same process as the coordinator.)

Updates golang/go#34744

Change-Id: I929c70945a3e9e27b38b1d5899c7860470361927
Reviewed-on: https://go-review.googlesource.com/c/build/+/208678
Reviewed-by: Bryan C. Mills <bcmills@google.com>
2019-11-25 14:51:58 +00:00
Brad Fitzpatrick 2f29401078 app/appengine: fix up mistakes from not test deploying earlier CLs
During my earlier deletion spree over the past few CLs I wasn't
testing on real data (with production data) and didn't catch that
datastore returns an error when you load an old entity into a struct
that has since removed a field.

So filter those out.

(I could've also restored those fields, perhaps with a dummy named
interface{} type, but this code is temporary, and I'd prefer fewer
fields to think about. And this was a good opportunity to re-read the
code.)

I also still had references to the always-empty-string Prefix field in
the template.

Change-Id: I4fd9002d6d1bae2a08f4c53ec34651a7fe5db344
Reviewed-on: https://go-review.googlesource.com/c/build/+/208399
Reviewed-by: Bryan C. Mills <bcmills@google.com>
2019-11-22 16:28:20 +00:00
Brad Fitzpatrick 757f20f639 app/appengine: delete yet more dead code
This is part of a series of CLs to clean up the build.golang.org App
Engine app in prep for it to be modernized, refactored, and replaced,
starting with deleting dead code.

Some of this was missed in CL 208319.

Updates golang/go#34744

Change-Id: I35adf4296b849dabed9d974e7eb58eeedc7d4293
Reviewed-on: https://go-review.googlesource.com/c/build/+/208397
Reviewed-by: Andrew Gerrand <adg@golang.org>
2019-11-22 03:49:56 +00:00
Brad Fitzpatrick 1380f86cc3 app/appengine: delete more dead code
This is part of a series of CLs to clean up the build.golang.org App
Engine app in prep for it to be modernized, refactored, and replaced,
starting with deleting dead code.

Updates golang/go#34744

Change-Id: I6cddbb44a63597a308f1d4399d21e5b70a8d83bf
Reviewed-on: https://go-review.googlesource.com/c/build/+/208324
Reviewed-by: Andrew Gerrand <adg@golang.org>
2019-11-21 23:25:42 +00:00
Brad Fitzpatrick f2aa1211fd app/appengine: delete old "broke the build" code
It hasn't worked in years.

This is part of a series of CLs to clean up the build.golang.org App
Engine app in prep for it to be modernized, refactored, and replaced.

Updates golang/go#34744
Updates golang/go#12509

Change-Id: I9f8445046961ccbe97f7b9c85c0772393bf7d547
Reviewed-on: https://go-review.googlesource.com/c/build/+/208322
Reviewed-by: Bryan C. Mills <bcmills@google.com>
Reviewed-by: Andrew Gerrand <adg@golang.org>
2019-11-21 23:03:57 +00:00
Brad Fitzpatrick 4aee3e9de4 app/appengine, cmd/genbuilderkey: move key gen from App Engine to new tool
This moves the /key handler to generate build keys to a standalone
tool. The old way has been largely broken for years (when using the
build.golang.org domain) due to internal App Engine changes. We have
to access it via https://build-dot-golang-org.appspot.com/key instead
to get authenticated.

Also, the App Engine go112 runtime doesn't support authenticated
handlers, so more reason to move off App Engine.

This CL is part of a series to move off the the build.golang.org App
Engine app that mirrors the git history into Datastore Entities, which
is full of complication and bugs.

These early steps are about removing a bunch of code from the App
Engine app so the important bits are easy to see and refactor.

Updates golang/go#34744

Change-Id: Iaf8e2bf458b5fea45bf05026d8a6eaf0ead88ec2
Reviewed-on: https://go-review.googlesource.com/c/build/+/208320
Reviewed-by: Bryan C. Mills <bcmills@google.com>
Run-TryBot: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
2019-11-21 22:19:06 +00:00
Brad Fitzpatrick cf930f68e4 app/appengine: remove ancient performance/benchmarking code
This was the performance/benchmark code from ~three generations ago.

It's unused and unmaintained. It broke when we moved from mercurial to
git, IIRC.

I'm attempting to modernize this code (for golang/go#34744) but it'd
be easier if there's less code to deal with.

Updates golang/go#34744

Change-Id: Ib4999830b05df9ffad9b46964022325404350b47
Reviewed-on: https://go-review.googlesource.com/c/build/+/208319
Reviewed-by: Bryan C. Mills <bcmills@google.com>
Reviewed-by: Andrew Bonventre <andybons@golang.org>
2019-11-21 22:18:58 +00:00
Brad Fitzpatrick cc0e72b37c app/appengine: add x/build to the build dashboard
It already does trybots and we try to keep it passing everywhere, so
let's see if that's true.

Fixes golang/go#30640

Change-Id: I9f888efd68eac223f4339736938c74480715a28b
Reviewed-on: https://go-review.googlesource.com/c/build/+/207852
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
2019-11-20 15:54:39 +00:00
Brad Fitzpatrick b8261ec315 cmd/xb, app/appengine: simplify build.golang.org deployment docs
Change-Id: I0057e5133f395de6924b94d130748db78d8b5ffc
Reviewed-on: https://go-review.googlesource.com/c/build/+/205597
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
2019-11-06 16:44:19 +00:00
Dmitri Shuralyov 817d966b7e app/appengine: hide release-branch-only builders when viewing master branch
This is a follow-up to CL 199800. That change started to consider more
builders as active to allow release-branch-only builders to run.

However, it also made those builders show up as new empty columns when
viewing builds for the master branch. There are quite a few old FreeBSD
builders that only run on release-branch.go1.12, and it's too disruptive
to have them appear everywhere. So, hide them when viewing the master
branch of Go repo in the UI.

There can be more UI improvements to be made, and this can become too
much of a whack-a-mole to address them one by one. The scope of this CL
is to fix the most disruptive high priority problem for now. Further
improvements will happen later, with merging of app/appengine and
cmd/coordinator codebases in mind.

Updates golang/go#34738
Updates golang/go#34744

Change-Id: I3df75f8b2bbd5f6fe8097c181ee8a1b1b4354dc9
Reviewed-on: https://go-review.googlesource.com/c/build/+/199878
Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
2019-10-08 18:56:58 +00:00
Dmitri Shuralyov 67e2d13fc2 app/appengine: don't exclude release-branch-only builders
The filtering of builders in commitBuilders was too strict,
causing post-submit builders that are configured to run on
release-branches only to not get included in the list of
builders.

This change makes the following builders no longer skipped:

	darwin-amd64-10_10
	freebsd-386-10_3
	freebsd-386-10_4
	freebsd-386-11_1
	freebsd-amd64-10_3
	freebsd-amd64-10_4
	freebsd-amd64-11_1
	nacl-386
	nacl-amd64p32

We may need to adjust the build.golang.org UI after to avoid
including unhelpful columns, but this is a first step to get
nacl builders to run on release branches again.

Updates golang/go#34738
Updates golang/go#34744

Change-Id: Iaf2b93aedd5f44b48b9a63b57f12549fe50b1637
Reviewed-on: https://go-review.googlesource.com/c/build/+/199800
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2019-10-08 16:37:09 +00:00
Brad Fitzpatrick 9c46470faf app/appengine: automate the hiding of old release branches
Also, because this is the first CL in this package to add tests, add a
helper to return the right template filename depending on the
environment (go test vs prod) so tests don't panic in init.

Fixes golang/go#34097
Updates golang/go#34116

Change-Id: I4b3e83c2417611cfbdc32e27941dbb90687eb509
Reviewed-on: https://go-review.googlesource.com/c/build/+/194643
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
2019-09-12 02:37:49 +00:00
Dmitri Shuralyov 096efa0abf app/appengine: set GO111MODULE=on for deploy
Deploying in GOPATH mode is not supported, so explicitly specify
GO111MODULE=on to use module mode regardless of local setup.

Fixes golang/go#34107

Change-Id: I5bc2518c4cd4c329eea65684fec96aae5b0bf808
GitHub-Last-Rev: 93f780cd58
GitHub-Pull-Request: golang/build#23
Reviewed-on: https://go-review.googlesource.com/c/build/+/193597
Reviewed-by: Andrew Bonventre <andybons@golang.org>
Reviewed-by: Alexander Rakoczy <alex@golang.org>
2019-09-05 14:53:24 +00:00
Dmitri Shuralyov 5aab5859ae app/appengine: remove Go 1.11 from the dashboard
Per release policy¹, we only support and test the two latest
major versions (currently Go 1.13 and Go 1.12).

Previously:

• CL 164218 removed Go 1.10.
• CL 133895 removed Go 1.9.
• CL 95555 removed Go 1.8.
• CL 77931 removed Go 1.7.
• CL 37466 removed Go 1.6.
• CL 31767 removed Go 1.5.
• CL 20843 removed Go 1.4.

¹ https://golang.org/doc/devel/release.html#policy

Fixes golang/go#34096

Change-Id: I8ac7fcb6527e86706bdb7f140e3f05d3262f2476
Reviewed-on: https://go-review.googlesource.com/c/build/+/193477
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2019-09-05 11:48:09 +00:00
Alexander Rakoczy c07384488c app: update App Engine runtime to go111
Starting October 1, App Engine will not allow apps using the 1.9
runtime to be deployed.

In module mode on go111 AppEngine, paths have changed to be relative to
the go.mod file.

More information can be found at
https://cloud.google.com/appengine/docs/standard/go111/go-differences

Change-Id: I3e291f20559ec8d3c5e8f51b756bd3b23b0c70bd
Reviewed-on: https://go-review.googlesource.com/c/build/+/192103
Run-TryBot: Alexander Rakoczy <alex@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Andrew Bonventre <andybons@golang.org>
2019-09-03 15:21:19 +00:00
Andrew Bonventre 119dac0a79 app/appengine: update app.yaml and README.md to account for service
This app is now running as a service called "build" instead of
on a named version in the default service. Update the app.yaml and
deployment instructions to account for this.

Change-Id: I5d68128e89bad6782982380b2012300a492ddb34
Reviewed-on: https://go-review.googlesource.com/c/build/+/191975
Reviewed-by: Alexander Rakoczy <alex@golang.org>
2019-08-28 15:38:20 +00:00
Andrew Bonventre 23c82c2d02 Revert "app: update App Engine runtime to go111"
This reverts commit CL 190902.

Reason for revert: it breaks deploys due to filesystem changes in go111

Change-Id: Ic357050da2707be1c53d79af6f0062ff4feaffbb
Reviewed-on: https://go-review.googlesource.com/c/build/+/191974
Reviewed-by: Alexander Rakoczy <alex@golang.org>
2019-08-27 21:20:29 +00:00
Andrew Bonventre 06ec23726f app: update App Engine runtime to go111
Starting October 1, App Engine will not allow apps using the 1.9
runtime to be deployed.

More information can be found at
https://cloud.google.com/appengine/docs/standard/go111/go-differences

Change-Id: I522830c1bd47a32944d7caa9a5c913996fe328c1
Reviewed-on: https://go-review.googlesource.com/c/build/+/190902
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
2019-08-20 19:11:53 +00:00
Tobias Klauser 01b32fab87 app/appengine: correctly align subheading2 in subrepo tables
Currently, the subheading2 cells in the subrepo tables are shifted by
one to the left due to the additional cell for the Go commit. There are
4 fixed <th> cells while there are 5 <td> cells (subrepo commit, Go
commit, user, time and description).

Make the first <th> have a colspan of 2 in case of the subrepo table so
the subheading2 cells align correctly.

Change-Id: I1ca7157cecf6530cff5883154f367684b0695081
Reviewed-on: https://go-review.googlesource.com/c/build/+/183217
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
2019-06-21 17:00:42 +00:00
Dmitri Shuralyov 7aef06b72c app/appengine, dashboard: add x/website subrepo
Updates golang/go#30640

Change-Id: I2926f45efa18530ce72fa4a7ecdc255839bd6f45
Reviewed-on: https://go-review.googlesource.com/c/build/+/177658
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2019-05-16 22:56:24 +00:00
Akhil Indurti db743fd60d app/appengine: make heading bars fill screen width
Make the headers fill the screen's width by making the body have
display: inline-block and min-width: 100%. Before, scrolling to
the right extended past the screen's width, which caused the
blue table headers to cut off.

Change-Id: I2f186ca044d07a4dfd3ec6cbe3f57a9feee05c99
Reviewed-on: https://go-review.googlesource.com/c/build/+/125475
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
2019-05-06 18:03:32 +00:00
Brad Fitzpatrick 3f1c27906a app/appengine: sort subrepo tables by date: master, Go 1.12, Go 1.11
It was previously master, Go 1.11, then Go 1.12, which puts Go 1.11 in
the middle of two things that came after it.

Change-Id: I5c67bff7f0ab4269f1db3d4c7e8197df36dc12cb
Reviewed-on: https://go-review.googlesource.com/c/build/+/170779
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
2019-04-05 04:55:52 +00:00
Brad Fitzpatrick d636fbf4cd app/appengine: show all builder columns, even if they don't have results
Fixes golang/go#19930

Change-Id: Ia6018a2e93bea123b684d2708d858adcca7bb4e4
Reviewed-on: https://go-review.googlesource.com/c/build/+/170443
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
2019-04-02 21:52:14 +00:00
Brad Fitzpatrick f0bdfa832f app/appengine: remove gccgo, show little dot for untested x builder cells
And misc dead code & comment cleanups.

Change-Id: I52308376df8eb1bd1bf919365bd9c7b7848741a9
Reviewed-on: https://go-review.googlesource.com/c/build/+/167198
Reviewed-by: Bryan C. Mills <bcmills@google.com>
2019-03-12 21:07:29 +00:00
Brad Fitzpatrick 4563a73db1 app/appengine: add row to disambiguate GOOS-GOARCH-ambiguous x/foo repos too
I forgot the sub-repo sub-heading in CL 160657. This adds it.

Change-Id: I5cab4fe978ae662a9150e34acc802caff61de54a
Reviewed-on: https://go-review.googlesource.com/c/164677
Reviewed-by: Andrew Bonventre <andybons@golang.org>
2019-03-01 18:34:34 +00:00
Brad Fitzpatrick d0344b2c1e app/appengine: remove Go 1.10 from the dashboard now that Go 1.12 is out
Per policy, we only support and test the past two releases
(currently Go 1.11 and Go 1.12).

Previously:

https://golang.org/cl/133895 removed Go 1.9.
https://golang.org/cl/95555 removed Go 1.8.
https://golang.org/cl/77931 removed Go 1.7.
https://golang.org/cl/37466 removed Go 1.6.
https://golang.org/cl/31767 removed Go 1.5.
https://golang.org/cl/20843 removed Go 1.4.

Change-Id: I39c6db4c4fc3e0ffcc481884a9d2aa0e8183b6f3
Reviewed-on: https://go-review.googlesource.com/c/164218
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
2019-02-27 20:22:25 +00:00
Brad Fitzpatrick cfd41133b8 app/appengine: add new row to disambiguate GOOS-GOARCH-ambiguous builders
So people can see linux-amd64-nocgo vs linux-amd64-noopt, etc.
Currently it only works on mouseover on desktop, and few people know that.
Add a new row to make it explicit.

While at it:

* remove some dead code
* make this testable locally, detecting dev_appserver mode and populating some
  fake data
* remove the s/amd64/x86/ in the subheadings. that's just confusion and we don't
  do that to other longer fields like arm64 or ppc64le, etc

Change-Id: Id3de9406f383c93202be2e298f07d5c4fef8ae85
Reviewed-on: https://go-review.googlesource.com/c/160657
Reviewed-by: Andrew Bonventre <andybons@golang.org>
2019-01-31 19:21:01 +00:00