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
lakshmimsft opened this issue
Sep 4, 2024
· 4 comments
· Fixed by #7979
Assignees
Labels
bugSomething is broken or not working as expectedimportantThis item is a high priority Issue we intend to address as soon as possibletriagedThis issue has been reviewed and triaged
go get -u sigs.k8s.io/controller-runtime@latest
go get -u k8s.io/client-go@latest
ensure go.mod is updated with sigs.k8s.io/controller-runtime v0.19.0 and k8s.io/client-go v0.31.0
4. run go mod tidy
5. run make build. Update code for errors (remove field WarningHandler as indicated in build errors):
pkg/ucp/dataprovider/factory.go:67:3: unknown field WarningHandler in struct literal of type client.Options
pkg/ucp/dataprovider/factory.go:67:33: undefined: runtimeclient.WarningHandlerOptions
make build should now run fine.
run make test. this should return errors similar to for ~9 unit tests testing reconciler:
=== FAIL: pkg/controller/reconciler Test_DeploymentReconciler_ChangeEnvironmentAndApplication (0.00s)
deployment_reconciler_test.go:81:
Error Trace: ../pkg/controller/reconciler/deployment_reconciler_test.go:81
../pkg/controller/reconciler/deployment_reconciler_test.go:142
Error: Received unexpected error:
controller with name deployment already exists. Controller names must be unique to avoid multiple controllers reporting to the same metric
Test: Test_DeploymentReconciler_ChangeEnvironmentAndApplication
=== FAIL: pkg/controller/reconciler Test_DeploymentReconciler_RadiusEnabled_ThenRadiusDisabled (0.00s)
deployment_reconciler_test.go:81:
Error Trace: ../pkg/controller/reconciler/deployment_reconciler_test.go:81
../pkg/controller/reconciler/deployment_reconciler_test.go:216
Error: Received unexpected error:
controller with name deployment already exists. Controller names must be unique to avoid multiple controllers reporting to the same metric
Test: Test_DeploymentReconciler_RadiusEnabled_ThenRadiusDisabled
Observed behavior
Unit Tests for controller failing with latest version of sigs.k8s.io/controller-runtime and related dependencies
Desired behavior
Unit tests should not fail
Workaround
Currently, we have not yet updated the codebase to the latest version of sigs.k8s.io/controller-runtime and it's related dependencies.
rad Version
The latest version of the envtest tool used for unit testing in the controller-runtime project appears to be v0.17.0. We need to investigate if there is an incompatibility issue or if a code update is needed to ensure unit tests run successfully.
A project maintainer will review this report and get back to you soon. If you'd like immediate help troubleshooting, please visit our Discord server.
For more information on our triage process please visit our triage overview
lakshmimsft
changed the title
Unit Test Failure with latest version of sigs.k8s.io/controller-runtime
Test Failures with latest version of sigs.k8s.io/controller-runtime
Sep 4, 2024
👍 We've reviewed this issue and have agreed to add it to our backlog. Please subscribe to this issue for notifications, we'll provide updates when we pick it up.
We also welcome community contributions! If you would like to pick this item up sooner and submit a pull request, please visit our contribution guidelines and assign this to yourself by commenting "/assign" on this issue.
For more information on our triage process please visit our triage overview
We've prioritized work on this issue. Please subscribe to this issue for notifications, we'll provide updates as we make progress.
We also welcome community contributions! If you would like to pick this item up sooner and submit a pull request, please visit our contribution guidelines and assign this to yourself by commenting "/assign" on this issue.
For more information on our triage process please visit our triage overview
bugSomething is broken or not working as expectedimportantThis item is a high priority Issue we intend to address as soon as possibletriagedThis issue has been reviewed and triaged
Steps to reproduce
ensure go.mod is updated with sigs.k8s.io/controller-runtime v0.19.0 and k8s.io/client-go v0.31.0
4. run go mod tidy
5. run make build. Update code for errors (remove field
WarningHandler
as indicated in build errors):Observed behavior
Unit Tests for controller failing with latest version of sigs.k8s.io/controller-runtime and related dependencies
Desired behavior
Unit tests should not fail
Workaround
Currently, we have not yet updated the codebase to the latest version of sigs.k8s.io/controller-runtime and it's related dependencies.
rad Version
The latest version of the envtest tool used for unit testing in the controller-runtime project appears to be v0.17.0. We need to investigate if there is an incompatibility issue or if a code update is needed to ensure unit tests run successfully.
Operating system
No response
Additional context
No response
Would you like to support us?
AB#13145
The text was updated successfully, but these errors were encountered: