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

Fixes for test flakes #12775

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
Open

Fixes for test flakes #12775

wants to merge 13 commits into from

Conversation

dcorbacho
Copy link
Contributor

Just another batch of fixes for test flakes

Parallel/sharding groups often fail to create certificates in CI.
Most likely it is related to the fact they use the same directory
for certificates. This commit uses a different directory per group
@@ -281,11 +285,8 @@ init_per_testcase(TestCase, Config0) ->

case ?config(group, Config) of
https ->
start_https_oauth_server(?AUTH_PORT, ?config(rmq_certsdir, Config),
start_https_oauth_server(?AUTH_PORT, ?config(certsdir, Config),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don’t understand what is the initial problem here. Now groups copy rmq_certsdir to certsdir: why didn’t it work with rmq_certsdir in the first place?

Comment on lines +600 to +601
Group = proplists:get_value(name,
?config(tc_group_properties, Config)),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This function is often called from init_per_suite/1 where the group is not set. proplists:get_value/2 will return undefined, so this really won’t solve the problem. What about using the VM PID perhaps? Assuming the sharding is based on running multiple VMs, but I don’t know how it works :-)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch. The most common flake has groups so I hadn't realised. I'll look into it

@the-mikedavis
Copy link
Member

I cherry-picked 7e1cb05 to main since it seems to reliably fix the "Authentication/Authorization backends via mutiple messaging protocols / selenium" job.

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

Successfully merging this pull request may close these issues.

5 participants