-
Notifications
You must be signed in to change notification settings - Fork 240
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
workaround for S3 in us-east-1 #3710
Conversation
2f7eb14
to
2e090d9
Compare
Huh, just running the integration tests in |
c54dda1
to
d76754f
Compare
Huzzah, finally able to reproduce the error "InvalidLocationConstraint" (in causes all the AWSJobStore tests to fail) |
b4e3f38
to
72ce1c5
Compare
9bc36f6
to
1401c8f
Compare
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 should mostly work. But I think we'd end up passing regions where we mean to pass zones, sometimes, as written.
Also, rather than running another copy of the AWS job store tests, can't we just add a single unit test to an existing CI job to test a single bucket creation utility function? We already have a slightly unmanageable number of distinct things that can go wrong in each CI run; it would be good to minimize the number of times AWS can fail on us for things that aren't our fault.
Sure. I ran the entire test suite on The testing can be scaled back to just a single bucket creation utility function, yes |
4fe9454
to
dde4479
Compare
@adamnovak Thanks for the review. I believe I have addressed all of your comments. |
dde4479
to
6556a7f
Compare
6556a7f
to
177e3f8
Compare
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 think this looks good. I added a missing docstring and hooked the new tests file up to a CI job so that CI will run it.
@@ -271,6 +271,7 @@ py37_main: | |||
- make test tests=src/toil/test/src | |||
- make test tests=src/toil/test/utils | |||
- make test tests=src/toil/test/lib/test_ec2.py | |||
- make test tests=src/toil/test/lib/aws |
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.
The new test is already run as part of the quick_test_offline
https://ucsc-ci.com/databiosphere/toil/-/jobs/90265/raw
src/toil/test/lib/aws/test_s3.py::S3Test::test_create_bucket
-------------------------------- live log call ---------------------------------
INFO toil.test:__init__.py:91 Setting up toil.test.lib.aws.test_s3.S3Test.test_create_bucket ...
INFO toil.test:__init__.py:96 Tore down toil.test.lib.aws.test_s3.S3Test.test_create_bucket
PASSED
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.
But isn't it an online test? Shouldn't it be pulled out of there? make test_offline
isn't supposed to need Internet access according to the Makefile.
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 agree, it is an online test. Lots of the needs_aws
tests run in the quick_test_offline
, including the entire AWSJobStoreTest
suite!
Can we merge this and fix the test distribution in a separate PR?
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 opened #3717
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.
We might have already had an issue for that; I guess we need a new decorator or something. We probably don't need to fix it here.
Fixes #3709
Changelog Entry
To be copied to the draft changelog by merger:
Reviewer Checklist
issues/XXXX-fix-the-thing
in the Toil repo, or from an external repo.camelCase
that want to be insnake_case
.docs/running/cliOptions.rst
Merger Checklist