Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undefined error due to [email protected] #89

Closed
Madhan-SWE opened this issue Jan 18, 2022 · 1 comment · Fixed by #107
Closed

Undefined error due to [email protected] #89

Madhan-SWE opened this issue Jan 18, 2022 · 1 comment · Fixed by #107

Comments

@Madhan-SWE
Copy link

Package [email protected] throws Undefined errors while verifying govet and running e2e tests.

madhankumar@MADHANKUMARs-MacBook-Pro ibm-powervs-block-csi-driver % make verify
echo "Installing golangci-lint..."
Installing golangci-lint...
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.43.0
golangci/golangci-lint info checking GitHub for tag 'v1.43.0'
golangci/golangci-lint info found version: 1.43.0 for v1.43.0/darwin/amd64
golangci/golangci-lint info installed ./bin/golangci-lint

### verify-vendor:
Repo uses 'go mod'.
+ env GO111MODULE=on go mod tidy
Go dependencies up-to-date.
echo "verifying and linting files ..."
verifying and linting files ...
./hack/verify-all
Verifying gofmt
No issue found
Verifying govet
# k8s.io/kubernetes/pkg/features
../../../../go/pkg/mod/k8s.io/[email protected]/pkg/features/kube_features.go:995:2: undefined: features.OpenAPIEnums
../../../../go/pkg/mod/k8s.io/[email protected]/pkg/features/kube_features.go:996:2: undefined: features.CustomResourceValidationExpressions
../../../../go/pkg/mod/k8s.io/[email protected]/pkg/features/kube_features.go:997:2: undefined: features.OpenAPIV3
../../../../go/pkg/mod/k8s.io/[email protected]/pkg/features/kube_features.go:998:2: undefined: features.ServerSideFieldValidation
make: *** [verify] Error 2

@Madhan-SWE
Copy link
Author

Similar error is seen while running e2e tests.

[root@madhan-multinode-kubernetes-1 ibm-powervs-block-csi-driver]# make test-e2e
TEST_PATH="./tests/e2e/..."
GINKGO_FOCUS="\[powervs-csi-e2e\]"
./hack/e2e/run.sh
###
## Installing ginkgo to /root/hack/ibm-powervs-block-csi-driver/hack/e2e/csi-test-artifacts/bin
#
###
## Testing focus \[powervs-csi-e2e\]
#
+ set +e
+ CGO_ENABLED=0
+ /root/hack/ibm-powervs-block-csi-driver/hack/e2e/csi-test-artifacts/bin/ginkgo -p -nodes=1 -v '--focus=\[powervs-csi-e2e\]' '--skip=\[Disruptive\]' ./tests/e2e/... -report-dir=/root/hack/ibm-powervs-block-csi-driver/hack/e2e/csi-test-artifacts/artifacts ''
Failed to compile e2e:

# k8s.io/kubernetes/pkg/features
/root/go/pkg/mod/k8s.io/[email protected]/pkg/features/kube_features.go:995:2: undefined: features.OpenAPIEnums
/root/go/pkg/mod/k8s.io/[email protected]/pkg/features/kube_features.go:996:2: undefined: features.CustomResourceValidationExpressions
/root/go/pkg/mod/k8s.io/[email protected]/pkg/features/kube_features.go:997:2: undefined: features.OpenAPIV3
/root/go/pkg/mod/k8s.io/[email protected]/pkg/features/kube_features.go:998:2: undefined: features.ServerSideFieldValidation

Ginkgo ran 1 suite in 7.213033468s
Test Suite Failed

Ginkgo 2.0 is coming soon!
==========================
Ginkgo 2.0 is under active development and will introduce several new features, improvements, and a small handful of breaking changes.
A release candidate for 2.0 is now available and 2.0 should GA in Fall 2021.  Please give the RC a try and send us feedback!
  - To learn more, view the migration guide at https://github.com/onsi/ginkgo/blob/ver2/docs/MIGRATING_TO_V2.md
  - For instructions on using the Release Candidate visit https://github.com/onsi/ginkgo/blob/ver2/docs/MIGRATING_TO_V2.md#using-the-beta
  - To comment, chime in at https://github.com/onsi/ginkgo/issues/711

To silence this notice, set the environment variable: ACK_GINKGO_RC=true
Alternatively you can: touch $HOME/.ack-ginkgo-rc
+ TEST_PASSED=1
+ set -e
+ set +x
###
## TEST_PASSED: 1
#
###
## One of the tests failed
#
make: *** [Makefile:84: test-e2e] Error 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant