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
Update awscli, botocore, boto3 and moto in Travis #2627
Conversation
…dk91ght/EvalAI into aws-utils-test-RestartWorker Merge master
…dk91ght/EvalAI into aws-utils-test-RestartWorker Synchronize
This comment has been minimized.
This comment has been minimized.
Codecov Report
@@ Coverage Diff @@
## master #2627 +/- ##
=========================================
Coverage ? 73.21%
=========================================
Files ? 82
Lines ? 5338
Branches ? 0
=========================================
Hits ? 3908
Misses ? 1430
Partials ? 0 Continue to review full report at Codecov.
|
Second update:Only mention awscli in .travis.yml and install awscli's version of botocore Results:Build is passing. I added some tests for aws_utils to confirm that the versions are compatible with each other. Notes:botocore requirement got overwritten by awscli.
|
@nikochiko instead of doing this. Could you try installing awscli and coveralls first. |
@yashdusing Yes! Doing the same. |
.travis.yml
Outdated
@@ -42,7 +42,7 @@ services: | |||
- xvfb | |||
install: | |||
- pip install -r requirements/dev.txt | |||
- pip install awscli==1.16.57 coveralls | |||
- pip install --upgrade awscli boto3 botocore moto |
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.
update boto3, botocore, moto in requirements/dev.txt as well
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.
Is it okay if the changes are made in requirements/common.txt?
https://github.com/Cloud-CV/EvalAI/blob/master/requirements/common.txt#L2-L3
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.
yes.
django-ses==0.8.5 | ||
docker-compose==1.21.0 | ||
drfdocs==0.0.11 | ||
drf-yasg==1.11.0 | ||
kubernetes==10.0.1 | ||
moto==1.3.8 | ||
moto |
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.
moto should be in dev
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.
nvm, since it was in common you can keep it here
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.
Okay!
I have updated the required deps: awscli, boto3, botocore and moto I have removed the additional tests now. |
…into UpdateAWSdeps Sync
As pointed out by @yashdusing the reason the travis build was failing was because the tests in submission_worker were creating an actual boto3 object and not one mocked with moto. This was solved by moving the mock_sqs decorator to base class. |
LGTM 👍 |
@Ram81 @vkartik97 @Sanji515 @RishabhJain2018 please review 😄 |
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.
LGTM 👍
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This pull request has been automatically closed as there is no further activity. Thank you for your contributions. |
Reference: #2604
Solve the issue of botocore requirement getting overwritten during travis.
Changes proposed: