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

Another attempt at fixing the flaky ddoc_cache test #4803

Merged
merged 1 commit into from
Oct 6, 2023

Conversation

nickva
Copy link
Contributor

@nickva nickva commented Oct 6, 2023

This test has been the most flaky one lately.

DDoc cache does quite a bit async process spawning. It's possible that entry processes never finish opening before the test already proceeds and expects all 10 entries to be removed.

Also, to increase isolation between tests switch eunit setup to foreach. This will restart the whole ddoc app and reduce possible influence of one test on another.

Fix: #4793

Copy link
Contributor

@jaydoane jaydoane left a comment

Choose a reason for hiding this comment

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

Seems like a nice fix, I hope it works!

src/ddoc_cache/test/eunit/ddoc_cache_lru_test.erl Outdated Show resolved Hide resolved
This test has been the most flaky one lately.

DDoc cache does quite a bit async process spawning. It's possible that entry
processes never finish opening before the test already proceeds and expects all
10 entries to be removed.

Also, to increase isolation between tests switch eunit `setup` to `foreach`.
This will restart the whole ddoc app and reduce possible influence of one test
on another.

Fix: #4793
@nickva nickva merged commit e083114 into main Oct 6, 2023
14 checks passed
@nickva nickva deleted the fix-ddoc-cache-flakiness branch October 6, 2023 05:45
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.

Frequent flaky failure in ddoc_cache tests
2 participants