-
-
Notifications
You must be signed in to change notification settings - Fork 660
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
Same test executed multiple times in parallel on different processes and some of them not at all #1242
Comments
hey @bartam1 is there any chance you can share the actual code so I can see how the |
Hello @onsi! Thank you for the fast reply!!! This is the PR that Im working on. |
This can be the problem. Im looking into it. |
hey there - i think the issue might be on line 92-95 of tests.go. the closure captures |
Thanks that one helped. |
hey - that makes sense. the map issue should have been fixed in v2.7.0 - since that release ginkgo breaks ties for specs in the same location using the spec name. but you do need to make sure the spec names are identical between processes (eg that random test id you are generating needs to be the same for each process). |
testID is fixed. |
oh yes good catch - that’ll be a problem too. sorry this is so confusing :( there’s not a great way to ensure consistent order when a loop like this is in play. you can attach the process index as metadata via AddReportEntry or as a Label if you’d like |
i really should add a checksum to validate that all trees are the same and give the user feedback. i’ll add that to the backlog. |
Thank you for the helps! It looks like works fine so far. |
It is a good idea. Please let me know when the PR is up :) |
Dear Community!
Im working on an E2E test using ginkgo.
I do the same that @onsi advise to run tests with different parameters in parallel (#561 (comment))
Currently my setup looks like:
When I run this in serial everyting is good but when I go with parallel I have different test results every time.
In the following example I run 5 specs:
MockTest1 has MockTest1-1 and MockTest1-2
MockTest2 has MockTest2-1 MockTest2-2 and MockTest2-3
Expected: (what we have in serial):
(all tests executed in order)
Actual what we have in parallel:
This is also a buggy ran for second time:
Can you give me please some explanation why is this happen?
I cannot figure out :(
The text was updated successfully, but these errors were encountered: