Skip to content

Instantly share code, notes, and snippets.

$ make test-e2e-batch N=10
Ensuring all system namespaces are excluded from HNC...
namespace/hnc-system not labeled
namespace/kube-node-lease not labeled
namespace/kube-public not labeled
namespace/kube-system not labeled
If these tests fail due to the webhook not being ready, wait 30s and try again. Note that webhooks can take up to 30s to become ready
after HNC is first deployed in a cluster.
If tests fail due to no matches for kind "CustomResourceDefinition" in version "apiextensions.k8s.io/v1",
please remove the old kubebuilder and reinstall it - https://book.kubebuilder.io/quick-start.html#installation
go test ./api/... ./cmd/... ./internal/... -coverprofile cover.out
? sigs.k8s.io/multi-tenancy/incubator/hnc/api/v1alpha2 [no test files]
? sigs.k8s.io/multi-tenancy/incubator/hnc/cmd/kubectl [no test files]
? sigs.k8s.io/multi-tenancy/incubator/hnc/cmd/manager [no test files]
? sigs.k8s.io/multi-tenancy/incubator/hnc/internal/config [no test files]
ok sigs.k8s.io/multi-tenancy/incubator/hnc/internal/forest 0.051s coverage: 27.6% of statements
? sigs.k8s.io/multi-tenancy/incubator/hnc/internal/foresttest [no test files]
If tests fail due to no matches for kind "CustomResourceDefinition" in version "apiextensions.k8s.io/v1",
please remove the old kubebuilder and reinstall it - https://book.kubebuilder.io/quick-start.html#installation
go test ./api/... ./cmd/... ./internal/... -coverprofile cover.out
? sigs.k8s.io/multi-tenancy/incubator/hnc/api/v1alpha2 [no test files]
? sigs.k8s.io/multi-tenancy/incubator/hnc/cmd/kubectl [no test files]
? sigs.k8s.io/multi-tenancy/incubator/hnc/cmd/manager [no test files]
? sigs.k8s.io/multi-tenancy/incubator/hnc/internal/config [no test files]
ok sigs.k8s.io/multi-tenancy/incubator/hnc/internal/forest 0.084s coverage: 27.6% of statements
? sigs.k8s.io/multi-tenancy/incubator/hnc/internal/foresttest [no test files]
LINK - https://prow.k8s.io/view/gs/kubernetes-jenkins/pr-logs/pull/kubernetes-sigs_multi-tenancy/1291/pull-hnc-test/1332076538165727232
[Fail] Secret [It] should overwrite conflicting source with the top source that can propagate
/home/prow/go/src/sigs.k8s.io/multi-tenancy/incubator/hnc/internal/reconcilers/object_test.go:374
• Failure [0.062 seconds]
Secret
/home/prow/go/src/sigs.k8s.io/multi-tenancy/incubator/hnc/internal/reconcilers/object_test.go:234
should overwrite conflicting source with the top source that can propagate [It]
/home/prow/go/src/sigs.k8s.io/multi-tenancy/incubator/hnc/internal/reconcilers/object_test.go:370
Expected success, but got an error:
@yiqigao217
yiqigao217 / gist:4b00ba1108e8efe10b5fc731b738d30e
Created October 16, 2020 13:24
e2e test failures (2 tests with 1 failure and 3 failures)
------------------------------
• Failure [14.394 seconds]
Issues
/usr/local/google/home/yiqigao/go/src/sigs.k8s.io/multi-tenancy/incubator/hnc/test/e2e/issues_test.go:8
Should not delete a parent of a subnamespace if allowCascadingDeletion is not set -issue #716 [It]
/usr/local/google/home/yiqigao/go/src/sigs.k8s.io/multi-tenancy/incubator/hnc/test/e2e/issues_test.go:176
Timed out after 10.808s.
Command: [kubectl delete ns parent]
Expected failure, but got no error.
If these tests fail due to the webhook not being ready, wait 30s and try again. Note that webhooks can take up to 30s to become ready
after HNC is first deployed in a cluster.
go clean -testcache
go test -v -timeout 0 ./test/e2e/...
=== RUN TestE2e
Running Suite: HNC Suite
========================
Random Seed: 1600809909
yiqigao@yiqigao:~/go/src/sigs.k8s.io/multi-tenancy/incubator/hnc$ k get ns
NAME STATUS AGE
default Active 72d
hnc-system Active 31s
kube-node-lease Active 72d
kube-public Active 72d
kube-system Active 72d
yiqigao@yiqigao:~/go/src/sigs.k8s.io/multi-tenancy/incubator/hnc$ k get crd
NAME CREATED AT
backendconfigs.cloud.google.com 2020-05-25T13:35:11Z
• Failure [3.208 seconds]
HNCConfiguration
/home/prow/go/src/sigs.k8s.io/multi-tenancy/incubator/hnc/internal/reconcilers/hnc_config_test.go:43
should propagate objects if the mode of a type is changed from remove to propagate [It]
/home/prow/go/src/sigs.k8s.io/multi-tenancy/incubator/hnc/internal/reconcilers/hnc_config_test.go:233
Timed out after 2.015s.
Expected
<bool>: false
to be true
stacktrace: "github.com/go-logr/zapr.(*zapLogger).Error
/workspace/vendor/github.com/go-logr/zapr/zapr.go:128
sigs.k8s.io/controller-runtime/pkg/webhook/conversion.(*Webhook).ServeHTTP
/workspace/vendor/sigs.k8s.io/controller-runtime/pkg/webhook/conversion/conversion.go:76
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerInFlight.func1
/workspace/vendor/github.com/prometheus/client_golang/prometheus/promhttp/instrument_server.go:40
net/http.HandlerFunc.ServeHTTP
/usr/local/go/src/net/http/server.go:2012
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1
/workspace/vendor/github.com/prometheus/client_golang/prometheus/promhttp/instrument_server.go:100
• Failure [2.248 seconds]
HNCConfiguration
/home/prow/go/src/sigs.k8s.io/multi-tenancy/incubator/hnc/internal/reconcilers/hnc_config_test.go:43
should unset MultipleConfigurationsForOneType if extra configurations are later removed [It]
/home/prow/go/src/sigs.k8s.io/multi-tenancy/incubator/hnc/internal/reconcilers/hnc_config_test.go:135
Timed out after 2.011s.
Expected
<bool>: false
to be true