[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor/master] scripts: Don't run practracker in git hooks



commit 887dc6abb0b39dcedd458960f7f46e373389bbc9
Author: David Goulet <dgoulet@xxxxxxxxxxxxxx>
Date:   Thu Jul 2 13:54:19 2020 -0400

    scripts: Don't run practracker in git hooks
    
    Signed-off-by: David Goulet <dgoulet@xxxxxxxxxxxxxx>
---
 scripts/git/pre-commit.git-hook | 19 ++-----------------
 1 file changed, 2 insertions(+), 17 deletions(-)

diff --git a/scripts/git/pre-commit.git-hook b/scripts/git/pre-commit.git-hook
index 33af3fdf6..5533ed0cd 100755
--- a/scripts/git/pre-commit.git-hook
+++ b/scripts/git/pre-commit.git-hook
@@ -5,7 +5,7 @@
 #
 # This is pre-commit git hook script that prevents commiting your changeset if
 # it fails our code formatting, changelog entry formatting, module include
-# rules, or best practices tracker.
+# rules, etc...
 
 # Run only if this environment variable is set.
 if [ -z "$TOR_EXTRA_PRE_COMMIT_CHECKS" ]; then
@@ -54,13 +54,6 @@ if [ -e scripts/maint/checkShellScripts.sh ]; then
     scripts/maint/checkShellScripts.sh
 fi
 
-# Always run the practracker unit tests
-PT_DIR=scripts/maint/practracker
-
-if [ -e "${PT_DIR}/test_practracker.sh" ]; then
-    "${PT_DIR}/test_practracker.sh"
-fi
-
 if [ -e scripts/maint/checkSpaceTest.sh ]; then
     scripts/maint/checkSpaceTest.sh
 fi
@@ -79,19 +72,11 @@ printf "Modified tor-owned source files:\\n%s\\n" "$CHECK_FILES"
 perl scripts/maint/checkSpace.pl -C \
      $CHECK_FILES
 
+# This makes sure that we are only including things we're allowed to include.
 if test -e scripts/maint/practracker/includes.py; then
     python scripts/maint/practracker/includes.py
 fi
 
-# Only call practracker if ${PT_DIR}/.enable_practracker_in_hooks exists
-# We do this check so that we can enable practracker in hooks in master, and
-# disable it on maint branches
-if [ -e "${PT_DIR}/practracker.py" ]; then
-    if [ -e "${PT_DIR}/.enable_practracker_in_hooks" ]; then
-        python3 "${PT_DIR}/practracker.py" "$workdir"
-    fi
-fi
-
 if [ -e scripts/coccinelle/check_cocci_parse.sh ]; then
 
     # Run a verbose cocci parse check on the changed files



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits