From 91fa707217acd5a2801ecc6fe4a2ed705ab6c6be Mon Sep 17 00:00:00 2001 From: Lysandre Debut Date: Fri, 11 Dec 2020 10:27:31 -0500 Subject: [PATCH] Remove docs only check (#9065) --- .circleci/config.yml | 49 -------------------------------------------- 1 file changed, 49 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index b7a9059b8d..64f027221d 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -3,47 +3,6 @@ orbs: gcp-gke: circleci/gcp-gke@1.0.4 go: circleci/go@1.3.0 -commands: - skip-job-on-doc-only-changes: - description: "Do not continue this job and exit with success for PRs with only doc changes" - steps: - - - run: - name: docs-only changes skip check - command: | - if test -n "$CIRCLE_PR_NUMBER" - then - echo $CIRCLE_PR_NUMBER - resp=$(curl -Ls https://api.github.com/repos/huggingface/transformers/pulls/${CIRCLE_PR_NUMBER}) - user=$(jq -r .user.login \<<< $resp) # PR creator username - head_ref=$(jq -r .head.ref \<<< $resp) # PR user's branch name - echo head_ref=$head_ref, user=$user - fi - - if test -n "$user" && test -n "$head_ref" - then - git clone https://github.com/$user/transformers user-clone - cd user-clone - git checkout $head_ref - fork_point_sha=$(git merge-base --fork-point master) - cd - - fi - - if test -n "$fork_point_sha" && test -n "$(git diff --name-only $fork_point_sha)" - then - git --no-pager diff --name-only $fork_point_sha - if git diff --name-only $fork_point_sha | egrep -qv '\.(md|rst)$' - then - echo "Non-docs were modified in this PR, proceeding normally" - else - echo "Only docs were modified in this PR, quitting this job" - # enable skipping once we get this sorted out - # circleci step halt - fi - else - echo "Not enough data to perform a skipping check - continuing the job" - fi - # TPU REFERENCES references: @@ -114,7 +73,6 @@ jobs: parallelism: 1 steps: - checkout - - skip-job-on-doc-only-changes - restore_cache: keys: - v0.4-torch_and_tf-{{ checksum "setup.py" }} @@ -141,7 +99,6 @@ jobs: parallelism: 1 steps: - checkout - - skip-job-on-doc-only-changes - restore_cache: keys: - v0.4-torch-{{ checksum "setup.py" }} @@ -168,7 +125,6 @@ jobs: parallelism: 1 steps: - checkout - - skip-job-on-doc-only-changes - restore_cache: keys: - v0.4-tf-{{ checksum "setup.py" }} @@ -195,7 +151,6 @@ jobs: parallelism: 1 steps: - checkout - - skip-job-on-doc-only-changes - restore_cache: keys: - v0.4-flax-{{ checksum "setup.py" }} @@ -222,7 +177,6 @@ jobs: parallelism: 1 steps: - checkout - - skip-job-on-doc-only-changes - restore_cache: keys: - v0.4-torch-{{ checksum "setup.py" }} @@ -249,7 +203,6 @@ jobs: parallelism: 1 steps: - checkout - - skip-job-on-doc-only-changes - restore_cache: keys: - v0.4-tf-{{ checksum "setup.py" }} @@ -274,7 +227,6 @@ jobs: RUN_CUSTOM_TOKENIZERS: yes steps: - checkout - - skip-job-on-doc-only-changes - restore_cache: keys: - v0.4-custom_tokenizers-{{ checksum "setup.py" }} @@ -302,7 +254,6 @@ jobs: parallelism: 1 steps: - checkout - - skip-job-on-doc-only-changes - restore_cache: keys: - v0.4-torch_examples-{{ checksum "setup.py" }}