You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2018/09/12 17:22:08 UTC

[GitHub] dimberman commented on a change in pull request #3797: [AIRFLOW-2952] Splits CI into k8s + docker-compose

dimberman commented on a change in pull request #3797: [AIRFLOW-2952] Splits CI into k8s + docker-compose
URL: https://github.com/apache/incubator-airflow/pull/3797#discussion_r217119163
 
 

 ##########
 File path: tests/operators/__init__.py
 ##########
 @@ -7,21 +7,26 @@
 # to you under the Apache License, Version 2.0 (the
 # "License"); you may not use this file except in compliance
 # with the License.  You may obtain a copy of the License at
-# 
+#
 #   http://www.apache.org/licenses/LICENSE-2.0
-# 
+#
 # Unless required by applicable law or agreed to in writing,
 # software distributed under the License is distributed on an
 # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 # KIND, either express or implied.  See the License for the
 # specific language governing permissions and limitations
 # under the License.
-
+from subprocess import check_call
 from .docker_operator import *
 from .subdag_operator import *
 from .operators import *
 from .hive_operator import *
-from .s3_to_hive_operator import *
+try:
+    check_call(["kubectl", "get", "pods"])
+except Exception as e:
+    print(e)
+    from .s3_to_hive_operator import *
+    pass
 
 Review comment:
   @ashb this is more of something I wanted to ask how to solve. I run into issues with the s3 tests where they don't skip even though moto shows up as "None". This was preventing the k8s tests from running at all since tests were failing at imports. 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services