Skip gpu tests in regions without gpu#461
Conversation
Codecov Report
@@ Coverage Diff @@
## master #461 +/- ##
=======================================
Coverage 93.87% 93.87%
=======================================
Files 56 56
Lines 4199 4199
=======================================
Hits 3942 3942
Misses 257 257Continue to review full report at Codecov.
|
|
|
||
| @pytest.mark.continuous_testing | ||
| @pytest.mark.skipif(PYTHON_VERSION != 'py2', reason="TensorFlow image supports only python 2.") | ||
| @pytest.mark.skipif(REGION in ['us-west-1', 'eu-west-2', 'ca-central-1']) |
nadiaya
left a comment
There was a problem hiding this comment.
Other integ tests also run gpu tests (e.g. pytorch)
|
@nadiaya Only need to skip the tests that marked as continuous_testing (run as canary). For other p2 tests like pytorch async, it's not part of canary. But I guess I can still make the change though. |
|
|
||
|
|
||
| @pytest.mark.skipif(REGION in ['us-west-1', 'eu-west-2', 'ca-central-1'], | ||
| reason='No ml.p2.xlarge supported in these regions') |
There was a problem hiding this comment.
what about p3? can't we use p3 then?
There was a problem hiding this comment.
P3 is either not supported or supported only by 1/3 of availability zones. So for these 3 regions we just skip tests for now to make canary good for now.
Issue #, if available:
Description of changes:
In us-west-1, eu-west-2 and ca-central-1, there's no gpu ec2 instance like P2/P3. So the tf tests using gpu instance will fail and we should skip them in these regions.
Merge Checklist
Put an
xin the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your pull request.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.