-
Notifications
You must be signed in to change notification settings - Fork 38.7k
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
Fix influxdb e2e test failure. #55412
Conversation
d8b1517
to
bbf9bb7
Compare
ef9bf7c
to
acc086b
Compare
/assign @shyamjvs |
hack/ginkgo-e2e.sh
Outdated
@@ -148,6 +148,7 @@ export PATH=$(dirname "${e2e_test}"):"${PATH}" | |||
--network="${KUBE_GCE_NETWORK:-${KUBE_GKE_NETWORK:-e2e}}" \ | |||
--node-tag="${NODE_TAG:-}" \ | |||
--master-tag="${MASTER_TAG:-}" \ | |||
--cluster-monitoring="${KUBE_ENABLE_CLUSTER_MONITORING:-influxdb}" \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wouldn't push on it - but cluster-monitoring-mode
might be a better name for what the flag is doing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
test/e2e/framework/test_context.go
Outdated
@@ -103,6 +103,8 @@ type TestContextType struct { | |||
// Node e2e specific test context | |||
NodeTestContextType | |||
|
|||
// Monitoring solution that is used in current cluster. Values are coming from ENABLE_CLUSTER_MONITORING flag. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You mean 'KUBE_ENABLE_CLUSTER_MONITORING env var'?
I would skip mentioning that, as it's not necessary that the value has to come from there - someone can also just set the flag.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
test/e2e/framework/test_context.go
Outdated
@@ -103,6 +103,8 @@ type TestContextType struct { | |||
// Node e2e specific test context | |||
NodeTestContextType | |||
|
|||
// Monitoring solution that is used in current cluster. Values are coming from ENABLE_CLUSTER_MONITORING flag. | |||
ClusterMonitoring string |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a newline before the next line (like it was before). And remove the one above - it's not needed imo.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
test/e2e/framework/util.go
Outdated
@@ -331,6 +331,12 @@ func SkipUnlessProviderIs(supportedProviders ...string) { | |||
} | |||
} | |||
|
|||
func SkipUnlessClusterMonitoringIs(supportedMonitoring ...string) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here also I'd name it sth like SkipUnlessClusterMonitoringModeIs
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
In scalability testing influxdb was recently disabled, but we still trying to execute corresponidng test, as a result it fails all the time. Skip test if influxdb is disabled.
Thanks for the review. I have resolved all your comments, PTAL. |
acc086b
to
ba31379
Compare
/test pull-kubernetes-bazel-build |
/lgtm Thanks a lot for fixing! |
@gmarek Could you approve for the |
/approve no-issue |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: gmarek, loburm, shyamjvs Associated issue: 54636 The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these OWNERS Files:
You can indicate your approval by writing |
Automatic merge from submit-queue (batch tested with PRs 55394, 55412). If you want to cherry-pick this change to another branch, please follow the instructions here. |
In scalability testing influxdb was recently disabled, but we still
trying to execute corresponidng test, as a result it fails all the time.
Skip test if influxdb is disabled.
Fixes #54636