From d1b59ef37b3f625a92acb71075b7a95fefd7cba4 Mon Sep 17 00:00:00 2001 From: Nicole Zhu <69952136+nicoleczhu@users.noreply.github.com> Date: Wed, 13 Jan 2021 10:58:35 -0800 Subject: [PATCH] ci(all): ignore code diffs introduced by test script (#3545) --- internal/kokoro/continuous.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/kokoro/continuous.sh b/internal/kokoro/continuous.sh index 5457bfbdd4dc..81bde7cdc9f1 100755 --- a/internal/kokoro/continuous.sh +++ b/internal/kokoro/continuous.sh @@ -107,7 +107,7 @@ exit_code=0 if [[ $KOKORO_JOB_NAME == *"continuous"* ]]; then # Continuous jobs only run root tests & tests in submodules changed by the PR - SIGNIFICANT_CHANGES=$(git --no-pager diff --name-only $KOKORO_GIT_COMMIT^ | grep -Ev '(\.md$|^\.github)' || true) + SIGNIFICANT_CHANGES=$(git --no-pager diff --name-only $KOKORO_GIT_COMMIT^..$KOKORO_GIT_COMMIT | grep -Ev '(\.md$|^\.github)' || true) # CHANGED_DIRS is the list of significant top-level directories that changed, # but weren't deleted by the current PR. CHANGED_DIRS will be empty when run on master. CHANGED_DIRS=$(echo "$SIGNIFICANT_CHANGES" | tr ' ' '\n' | grep "/" | cut -d/ -f1 | sort -u | tr '\n' ' ' | xargs ls -d 2>/dev/null || true)