-
Notifications
You must be signed in to change notification settings - Fork 23
Fix couple multicluster flaky tests #562
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
Conversation
MCK 1.6.0 Release NotesNew Features
Bug Fixes
|
| else: | ||
| raise e | ||
|
|
||
| run_periodically( |
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.
This is racy, because stateful set is immediately recreated by operator
| sleep 1 | ||
|
|
||
| local service_account_name="operator-tests-multi-cluster-service-account" | ||
|
|
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.
duplicated code that is already present jus below. Creating Multi Cluster configuration secret shows twice in the logs as well
| fi | ||
|
|
||
| member_cluster_token="$(kubectl --context "${member_cluster}" get secret "${secret_name}" -o jsonpath='{ .data.token}' -n "${NAMESPACE}" | base64 -d)" | ||
| # Retry up to 10 times if .data.token is not yet populated |
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.
secrets .data.token is populated asynchronously after the secret is created. We need to wait for it become available, otherwise the member_cluster_token will be empty
|
|
||
| - name: e2e_multi_cluster_validation | ||
| tags: [ "patch-run" ] | ||
| exec_timeout_secs: 1000 |
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.
this is not needed and prevents us from collecting test data
Julien-Ben
left a comment
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.
One of the greenest CI I've seen in the last days 😍
Summary
Couple small fixes that together with @lsierant we have found during recent investigation. Details are provided in the PR comments.
Proof of Work
Passing CI.
Checklist
skip-changeloglabel if not needed