this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

doc/tutorial/kubernetes: only run as a long test

Running all tests was pretty slow, and the main culprit was this
tutorial, which took over 30s of wall time:

$ time go test -count=1 ./...
[...]
real 0m36.103s
user 2m30.345s
sys 0m11.404s

Only running it as a long test makes a huge difference,
as the vast majority of the other tests are rather quick and can be run
in parallel:

$ time go test -count=1 ./...
[...]
real 0m8.784s
user 1m32.441s
sys 0m8.207s

This particularly matters when testing changes to any of the core
packages, as then the majority of the test caches are invalidated.

Signed-off-by: Daniel Martí <mvdan@mvdan.cc>
Change-Id: I234f0ae423926524600df4cc50c709495026430e
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/543501
Unity-Result: CUEcueckoo <cueckoo@cuelang.org>
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
Reviewed-by: Paul Jolly <paul@myitcv.io>

+2 -2
+2 -2
doc/tutorial/kubernetes/tut_test.go
··· 43 43 ) 44 44 45 45 func TestTutorial(t *testing.T) { 46 - if testing.Short() { 47 - t.Skip() 46 + if !cuetest.Long { 47 + t.Skipf("the kubernetes tutorial can easily take half a minute") 48 48 } 49 49 50 50 cwd, err := os.Getwd()