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

Terratest timeout 15 min, parallel 12 #451

Merged
merged 1 commit into from
Apr 21, 2021
Merged

Conversation

kuritka
Copy link
Collaborator

@kuritka kuritka commented Apr 19, 2021

It happened that long running test TestK8gbBasicRoundRobinExample didn't finish during 10 minutes terratest run.
We are running tests in Parallel. The maximum number of tests to run simultaneously is by default set to the value of GOMAXPROCS (the number of CPU's visible to the program startup). That's why tests are running in smaller parallel chunks (waves).

From what I see in the logs, TestK8gbBasicRoundRobinExample started in 4th minute of terratest (n-th wave) and was not fast enough to scale-up GSLB in the last subtest(subtests are sequential in the scope of test), The TestK8gbBasicRoundRobinExample timeouted see: text log

I saw this behavior first time.

  • Regarding documentation I extended timeout to 12m.
  • I extended number of parallel process to 12, so test execution doesn't run in waves now.
    I shorten terratest run from usual 9+ to 6+ minutes

Screenshot 2021-04-19 at 17 15 54
10 minutes limit can exceed quickly !!

Screenshot 2021-04-19 at 17 15 06

Signed-off-by: kuritka [email protected]

It happened that long running test `TestK8gbBasicRoundRobinExample` didn't finish [during 10 minutes](https://github.com/AbsaOSS/k8gb/pull/450/checks?check_run_id=2380389415#step:7:3939)
From what I see in the logs, test started in 4th minute of terratest (some terratests already passed).
`TestK8gbBasicRoundRobinExample` was not able to scale GSLB in the last phase of test and was waiting, while timeout occured.
see: [text log](https://pipelines.actions.githubusercontent.com/fdhui6E3r0qyGjKGI7JL2oBgou8JslTAp47a0VPoFebyddvI6q/_apis/pipelines/1/runs/4893/signedlogcontent/3?urlExpires=2021-04-19T12%3A28%3A36.7191880Z&urlSigningMethod=HMACV1&urlSignature=Dv0kIy48JHrB0wGt8ueUp90%2FtisqMuQ8w4QHV2dr5b4%3D)
I saw this behavior first time.

 - Regarding documentation I extended [timeout to 12m](https://terratest.gruntwork.io/docs/testing-best-practices/timeouts-and-logging/).

Signed-off-by: kuritka <[email protected]>

Update Makefile

12min to 15min

Co-authored-by: Yury Tsarev <[email protected]>
@kuritka kuritka force-pushed the terratest-timeout-12m branch from 747b71e to 707f57c Compare April 20, 2021 07:51
@kuritka kuritka changed the title Terratest timeout 12m Terratest timeout 15 min, parallel 12 Apr 20, 2021
@kuritka kuritka requested a review from ytsarev April 20, 2021 08:06
@kuritka kuritka merged commit 7a222ff into master Apr 21, 2021
@kuritka kuritka deleted the terratest-timeout-12m branch April 21, 2021 10:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants