Created
March 30, 2021 22:16
-
-
Save advancedwebdeveloper/c56618fbfed8f6b987a483d1e9428e79 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ make test | |
go run sigs.k8s.io/controller-tools/cmd/controller-gen object:headerFile="hack/boilerplate.go.txt" paths="./..." | |
go fmt ./... | |
go fmt ./test/e2e/ | |
go vet ./... | |
Generating the Contour CRD YAML document... | |
% Total % Received % Xferd Average Speed Time Time Time Current | |
Dload Upload Total Spent Left Speed | |
100 107k 100 107k 0 0 2058k 0 --:--:-- --:--:-- --:--:-- 2058k | |
go run sigs.k8s.io/controller-tools/cmd/controller-gen "crd:crdVersions=v1" rbac:roleName=contour-operator webhook paths="./..." output:crd:artifacts:config=config/crd/bases | |
./hack/verify-image.sh main | |
examples/operator/operator.yaml contains docker.io/projectcontour/contour-operator:main | |
config/manager/manager.yaml contains docker.io/projectcontour/contour-operator:main | |
examples/operator/operator.yaml contains imagePullPolicy: Always | |
config/manager/manager.yaml contains imagePullPolicy: Always | |
go test -mod=readonly ./... -coverprofile cover.out | |
? github.com/projectcontour/contour-operator/api/v1alpha1 [no test files] | |
? github.com/projectcontour/contour-operator/cmd [no test files] | |
ok github.com/projectcontour/contour-operator/internal/equality 0.084s coverage: 59.0% of statements | |
? github.com/projectcontour/contour-operator/internal/intstr [no test files] | |
? github.com/projectcontour/contour-operator/internal/objects [no test files] | |
ok github.com/projectcontour/contour-operator/internal/objects/clusterrole 0.090s coverage: 45.3% of statements | |
ok github.com/projectcontour/contour-operator/internal/objects/clusterrolebinding 0.056s coverage: 15.6% of statements | |
ok github.com/projectcontour/contour-operator/internal/objects/configmap 0.068s coverage: 27.4% of statements | |
? github.com/projectcontour/contour-operator/internal/objects/contour [no test files] | |
ok github.com/projectcontour/contour-operator/internal/objects/daemonset 0.071s coverage: 20.8% of statements | |
ok github.com/projectcontour/contour-operator/internal/objects/deployment 0.068s coverage: 24.5% of statements | |
? github.com/projectcontour/contour-operator/internal/objects/gateway [no test files] | |
? github.com/projectcontour/contour-operator/internal/objects/gatewayclass [no test files] | |
ok github.com/projectcontour/contour-operator/internal/objects/job 0.060s coverage: 11.5% of statements | |
ok github.com/projectcontour/contour-operator/internal/objects/namespace 0.070s coverage: 2.1% of statements | |
ok github.com/projectcontour/contour-operator/internal/objects/role 0.062s coverage: 19.4% of statements | |
ok github.com/projectcontour/contour-operator/internal/objects/rolebinding 0.076s coverage: 15.6% of statements | |
ok github.com/projectcontour/contour-operator/internal/objects/service 0.066s coverage: 35.7% of statements | |
? github.com/projectcontour/contour-operator/internal/objects/serviceaccount [no test files] | |
? github.com/projectcontour/contour-operator/internal/objects/sharedconfig [no test files] | |
Running Suite: Controller Suite | |
=============================== | |
Random Seed: 1617140341 | |
Will run 2 of 2 specs | |
STEP: Bootstrapping the test environment | |
2021-03-30T21:39:01.323Z DEBUG controller-runtime.test-env starting control plane {"api server flags": []} | |
2021-03-30T21:39:01.327Z ERROR controller-runtime.test-env unable to start the controlplane {"tries": 0, "error": "fork/exec /usr/local/kubebuilder/bin/etcd: no such file or directory"} | |
github.com/go-logr/zapr.(*zapLogger).Error | |
/home/oceanfish81/go/pkg/mod/github.com/go-logr/zapr@v0.2.0/zapr.go:132 | |
sigs.k8s.io/controller-runtime/pkg/envtest.(*Environment).startControlPlane | |
/home/oceanfish81/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.8.0/pkg/envtest/server.go:291 | |
sigs.k8s.io/controller-runtime/pkg/envtest.(*Environment).Start | |
/home/oceanfish81/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.8.0/pkg/envtest/server.go:253 | |
github.com/projectcontour/contour-operator/internal/operator.glob..func1 | |
/home/oceanfish81/contour-operator/internal/operator/suite_test.go:111 | |
reflect.Value.call | |
/usr/local/go/src/reflect/value.go:476 | |
reflect.Value.Call | |
/usr/local/go/src/reflect/value.go:337 | |
github.com/onsi/ginkgo/internal/leafnodes.newRunner.func1 | |
/home/oceanfish81/go/pkg/mod/github.com/onsi/ginkgo@v1.14.1/internal/leafnodes/runner.go:49 | |
github.com/onsi/ginkgo/internal/leafnodes.(*runner).runAsync.func1 | |
/home/oceanfish81/go/pkg/mod/github.com/onsi/ginkgo@v1.14.1/internal/leafnodes/runner.go:86 | |
2021-03-30T21:39:01.328Z ERROR controller-runtime.test-env unable to start the controlplane {"tries": 1, "error": "fork/exec /usr/local/kubebuilder/bin/etcd: no such file or directory"} | |
github.com/go-logr/zapr.(*zapLogger).Error | |
/home/oceanfish81/go/pkg/mod/github.com/go-logr/zapr@v0.2.0/zapr.go:132 | |
sigs.k8s.io/controller-runtime/pkg/envtest.(*Environment).startControlPlane | |
/home/oceanfish81/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.8.0/pkg/envtest/server.go:291 | |
sigs.k8s.io/controller-runtime/pkg/envtest.(*Environment).Start | |
/home/oceanfish81/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.8.0/pkg/envtest/server.go:253 | |
github.com/projectcontour/contour-operator/internal/operator.glob..func1 | |
/home/oceanfish81/contour-operator/internal/operator/suite_test.go:111 | |
reflect.Value.call | |
/usr/local/go/src/reflect/value.go:476 | |
reflect.Value.Call | |
/usr/local/go/src/reflect/value.go:337 | |
github.com/onsi/ginkgo/internal/leafnodes.newRunner.func1 | |
/home/oceanfish81/go/pkg/mod/github.com/onsi/ginkgo@v1.14.1/internal/leafnodes/runner.go:49 | |
github.com/onsi/ginkgo/internal/leafnodes.(*runner).runAsync.func1 | |
/home/oceanfish81/go/pkg/mod/github.com/onsi/ginkgo@v1.14.1/internal/leafnodes/runner.go:86 | |
2021-03-30T21:39:01.328Z ERROR controller-runtime.test-env unable to start the controlplane {"tries": 2, "error": "fork/exec /usr/local/kubebuilder/bin/etcd: no such file or directory"} | |
github.com/go-logr/zapr.(*zapLogger).Error | |
/home/oceanfish81/go/pkg/mod/github.com/go-logr/zapr@v0.2.0/zapr.go:132 | |
sigs.k8s.io/controller-runtime/pkg/envtest.(*Environment).startControlPlane | |
/home/oceanfish81/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.8.0/pkg/envtest/server.go:291 | |
sigs.k8s.io/controller-runtime/pkg/envtest.(*Environment).Start | |
/home/oceanfish81/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.8.0/pkg/envtest/server.go:253 | |
github.com/projectcontour/contour-operator/internal/operator.glob..func1 | |
/home/oceanfish81/contour-operator/internal/operator/suite_test.go:111 | |
reflect.Value.call | |
/usr/local/go/src/reflect/value.go:476 | |
reflect.Value.Call | |
/usr/local/go/src/reflect/value.go:337 | |
github.com/onsi/ginkgo/internal/leafnodes.newRunner.func1 | |
/home/oceanfish81/go/pkg/mod/github.com/onsi/ginkgo@v1.14.1/internal/leafnodes/runner.go:49 | |
github.com/onsi/ginkgo/internal/leafnodes.(*runner).runAsync.func1 | |
/home/oceanfish81/go/pkg/mod/github.com/onsi/ginkgo@v1.14.1/internal/leafnodes/runner.go:86 | |
2021-03-30T21:39:01.329Z ERROR controller-runtime.test-env unable to start the controlplane {"tries": 3, "error": "fork/exec /usr/local/kubebuilder/bin/etcd: no such file or directory"} | |
github.com/go-logr/zapr.(*zapLogger).Error | |
/home/oceanfish81/go/pkg/mod/github.com/go-logr/zapr@v0.2.0/zapr.go:132 | |
sigs.k8s.io/controller-runtime/pkg/envtest.(*Environment).startControlPlane | |
/home/oceanfish81/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.8.0/pkg/envtest/server.go:291 | |
sigs.k8s.io/controller-runtime/pkg/envtest.(*Environment).Start | |
/home/oceanfish81/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.8.0/pkg/envtest/server.go:253 | |
github.com/projectcontour/contour-operator/internal/operator.glob..func1 | |
/home/oceanfish81/contour-operator/internal/operator/suite_test.go:111 | |
reflect.Value.call | |
/usr/local/go/src/reflect/value.go:476 | |
reflect.Value.Call | |
/usr/local/go/src/reflect/value.go:337 | |
github.com/onsi/ginkgo/internal/leafnodes.newRunner.func1 | |
/home/oceanfish81/go/pkg/mod/github.com/onsi/ginkgo@v1.14.1/internal/leafnodes/runner.go:49 | |
github.com/onsi/ginkgo/internal/leafnodes.(*runner).runAsync.func1 | |
/home/oceanfish81/go/pkg/mod/github.com/onsi/ginkgo@v1.14.1/internal/leafnodes/runner.go:86 | |
2021-03-30T21:39:01.330Z ERROR controller-runtime.test-env unable to start the controlplane {"tries": 4, "error": "fork/exec /usr/local/kubebuilder/bin/etcd: no such file or directory"} | |
github.com/go-logr/zapr.(*zapLogger).Error | |
/home/oceanfish81/go/pkg/mod/github.com/go-logr/zapr@v0.2.0/zapr.go:132 | |
sigs.k8s.io/controller-runtime/pkg/envtest.(*Environment).startControlPlane | |
/home/oceanfish81/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.8.0/pkg/envtest/server.go:291 | |
sigs.k8s.io/controller-runtime/pkg/envtest.(*Environment).Start | |
/home/oceanfish81/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.8.0/pkg/envtest/server.go:253 | |
github.com/projectcontour/contour-operator/internal/operator.glob..func1 | |
/home/oceanfish81/contour-operator/internal/operator/suite_test.go:111 | |
reflect.Value.call | |
/usr/local/go/src/reflect/value.go:476 | |
reflect.Value.Call | |
/usr/local/go/src/reflect/value.go:337 | |
github.com/onsi/ginkgo/internal/leafnodes.newRunner.func1 | |
/home/oceanfish81/go/pkg/mod/github.com/onsi/ginkgo@v1.14.1/internal/leafnodes/runner.go:49 | |
github.com/onsi/ginkgo/internal/leafnodes.(*runner).runAsync.func1 | |
/home/oceanfish81/go/pkg/mod/github.com/onsi/ginkgo@v1.14.1/internal/leafnodes/runner.go:86 | |
Failure [0.009 seconds] | |
[BeforeSuite] BeforeSuite | |
/home/oceanfish81/contour-operator/internal/operator/suite_test.go:100 | |
Unexpected error: | |
<*fmt.wrapError | 0x400052c800>: { | |
msg: "failed to start the controlplane. retried 5 times: fork/exec /usr/local/kubebuilder/bin/etcd: no such file or directory", | |
err: { | |
Op: "fork/exec", | |
Path: "/usr/local/kubebuilder/bin/etcd", | |
Err: 0x2, | |
}, | |
} | |
failed to start the controlplane. retried 5 times: fork/exec /usr/local/kubebuilder/bin/etcd: no such file or directory | |
occurred | |
/home/oceanfish81/contour-operator/internal/operator/suite_test.go:112 | |
------------------------------ | |
STEP: Tearing down the test environment | |
Panic [0.001 seconds] | |
[AfterSuite] AfterSuite | |
/home/oceanfish81/contour-operator/internal/operator/suite_test.go:315 | |
Test Panicked | |
runtime error: invalid memory address or nil pointer dereference | |
/usr/local/go/src/runtime/panic.go:212 | |
Full Stack Trace | |
github.com/projectcontour/contour-operator/internal/operator.glob..func3() | |
/home/oceanfish81/contour-operator/internal/operator/suite_test.go:318 +0x70 | |
github.com/onsi/ginkgo/internal/leafnodes.(*runner).runSync(0x4000176ae0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...) | |
/home/oceanfish81/go/pkg/mod/github.com/onsi/ginkgo@v1.14.1/internal/leafnodes/runner.go:113 +0xa0 | |
github.com/onsi/ginkgo/internal/leafnodes.(*runner).run(0x4000176ae0, 0x52cd3e2, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...) | |
/home/oceanfish81/go/pkg/mod/github.com/onsi/ginkgo@v1.14.1/internal/leafnodes/runner.go:64 +0xf4 | |
github.com/onsi/ginkgo/internal/leafnodes.(*simpleSuiteNode).Run(0x4000653220, 0x1, 0x1, 0x0, 0x0, 0xffff89ec1500) | |
/home/oceanfish81/go/pkg/mod/github.com/onsi/ginkgo@v1.14.1/internal/leafnodes/suite_nodes.go:25 +0x68 | |
github.com/onsi/ginkgo/internal/specrunner.(*SpecRunner).runAfterSuite(0x400047fe00, 0x0) | |
/home/oceanfish81/go/pkg/mod/github.com/onsi/ginkgo@v1.14.1/internal/specrunner/spec_runner.go:138 +0x98 | |
github.com/onsi/ginkgo/internal/specrunner.(*SpecRunner).Run(0x400047fe00, 0x40006446e0) | |
/home/oceanfish81/go/pkg/mod/github.com/onsi/ginkgo@v1.14.1/internal/specrunner/spec_runner.go:71 +0xb4 | |
github.com/onsi/ginkgo/internal/suite.(*Suite).Run(0x40006460e0, 0xffff608b7a28, 0x4000682480, 0x1205ab9, 0x10, 0x4000452100, 0x2, 0x2, 0x1419478, 0x4000426700, ...) | |
/home/oceanfish81/go/pkg/mod/github.com/onsi/ginkgo@v1.14.1/internal/suite/suite.go:79 +0x3d4 | |
github.com/onsi/ginkgo.RunSpecsWithCustomReporters(0x13e0f58, 0x4000682480, 0x1205ab9, 0x10, 0x40004520c0, 0x2, 0x2, 0x2) | |
/home/oceanfish81/go/pkg/mod/github.com/onsi/ginkgo@v1.14.1/ginkgo_dsl.go:219 +0x1c4 | |
github.com/onsi/ginkgo.RunSpecsWithDefaultAndCustomReporters(0x13e0f58, 0x4000682480, 0x1205ab9, 0x10, 0x400058f758, 0x1, 0x1, 0x13275786) | |
/home/oceanfish81/go/pkg/mod/github.com/onsi/ginkgo@v1.14.1/ginkgo_dsl.go:207 +0x90 | |
github.com/projectcontour/contour-operator/internal/operator.TestAPIs(0x4000682480) | |
/home/oceanfish81/contour-operator/internal/operator/suite_test.go:95 +0xc8 | |
testing.tRunner(0x4000682480, 0x12b5570) | |
/usr/local/go/src/testing/testing.go:1194 +0xdc | |
created by testing.(*T).Run | |
/usr/local/go/src/testing/testing.go:1239 +0x244 | |
------------------------------ | |
Ran 2 of 0 Specs in 0.010 seconds | |
FAIL! -- 0 Passed | 2 Failed | 0 Pending | 0 Skipped | |
--- FAIL: TestAPIs (0.01s) | |
FAIL | |
coverage: 9.1% of statements | |
FAIL github.com/projectcontour/contour-operator/internal/operator 0.106s | |
? github.com/projectcontour/contour-operator/internal/operator/config [no test files] | |
? github.com/projectcontour/contour-operator/internal/operator/controller/contour [no test files] | |
? github.com/projectcontour/contour-operator/internal/operator/controller/gateway [no test files] | |
? github.com/projectcontour/contour-operator/internal/operator/controller/gatewayclass [no test files] | |
ok github.com/projectcontour/contour-operator/internal/operator/status 0.067s coverage: 23.1% of statements | |
ok github.com/projectcontour/contour-operator/internal/parse 0.035s coverage: 10.5% of statements | |
ok github.com/projectcontour/contour-operator/internal/retryableerror 0.014s coverage: 100.0% of statements | |
ok github.com/projectcontour/contour-operator/pkg/labels 0.071s coverage: 85.7% of statements | |
? github.com/projectcontour/contour-operator/pkg/slice [no test files] | |
ok github.com/projectcontour/contour-operator/pkg/validation 0.072s coverage: 24.3% of statements | |
FAIL | |
make: *** [Makefile:79: test] Error 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment