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

Reduce flakiness in single-cluster end-to-end tests #3074

Merged
merged 3 commits into from
Nov 14, 2024

Conversation

weyfonk
Copy link
Contributor

@weyfonk weyfonk commented Nov 13, 2024

Sharding end-to-end tests exhibited flakiness, caused by the git job pod
not being present in the cluster by the time checks were run to validate
its node selector against that of the relevant shard.

To prevent this, tests on the node selector are now run first, which
incidentally also prevents Eventually from running more loops waiting
for a config map to be deployed.

This should make failures to find failing jobs easier to troubleshoot.
This adds expectations on existing pods and clearer error messages to
ease troubleshooting in case of failing of flaky tests.
Sharding end-to-end tests exhibited flakiness, caused by the git job pod
not being present in the cluster by the time checks were run to validate
its node selector against that of the relevant shard.

To prevent this, tests on the node selector are now run first, which
incidentally also prevents `Eventually` from running more times awaiting
a config map to be deployed.
@weyfonk weyfonk requested a review from a team as a code owner November 13, 2024 16:22
@weyfonk weyfonk merged commit 6f50d7d into rancher:main Nov 14, 2024
12 checks passed
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 this pull request may close these issues.

2 participants