[CCR] Unskip follower indices component integration test#120912
[CCR] Unskip follower indices component integration test#120912sebelga merged 10 commits intoelastic:mainfrom
Conversation
|
Pinging @elastic/kibana-stack-management (Team:Stack Management) |
|
@elasticmachine merge upstream |
yuliacech
left a comment
There was a problem hiding this comment.
Thank you for un-skipping this test, @sebelga!
Code changes LGTM 👍 I think I saw a special command to run PR tests multiple times for flakiness. @cuff-links Do you maybe know how to do that automatically?
|
@elasticmachine merge upstream |
I asked the operation team and according to them the only way is to execute the tests in a loop which did not work in this case. Spent quite a bit of time on it but couldn't make the error above go away. it only appears when executing jest tests in a loop which makes me think that it is jest related and not test related. |
|
@elasticmachine merge upstream |
|
@elasticmachine merge upstream |
|
Thanks @yuliacech. Jest tests should be deterministic as they don't depend on other system. We used to have problems in the past when we didn't use the So if running 10 times CI on this PR succeeds (and many other runs locally) I would assume that any flakyness comes from the infrastructure and not the tests themselves. The op team acknowledged that they had issues with jest a few months ago and the fixed it.
Do you mean on the jest repository? I am not sure yet that the effort is worth it. I could only reproduce that error when putting the whole test suits under a loop of 3 or more iterations. Removing the loop didn't cause any issue. |
|
@elasticmachine merge upstream |
|
@elasticmachine merge upstream |
Hi Yulia. The only tests that I know that we can run repeatedly like that are functional test runner tests. I will double check that and report back. |
|
@yuliacech Confirmed. Only works with functional test runner. |
|
@elasticmachine merge upstream |
|
@elasticmachine merge upstream |
💚 Build Succeeded
Metrics [docs]
History
To update your PR or re-run it, just comment with: |
I have unskiped the test which works without issue locally. I removed a few unnecessary
asyncfunction and tried to run the tests in a loop (20 times) but that gave me the following strange (and hard to debug) jest errorsThe above error only appears if I loop more than twice the tests on my machine, maybe something memory related?
We'll run multiple times CI on this PR to make sure that flakiness is gone.
Fixes #100951