You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
all: fix build timeouts for std dependent snippets
This change addresses two issues that were causing the first build of a
snippet to be unusually slow.
One is to build the standard library with faketime, and CGO_ENABLED=0 in
our final container, which is more similar to our actual build
environment. This fixes staleness issues from std.
Another is to pre-vet std with --tags=faketime. The first vet of a
snippet that contained a significant std package such as net/http would
take 5-6 seconds, and frequently longer than our maxBuildTime of 10s.
Finally, execute vet with the correct tags when a user is vetting their
snippet.
Fixesgolang/go#44822
Change-Id: Ie5674bb6aa5f79694bffc6902c46297ac553419a
Reviewed-on: https://go-review.googlesource.com/c/playground/+/337010
Trust: Alexander Rakoczy <alex@golang.org>
Run-TryBot: Alexander Rakoczy <alex@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Heschi Kreinick <heschi@google.com>
0 commit comments