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

25 Коммитов

Автор SHA1 Сообщение Дата
Ian Lance Taylor aaee5e5179 README: mention the git repo
Change-Id: I6838338ebb8d2130f1442fc844ac787eeb9c8c1f
Reviewed-on: https://go-review.googlesource.com/c/playground/+/625755
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Commit-Queue: Ian Lance Taylor <iant@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
2024-11-05 20:33:54 +00:00
Robert Findley f9826ed7a2 all: update golang.org/x/ dependencies
The playground's dependencies were quite stale, causing trybot failures
due to an old version of x/sys.

Update them.

Also fix a stale link to play.golang.org in the README.

Fixes golang/go#59218

Change-Id: I8b672883681c25f03375e9abaee189ca2b7c334b
Reviewed-on: https://go-review.googlesource.com/c/playground/+/478959
Reviewed-by: Heschi Kreinick <heschi@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Robert Findley <rfindley@google.com>
Auto-Submit: Robert Findley <rfindley@google.com>
2023-03-24 15:17:16 +00:00
Robert Findley 60559de821 deploy: add triggers for the goprev playground
Change-Id: Icf535d55b2ab042e4badf8b41042c1e3a1480906
Reviewed-on: https://go-review.googlesource.com/c/playground/+/395034
Trust: Robert Findley <rfindley@google.com>
Run-TryBot: Robert Findley <rfindley@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
2022-03-25 21:10:57 +00:00
Robert Findley 6987932bb9 gotipplay: identify the gotip playground build in the UI
Attempt to clearly label the Go tip playground as a development build,
and surface the version string.

For some reason I had to install git in the build-playground phase of
the Docker build, to avoid errors from the Go command. I'm not sure why
this is, but it seems harmless.

For golang/go#48517

Change-Id: I35b150686c9f177d76024cc38ff62cb8785525e0
Reviewed-on: https://go-review.googlesource.com/c/playground/+/363980
Trust: Robert Findley <rfindley@google.com>
Run-TryBot: Robert Findley <rfindley@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Alexander Rakoczy <alex@golang.org>
2021-11-17 18:47:35 +00:00
Heschi Kreinick 541c3c365c deploy: use gcloud to manage triggers, trigger from GCR
The GCP UI is nicer for editing triggers, and the gcloud command now has
beta support for import/export. It wants YAML format, though. Delete the
json versions and replace them with freshly pulled versions, including
the change to trigger from GCR.

Change-Id: I3a20951d94b9a9522f28b07cc772d097679fb5a2
Reviewed-on: https://go-review.googlesource.com/c/playground/+/327349
Trust: Heschi Kreinick <heschi@google.com>
Trust: Alexander Rakoczy <alex@golang.org>
Run-TryBot: Heschi Kreinick <heschi@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Alexander Rakoczy <alex@golang.org>
2021-06-11 20:53:51 +00:00
Julie Qiu 48a1655aa6 README.md: add badge to pkg.go.dev
Change-Id: I6155f92cf256296f3753d1068cd96c753d3f3d9b
Reviewed-on: https://go-review.googlesource.com/c/playground/+/275197
Run-TryBot: Julie Qiu <julie@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Trust: Julie Qiu <julie@golang.org>
2020-12-07 21:45:18 +00:00
John McCabe 352556d2ee playground: fix image tag in README
Fixes the image tag in the initial docker build command in the README.

Change-Id: Ibaef237f488ecdd82d530c433b02daf06a374596
GitHub-Last-Rev: c47713bf84
GitHub-Pull-Request: golang/playground#8
Reviewed-on: https://go-review.googlesource.com/c/playground/+/243917
Reviewed-by: Andrew Bonventre <andybons@golang.org>
2020-07-21 16:27:53 +00:00
Brad Fitzpatrick bd57f61ee0 playground: bound compilation time too
We already limited execution time.

Change-Id: I4cdf0178e08632ad25e4a7c5d6d63a9a00131e31
Reviewed-on: https://go-review.googlesource.com/c/playground/+/194601
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Filippo Valsorda <filippo@golang.org>
2019-09-13 15:21:42 +00:00
Brad Fitzpatrick 394f19fbd8 playground: differentiate cache key based on client JS version
Don't share a cache namespace between clients wanting vet (new) and
not wanting vet (old).

This was causing issues like:

   https://github.com/golang/go/issues/31944#issuecomment-493094932

And unrelated: a README deploy fix, broken from my earlier Makefile
cleanup.

Change-Id: Ibed7f91c739ac65e33ee8d73eed066a7a81f938c
Reviewed-on: https://go-review.googlesource.com/c/playground/+/177617
Reviewed-by: Emmanuel Odeke <emm.odeke@gmail.com>
Reviewed-by: Andrew Bonventre <andybons@golang.org>
2019-09-10 16:10:31 +00:00
Alexander Rakoczy 01ce4a0aa7 playground: trigger playground deploys from master
This change adds configuration to trigger a playground deploy when
master is updated. Configuration for deploying a build with the latest
release of go is shared in deploy/deploy.json. Cloud Build
configurations have been moved to the deploy directory.

In order to help share configurations, the build triggers will create a
separate deployment build asynchronously.

The README is updated to help describe common deployment scenarios.

Tested deploy steps with README instructions.

Updates golang/go#32606

Change-Id: I6eced05d3aa2904135e95e8b40e5a30a5b0b0488
Reviewed-on: https://go-review.googlesource.com/c/playground/+/185341
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
2019-07-09 22:28:44 +00:00
Alexander Rakoczy 78fe024432 playground: trigger playground releases from Go releases
This change includes configuration to build and deploy new releases of
the Go playground when a new tag of Go is released to Github. The
trigger is configured to filter tags to new, non-rc, non-beta releases
of Go.

This first commit simply implements releasing the current version of Go
configured for the playground. Changes to the build process to ensure
we're releasing the latest version of Go will be in a follow-up commit.

Updates golang/go#32606

Change-Id: I3b518fd3f02efcd8f510fd865f3370bea19f0e9b
Reviewed-on: https://go-review.googlesource.com/c/playground/+/183037
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
2019-07-03 20:27:19 +00:00
Brad Fitzpatrick 1cc919a729 playground: let clients request vet check in same HTTP request as compile+run
Also, move the tests to their own file and extend them a bit, give
them names, and make the test step more verbose (only visible in
docker build anyway). They were hogging up the sandbox file.

Updates golang/go#31970

Change-Id: Id710ea613c77a5b16cc5e79545c0812d0f4650e3
Reviewed-on: https://go-review.googlesource.com/c/playground/+/176598
Reviewed-by: Andrew Bonventre <andybons@golang.org>
Reviewed-by: Yury Smolsky <yury@smolsky.by>
2019-05-13 22:34:34 +00:00
Dmitri Shuralyov b884d8570d README: document the need to increase cloud build timeout
It's unfortunate to introduce an extra step of setting a global
configuration value to the deploy process. It would be better if
this could be an application-scoped setting specified in the app.yaml
configuration. However, that doesn't seem to be possible, and after
reading through documentation and waiting to hear any suggestions at
golang/go#28046, I have not become aware of a better solution.

Document this approach for now, and if we learn of a better solution
in the future, this can be improved then.

Fixes golang/go#28046

Change-Id: I2e9b7bbd38aa8313ff6eab0bf99dd2fe48f57544
Reviewed-on: https://go-review.googlesource.com/c/playground/+/164577
Reviewed-by: Andrew Bonventre <andybons@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2019-03-04 18:09:06 +00:00
Bryan C. Mills 66c23b73d8 README.md: update example commands and remove redundant text
1. Pass the payload to `/compile` using `curl --upload` instead of
`curl --data`.

With the `--data` flag, curl encodes the data in a way that triggers
the call to `(*http.Request).FormValue` (sandbox.go:56) to consume the
request body. When we then attempt to decode the body as JSON
(sandbox.go:58), we then fail the request with `io.EOF`.

