aboutsummaryrefslogtreecommitdiff
path: root/internal/play
AgeCommit message (Collapse)Author
12 hours[DO-NOT-MERGE] internal/play: disable goroutine for watchVersionShulhan
2024-06-21cmd,internal: replace deprecated ioutil with io and osOleksandr Redko
Change-Id: I1d66a5c7b087d9329628efb6ce8849a004663b51 Reviewed-on: https://go-review.googlesource.com/c/website/+/592895 Reviewed-by: David Chase <drchase@google.com> Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
2024-01-16internal/play: fix share registration guard for golang.google.cnRobert Findley
CL 366056 added support for multiple play backends, but did not update the pattern matching for golang.google.cn accordingly. Change-Id: Ie992f86bb6879bb283db5a23870602ea1266d9ab Reviewed-on: https://go-review.googlesource.com/c/website/+/556095 TryBot-Result: Gopher Robot <gobot@golang.org> Run-TryBot: Robert Findley <rfindley@google.com> Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
2023-03-29internal/play: fix support for vet errors in playground outputRobert Findley
The compile proxy for go.dev/play was not forwarding the Request.WithVet or Response.VetErrors fields, resulting in no vet errors in the new playground. Furthermore, it looked like the styling intended for errors and system messages was not being correctly applied, due to CSS selectors changing. Fix both of these bugs, assuming that the broken styling is in fact a bug. Result at https://github.com/golang/go/issues/58560#issuecomment-1480044674 Fixes golang/go#58560 Change-Id: If7a9a4323414f4c844e90bd340d93a74e59ce462 Reviewed-on: https://go-review.googlesource.com/c/website/+/478576 TryBot-Result: Gopher Robot <gobot@golang.org> Auto-Submit: Robert Findley <rfindley@google.com> Run-TryBot: Robert Findley <rfindley@google.com> Reviewed-by: Jamal Carvalho <jamal@golang.org>
2022-03-18internal/play: add goprevplay, load versions from back endsRuss Cox
This will let us have "Go 1.17" in the dropdown on go.dev/play. And when the next release happens and goprevplay and play are updated, the versions will update automatically in the UI. Change-Id: Id76f89767c3a91a2c9e27c9fbdad5d6fd9674ab2 Reviewed-on: https://go-review.googlesource.com/c/website/+/393840 Trust: Russ Cox <rsc@golang.org> Run-TryBot: Russ Cox <rsc@golang.org> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Robert Findley <rfindley@google.com>
2022-02-25internal/play: support plain text responseJamal Carvalho
Fixes golang/go#51181 Change-Id: I82f10320e86555a161cbfb5c5b79dfc331017003 Reviewed-on: https://go-review.googlesource.com/c/website/+/388016 Run-TryBot: Jamal Carvalho <jamal@golang.org> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Trust: Jamal Carvalho <jamalcarvalho@google.com>
2022-01-05internal/play: impose time limit on compile proxyRuss Cox
Every day around 3:30pm US Eastern time the web server seems to get overloaded. It starts with a suspicious number of 500 responses from /_/compile relaying to the default back end, which start timing out after 10 seconds and then grow longer and longer. One theory is that the requests are lasting longer than that and piling up in the system, since we are using http.DefaultClient, which has no timeout. Use a client with a 20s timeout to try to clear things out a bit more promptly. Change-Id: I7e1659adfcf63d6b712ede4d0fc2b508b3e6bb45 Reviewed-on: https://go-review.googlesource.com/c/website/+/375614 Trust: Russ Cox <rsc@golang.org> Run-TryBot: Russ Cox <rsc@golang.org> Reviewed-by: Jamal Carvalho <jamalcarvalho@google.com> TryBot-Result: Gopher Robot <gobot@golang.org>
2021-12-06_content: cancel spellingRuss Cox
canceled canceling cancellation Per https://go.dev/wiki/Spelling. Change-Id: I3e719a9f07e64259e6bcf02c9d15939069176538 Reviewed-on: https://go-review.googlesource.com/c/website/+/369714 Trust: Russ Cox <rsc@golang.org> Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
2021-11-30cmd/golangorg: add support for multiple play backendsRuss Cox
This lets people choose between the release version of Go (play.golang.org) and the dev branch version (gotipplay.golang.org). After CL 365854 goes live, it will offer Go 1.17, Go 1.16, and Go dev branch. Change-Id: I7480a0cb4f1b09636f5728c41af507aac5a72026 Reviewed-on: https://go-review.googlesource.com/c/website/+/366056 Trust: Russ Cox <rsc@golang.org> Run-TryBot: Russ Cox <rsc@golang.org> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Jamal Carvalho <jamal@golang.org>