-
Notifications
You must be signed in to change notification settings - Fork 2
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
feat: make go test timeout configurable in test job #721
feat: make go test timeout configurable in test job #721
Conversation
@@ -53,6 +57,7 @@ executor: | |||
environment: | |||
AWS_REGION: << parameters.aws_region >> | |||
PRE_SETUP_SCRIPT: << parameters.pre_setup_script >> | |||
GO_TEST_TIMEOUT: << parameters.go_test_timeout >> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so i take it this is used in a script somewhere when we run the tests?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup.
Lines 103 to 106 in be1b62d
# If GO_TEST_TIMEOUT is set, we pass it to `go test` as a timeout. | |
if [[ -n $GO_TEST_TIMEOUT ]]; then | |
TEST_FLAGS+=(-timeout "$GO_TEST_TIMEOUT") | |
fi |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks like it's the same as the one for the E2E tests, so
🎉 This PR is included in version 2.24.0-rc.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
🎉 This PR is included in version 2.24.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Please read CONTRIBUTING.md for additional information on contributing to this repository!
What this PR does / why we need it
Unfortunately, I have a test that takes longer than 10 minutes and this isn't currently configurable.
The test.sh looks for this env var and sets the timeout flag:
devbase/shell/test.sh
Lines 103 to 106 in be1b62d
Jira ID
[XX-XX]
Notes for your reviewers