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

CB-15495 TestNg E2E tiemout validation if INTEGRATIONTEST_TIMEOUT_E2E_CHECK set #11974

Merged
merged 1 commit into from
Dec 17, 2021

Conversation

aszegedi
Copy link
Contributor

@aszegedi aszegedi commented Dec 17, 2021

Our E2E tests are running in parallel by 8 threads (with the help of TestNG parallel attribute):

parallel="methods": TestNG will run all your test methods in separate threads. Dependent methods will also run in separate threads but they will respect the order that you specified.

This helps us to reduce the 'execution time' as tests are executed simultaneously in different threads.

Beyond this we applied a 100 minutes timeout for our test cases by default, on this way we can guarantees that none of the threads will block on a stuck test thread forever.

Unfortunately test case's thread is terminated if it takes longer than it's timeout setting. I found some similar issues at TestNG:

For now we can introduce an extra validation in our check-results.sh as a workaround for this.

This PR has precondition at cloudbreak-ansible-playbooks#163

@aszegedi aszegedi requested a review from a team December 17, 2021 14:37
@aszegedi aszegedi self-assigned this Dec 17, 2021
@aszegedi aszegedi force-pushed the test-testngtimeout branch 2 times, most recently from dcfaeb9 to 5aaf83d Compare December 17, 2021 15:00
@aszegedi aszegedi merged commit 56ecabb into master Dec 17, 2021
@aszegedi aszegedi deleted the test-testngtimeout branch December 17, 2021 18:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants