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

Fix many flaky tests on macOs #281

Closed
wants to merge 10 commits into from
Closed

Conversation

better0fdead
Copy link

@better0fdead better0fdead commented Apr 4, 2023

Fixed many flaky tests for macOs. Unfortunately, I was unable to reproduce part 1 of #291. But this does not look critical and rarely occurs, let's wait repeating the problem for now.

I didn't forget about (remove if it is not applicable):

Related issues:

Closes #277
Closes #278
Closes #282
Closes #288
Part of #291

@better0fdead better0fdead changed the title queue: increase timeout for Example_simpleQueueCustomMsgPack test Fix many flaky tests on macOs Apr 18, 2023
@better0fdead better0fdead marked this pull request as ready for review April 18, 2023 18:02
@oleg-jukovec
Copy link
Collaborator

2023-04-19T20:37:14.0323250Z === RUN   Example_simpleQueueCustomMsgPack
2023-04-19T20:37:19.9657410Z 2023/04/19 20:37:19 Take with timeout failed: client timeout for request 22 (0x4003)
2023-04-19T20:37:19.9662880Z FAIL	github.com/tarantool/go-tarantool/queue	42.928s
2023-04-19T20:37:22.0346030Z 2023/04/19 20:37:22 Skipping session settings tests...

=(

@oleg-jukovec oleg-jukovec force-pushed the better0fdead/flaky-macOS branch 3 times, most recently from f3cdd6e to b542dd6 Compare May 11, 2023 10:07
oleg-jukovec added a commit that referenced this pull request May 11, 2023
We should release the lock even if connect fails.

Part of #281
oleg-jukovec added a commit that referenced this pull request May 11, 2023
oleg-jukovec added a commit that referenced this pull request May 11, 2023
oleg-jukovec added a commit that referenced this pull request May 11, 2023
@oleg-jukovec oleg-jukovec marked this pull request as draft May 12, 2023 05:33
@oleg-jukovec oleg-jukovec force-pushed the better0fdead/flaky-macOS branch 10 times, most recently from 0c0151f to 45a88ec Compare May 12, 2023 14:34
Ttr should be in seconds.

Part of #278
We don't have stable results if queue.cfg({in_replicaset = true})
is called after box.cfg(). Probably it is expected [1].

1. tarantool/queue#206

Part of #278
We need to wait for an additional events to make the test stable:

1. A ready state for a queue.
2. A success queue configuration on all instances.
3. An available RW instance.
4. A success role switch.

Closes #278
An instance was listening on a testing port until the configuration
was complete. At the end of the configuration, the port was
reopened.

As a result, we saw connection loss in tests.

Closes #288
oleg-jukovec and others added 3 commits May 15, 2023 14:32
We need to wait for a success role cluster configuration because an
instance bootstrap may hasn't finished yet.

Part of #291
We should release the lock even if connect fails.

Part of #282
Increased timeout for all test's server options.
Have done it to solve the problem with macOs flaky tests.

Closes #277
Closes #282
@oleg-jukovec oleg-jukovec removed their request for review May 15, 2023 12:37
@oleg-jukovec
Copy link
Collaborator

oleg-jukovec commented May 15, 2023

I will re-open the pull request: I cannot assign @better0fdead to reviewers.

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