-
Notifications
You must be signed in to change notification settings - Fork 100
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
Enable travis to run tests #154
Conversation
looks good |
1 similar comment
looks good |
Can travis handle a ~2h test run with 4 docker containers? |
There's a 50 minute timeout. |
we could run just the smoketest |
That's a good idea to start. |
9dfb9a2
to
a5fd03d
Compare
Fixes prestodb#151. Pull request: prestodb#154
a5fd03d
to
97837b7
Compare
Fixes prestodb#151. Pull request: prestodb#154
97837b7
to
f0c5b5e
Compare
Fixes prestodb#151. Pull request: prestodb#154
f0c5b5e
to
d3206ce
Compare
Fixes prestodb#151. Pull request: prestodb#154
d3206ce
to
e80e9ce
Compare
Fixes prestodb#151. Pull request: prestodb#154
e80e9ce
to
f0ad3db
Compare
Fixes prestodb#151. Pull request: prestodb#154
See travis build for current configuration: https://travis-ci.org/Teradata/presto-admin/jobs/116648638 |
f0ad3db
to
eb74cbf
Compare
Fixes prestodb#151. Pull request: prestodb#154
Recent travis build: https://travis-ci.org/Teradata/presto-admin/builds/116667566 |
eb74cbf
to
d063c47
Compare
Fixes prestodb#151. Pull request: prestodb#154
d063c47
to
d3ea5c2
Compare
Fixes prestodb#151. Pull request: prestodb#154
travis status: https://travis-ci.org/Teradata/presto-admin/builds/116691363 |
d3ea5c2
to
51d1e63
Compare
Product tests will be using online installer. This is possible by setting PA_TEST_ONLINE_INSTALLER environment variable and using it in prestoadmin_installer.py to select installer. Fixes prestodb#151. Pull request: prestodb#154
51d1e63
to
c8a19f6
Compare
Product tests will be using online installer. This is possible by setting PA_TEST_ONLINE_INSTALLER environment variable and using it in prestoadmin_installer.py to select installer. Fixes prestodb#151. Pull request: prestodb#154
c8a19f6
to
134323c
Compare
Product tests will be using online installer. This is possible by setting PA_TEST_ONLINE_INSTALLER environment variable and using it in prestoadmin_installer.py to select installer. Fixes prestodb#151. Pull request: prestodb#154
134323c
to
bb5d133
Compare
Product tests will be using online installer. This is possible by setting PA_TEST_ONLINE_INSTALLER environment variable and using it in prestoadmin_installer.py to select installer. Fixes prestodb#151. Pull request: prestodb#154
bb5d133
to
c6b0147
Compare
Product tests will be using online installer. This is possible by setting PA_TEST_ONLINE_INSTALLER environment variable and using it in prestoadmin_installer.py to select installer. Fixes prestodb#151. Pull request: prestodb#154
Travis build passes: https://travis-ci.org/Teradata/presto-admin/builds/116847168 @cawallin @mattsfuller @rschlussel Please review this PR one more time. |
looks good |
1 similar comment
looks good |
install: | ||
- pip install --upgrade pip==6.1.1 | ||
- pip install -r requirements.txt | ||
script: |
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.
I just pushed #160 so that when we have future infra issues, we don't fail to build the base image for every test case. This means that the base image needs to be built prior to running the test cases. You can do this with make docker-images
, I took a quick look at the travis docs, it looks like that should happen in a before-script
section so that if it fails we won't try to run the product 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.
Great, so now product test execution should take less time, shouldn't it?
script: | ||
- | | ||
if [ -v PRODUCT_TEST_GROUP ]; then | ||
PRODUCT_TESTS=$(find tests/product/ -name '*py' | grep -v __init__ | xargs wc -l | sort -n | head -n -1 | awk '{print $2}' | awk "NR % 8 == $PRODUCT_TEST_GROUP" | tr '\n' ' ') |
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.
Suggest combining the last two awk commands into awk "NR % 8 == $PRODUCT_TEST_GROUP { print $2 }", but it's up to you.
Product tests will be using online installer. This is possible by setting PA_TEST_ONLINE_INSTALLER environment variable and using it in prestoadmin_installer.py to select installer. Fixes prestodb#151. Pull request: prestodb#154
c6b0147
to
2907278
Compare
Product tests will be using online installer. This is possible by setting PA_TEST_ONLINE_INSTALLER environment variable and using it in prestoadmin_installer.py to select installer. Fixes prestodb#151. Pull request: prestodb#154
Enable travis to run tests
Fixes #151.