If we use the `--upload` flag instead, curl does not set the content
type to the problematic `application/x-www-form-urlencoded` value, and
the call to `FormValue` does not consume the body.

2. Add a name to the `docker run` command line.

(That makes it easier to kill the container when we're done with it.)

3. Remove a redundant copy of the “To submit changes…” sentence.

Change-Id: I314d904f626029306fecbfd25b166927dfa01029
Reviewed-on: https://go-review.googlesource.com/106215
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-04-12 18:50:14 +00:00
Andrew Bonventre fa48acca51 Merge sandbox and frontend into one service
Since frontend was moved to the flex runtime, there is no longer
a reason to keep the two separate. Consolidate the two into one
service to reduce deployment complexity.

Change-Id: Ie64c17e1833ed94ac8bff7381963f683d824ca5d
Reviewed-on: https://go-review.googlesource.com/85456
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-12-24 19:12:25 +00:00
Andrew Bonventre e23805f5a8 frontend: update README.md with new deployment instructions
Change-Id: I01fc0052da2d8fd245d74209d10f9323d1f5a82f
Reviewed-on: https://go-review.googlesource.com/85037
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-12-20 23:23:58 +00:00
Andrew Bonventre d921cbbe07 Refactor frontend as prep for merging sandbox and frontend
Change-Id: I2c7f5c6f11134aec1fafa5d3963adfbcbc883690
Reviewed-on: https://go-review.googlesource.com/84915
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-12-20 18:36:27 +00:00
Andrew Bonventre 2a703f0376 Small follow-up changes to 84815
Change-Id: I290e7a18a4be675a764b4b385814b02c4dfd35bc
Reviewed-on: https://go-review.googlesource.com/84875
Reviewed-by: Andrew Bonventre <andybons@golang.org>
2017-12-19 22:05:53 +00:00
Andrew Bonventre d6c2fb38ac Complete migration to GAE flex environment
+ Remove reliance on GAE-specific API calls
+ Adds instructions to do local dev using the datastore emulator
+ Small golint fixes

Update golang/go#21645

Change-Id: Icc7679fab4c166a3d8fef3043414d6069865661d
Reviewed-on: https://go-review.googlesource.com/84815
Reviewed-by: Chris Broadfoot <cbro@golang.org>
2017-12-19 21:57:53 +00:00
Andrew Bonventre fde5780678 Add custom flex runtime that uses Go 1.9.2
Update golang/go#21645

Change-Id: I08a868ba3bc946bcd9dbd945806868e2613baf67
Reviewed-on: https://go-review.googlesource.com/84756
Reviewed-by: Chris Broadfoot <cbro@golang.org>
2017-12-19 21:34:11 +00:00
Chris Broadfoot d4b1da69e1 playground: update deployment instructions
Change-Id: I5a43957ee86c7a068440f8d9e45c247b5ef660d1
Reviewed-on: https://go-review.googlesource.com/27080
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2016-08-15 22:54:46 +00:00
Chris Broadfoot e926f09cc1 playground: update deployment instructions, move sandbox under "sandbox"
module.

Change-Id: I6a5ff2b6fbc50c968e383df75239045ba2710c87
Reviewed-on: https://go-review.googlesource.com/13811
Reviewed-by: Andrew Gerrand <adg@golang.org>
2015-08-21 16:45:30 +00:00
Johan Euphrosine 235edee5d4 sandbox: add kubernetes and container-vm config
Change-Id: I41e9adc4e35db6714aef77ddb6605f2526eecd52
Reviewed-on: https://go-review.googlesource.com/2752
Reviewed-by: Andrew Gerrand <adg@golang.org>
2015-01-19 06:17:07 +00:00
Johan Euphrosine d81d17d3c5 playground: remove ref to nacl image in README
Change-Id: If35f492f6b65e16ffdd5284b7bd53ec2a033a2bd
2014-12-23 00:17:26 -08:00
Johan Euphrosine b0bb4c447c playground: add sandbox and nacl base image
Change-Id: If6c2893ef8df63a3005ec85075db2e9df0cbf993
2014-12-22 22:16:11 -08:00