Skip to content

Conversation

oleg-jukovec
Copy link
Collaborator

@oleg-jukovec oleg-jukovec commented May 15, 2023

Fixed many flaky tests for macOs.

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

Related issues:

Closes #277
Closes #278
Closes #282
Closes #288
Closes #291

@oleg-jukovec oleg-jukovec force-pushed the better0fdead/flaky-macOS branch 3 times, most recently from 609d6bb to 6b7f1cd Compare May 15, 2023 14:01
@better0fdead
Copy link

test: wait for queue cluster
We need to wait for a successful role cluster configuration because an instance bootstrap may haven't been finished yet.

@oleg-jukovec oleg-jukovec force-pushed the better0fdead/flaky-macOS branch from 6b7f1cd to 18ab3f4 Compare May 17, 2023 08:28
@oleg-jukovec
Copy link
Collaborator Author

test: wait for queue cluster We need to wait for a successful role cluster configuration because an instance bootstrap may haven't been finished yet.

Thank you, updated.

@oleg-jukovec oleg-jukovec requested a review from better0fdead May 17, 2023 09:02
oleg-jukovec and others added 10 commits May 17, 2023 18:15
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
We need to wait for a successful role cluster configuration because
an instance bootstrap may haven'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
Closes #291
@oleg-jukovec oleg-jukovec force-pushed the better0fdead/flaky-macOS branch from 18ab3f4 to 0e9ebb0 Compare May 17, 2023 15:16
@oleg-jukovec oleg-jukovec merged commit 521c0c3 into master May 18, 2023
@oleg-jukovec oleg-jukovec deleted the better0fdead/flaky-macOS branch May 18, 2023 10:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants