From d25ad34c820e52a4d97be9358b8a8c7e302d9d28 Mon Sep 17 00:00:00 2001 From: Stas Bekman Date: Mon, 28 Jun 2021 08:55:59 -0700 Subject: [PATCH] [CI] add dependency table sync verification (#12364) * add dependency table sync verification * improve the message * improve the message * revert * ready to merge --- .circleci/config.yml | 1 + Makefile | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 9d344d7a317..0303de287e0 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -419,6 +419,7 @@ jobs: - run: python utils/check_dummies.py - run: python utils/check_repo.py - run: python utils/check_inits.py + - run: make deps_table_check_updated check_repository_consistency: working_directory: ~/transformers diff --git a/Makefile b/Makefile index 36e9d0aea77..28645600cec 100644 --- a/Makefile +++ b/Makefile @@ -21,6 +21,12 @@ modified_only_fixup: deps_table_update: @python setup.py deps_table_update +deps_table_check_updated: + @md5sum src/transformers/dependency_versions_table.py > md5sum.saved + @python setup.py deps_table_update + @md5sum -c --quiet md5sum.saved || (printf "\nError: the version dependency table is outdated.\nPlease run 'make fixup' or 'make style' and commit the changes.\n\n" && exit 1) + @rm md5sum.saved + # autogenerating code autogenerate_code: deps_table_update