This is an automated email from the ASF dual-hosted git repository.

chia7712 pushed a commit to branch branch-1.5
in repository https://gitbox.apache.org/repos/asf/yunikorn-k8shim.git


The following commit(s) were added to refs/heads/branch-1.5 by this push:
     new 0ce3c241 [YUNIKORN-2563] [shim] Enable deadlock detection during unit 
tests (#821)
0ce3c241 is described below

commit 0ce3c24184762fac587d0ae88de3bfd54fd0493a
Author: Peter Bacsko <pbac...@cloudera.com>
AuthorDate: Mon Apr 22 23:43:07 2024 +0800

    [YUNIKORN-2563] [shim] Enable deadlock detection during unit tests (#821)
    
    Closes: #821
    
    Signed-off-by: Chia-Ping Tsai <chia7...@gmail.com>
---
 Makefile | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/Makefile b/Makefile
index 45fb4f4e..f9c88e8a 100644
--- a/Makefile
+++ b/Makefile
@@ -539,6 +539,9 @@ $(RELEASE_BIN_DIR)/$(TEST_SERVER_BINARY): go.mod go.sum 
$(shell find pkg)
 
 # Run the tests after building
 .PHONY: test
+test: export DEADLOCK_DETECTION_ENABLED = true
+test: export DEADLOCK_TIMEOUT_SECONDS = 10
+test: export DEADLOCK_EXIT = true
 test:
        @echo "running unit tests"
        @mkdir -p "$(OUTPUT)"


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@yunikorn.apache.org
For additional commands, e-mail: issues-h...@yunikorn.apache.org

Reply via email to