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

[2.10] Fix flaky test app-luatest/gh_6128_background_mode_test.lua (again) #8834

Conversation

ligurio
Copy link
Member

@ligurio ligurio commented Jul 3, 2023

Previous attempt to fix flakiness in commit 6a2c73f ("test: fix flakiness in gh_6128_background_mode_test") used a constant buffer size in check_err_msg function. Tarantool 2.10 has a bit bigger log before a desired message that other versions of Tarantool and it leads to a this resulted in a truncated message ("entering the even" instead of "entering the event loop"). Patch replaces check_err_msg() implementation to grep_log used in luatest, it reads the whole log.

Also patch renames check_err_msg to check_msg, because "entering the event loop" is not an error message.

Follows up #6128

NO_CHANGELOG=fix test
NO_DOC=fix test

@coveralls
Copy link

coveralls commented Jul 3, 2023

Coverage Status

coverage: 85.211%. remained the same when pulling 24694eb on ligurio:ligurio/gh-6128-fix-flaky-test-2 into 6a2c73f
on tarantool:release/2.10
.

@ligurio ligurio force-pushed the ligurio/gh-6128-fix-flaky-test-2 branch from 5525390 to 631258e Compare July 3, 2023 14:33
@igormunkin
Copy link
Collaborator

LOL, I suggest to use Mike Pall style for this: "Fix flaky test app-luatest/gh_6128_background_mode_test.lua (again)."

@ligurio ligurio force-pushed the ligurio/gh-6128-fix-flaky-test-2 branch from 631258e to 2f9ea7f Compare July 3, 2023 14:57
@ligurio ligurio changed the title Fix flaky test app-luatest/gh_6128_background_mode_test.lua [2.10] Fix flaky test app-luatest/gh_6128_background_mode_test.lua Jul 3, 2023
Previous attempt to fix flakiness in commit 6a2c73f ("test: fix
flakiness in gh_6128_background_mode_test") used a constant buffer size
in check_err_msg function. Tarantool 2.10 has a bit bigger log before a
desired message that other versions of Tarantool and it leads to a this
resulted in a truncated message ("entering the even" instead of
"entering the event loop"). Patch replaces check_err_msg()
implementation to grep_log used in luatest, it reads the whole log.

Also patch renames check_err_msg to check_msg, because "entering the
event loop" is not an error message.

Follows up tarantool#6128

NO_CHANGELOG=fix test
NO_DOC=fix test
@ligurio ligurio force-pushed the ligurio/gh-6128-fix-flaky-test-2 branch from 2f9ea7f to 24694eb Compare July 3, 2023 15:18
@ligurio ligurio changed the title [2.10] Fix flaky test app-luatest/gh_6128_background_mode_test.lua [2.10] Fix flaky test app-luatest/gh_6128_background_mode_test.lua (again) Jul 3, 2023
@ligurio ligurio added the full-ci Enables all tests for a pull request label Jul 3, 2023
@igormunkin
Copy link
Collaborator

Resolved in scope of #8836.

@igormunkin igormunkin closed this Jul 4, 2023
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

3 participants