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

test: fix for gh_6128 test to avoid flakiness #8823

Merged
merged 1 commit into from Jun 30, 2023

Conversation

Lord-KA
Copy link
Contributor

@Lord-KA Lord-KA commented Jun 29, 2023

Followup to #6128

NO_DOC=test fix
NO_CHANGELOG=test fix

@Lord-KA Lord-KA requested a review from ligurio June 29, 2023 09:56
@coveralls
Copy link

coveralls commented Jun 29, 2023

Coverage Status

coverage: 85.968% (-0.001%) from 85.969% when pulling 9ea1243 on Lord-KA:Lord-KA/gh-6128-fix-flaky-test into 3e1c277
on tarantool:master
.

Copy link
Member

@ligurio ligurio left a comment

Choose a reason for hiding this comment

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

Gleb, thanks for fixing flakiness! I have no objections, so LGTM.
However, I've added a minor comment, see inline.

test/app-luatest/gh_6128_background_mode_test.lua Outdated Show resolved Hide resolved
@ligurio ligurio force-pushed the Lord-KA/gh-6128-fix-flaky-test branch 4 times, most recently from 349cc45 to 4fd95ea Compare June 29, 2023 13:25
Test runs an external process with tarantool that writes to a log file.
Then test reads that log file and searches a string with required
message in it (see function check_err_msg). Test was flaky on macOS and
I suspect it was happening due to a high log level - timeout was not
enough to wait message in the log file.

Patch decreases a log level to a default value and replaces io
functions with the similar alternatives in a fio module. Using
fio functions allows to not block fibers.

NO_CHANGELOG=test fix
NO_DOC=test fix
@Lord-KA Lord-KA force-pushed the Lord-KA/gh-6128-fix-flaky-test branch from 4fd95ea to 9ea1243 Compare June 29, 2023 20:02
@Lord-KA
Copy link
Contributor Author

Lord-KA commented Jun 29, 2023

@ligurio, thanks for the alternative fix! Your solution solves the underneath problem, so lets stick with it. I can't set a gh approve because this is my PR, but anyway LGTM.

@Lord-KA Lord-KA added the full-ci Enables all tests for a pull request label Jun 29, 2023
@igormunkin igormunkin merged commit 47380bb into tarantool:master Jun 30, 2023
141 checks passed
@igormunkin
Copy link
Collaborator

Also backported to 2.11 and 2.10 in scope of 6381fc2 and 6a2c73f respectively.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
full-ci Enables all tests for a pull request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants