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 2019/10/17 10:15:15 UTC

[GitHub] [airflow] ashb commented on a change in pull request #6321: [AIRFLOW-5649] Skips some tests for non relevant changes

ashb commented on a change in pull request #6321: [AIRFLOW-5649] Skips some tests for non relevant changes
URL: https://github.com/apache/airflow/pull/6321#discussion_r335923495
 
 

 ##########
 File path: scripts/ci/_utils.sh
 ##########
 @@ -910,15 +927,39 @@ function build_image_on_ci() {
     # Cleanup docker installation. It should be empty in CI but let's not risk
     docker system prune --all --force
     rm -rf "${BUILD_CACHE_DIR}"
+    mkdir -pv "${BUILD_CACHE_DIR}"
 
-    if [[ ${TRAVIS_JOB_NAME:=""} == "Tests"* ]]; then
-        rebuild_ci_image_if_needed
+    CHANGED_FILE_NAMES=$(git diff --name-only "${TRAVIS_BRANCH:="HEAD"}...HEAD")
+    echo
+    echo "Changed file names in this commit"
+    echo "$CHANGED_FILE_NAMES"
+    echo
+
+    if [[ ${TRAVIS_JOB_NAME:=""} == "Tests"*"kubernetes"* ]]; then
+        match_files_regexp 'airflow/kubernetes/.*\.py' 'tests/kubernetes/.*\.py'
 
 Review comment:
   I've had a few cases where bugs in my PR in the webserver code were only caught by the kube tests btw.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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