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

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


The following commit(s) were added to refs/heads/master by this push:
     new 5f7cc54d16 [YUNIKORN-2304] add instruction docs of looping flaky test 
(#442)
5f7cc54d16 is described below

commit 5f7cc54d16cf3c9262a82f5bec637592bd42a255
Author: Tseng Hsi-Huang <9501...@gmail.com>
AuthorDate: Mon Jun 24 21:14:20 2024 +0800

    [YUNIKORN-2304] add instruction docs of looping flaky test (#442)
    
    Closes: #442
    
    Signed-off-by: Chia-Ping Tsai <chia7...@gmail.com>
---
 docs/developer_guide/build.md | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/docs/developer_guide/build.md b/docs/developer_guide/build.md
index 55f71e895a..ecd95580d0 100644
--- a/docs/developer_guide/build.md
+++ b/docs/developer_guide/build.md
@@ -165,6 +165,11 @@ To make sure that the local changes will not break other 
parts of the
 build you should run:
 - A full build `make` (build target depends on the repository)
 - A full unit test run `make test`
+- For diagnosing flaky tests, which are challenging due to their infrequent 
failures, use a looping command to repeatedly run the test. For instance, to 
diagnose `TestNoFillWithoutEventPluginRegistered` in 
`yunikorn-core/pkg/events/event_publisher_test.go`, you can use the following 
command:
+
+  ```sh
+  I=0; while go test -run TestNoFillWithoutEventPluginRegistered ./pkg/... 
-count=1; do (( I=$I+1 )); echo "Completed loop: $I"; sleep 1; done
+  ```
 
 Any test failures should be fixed before proceeding.
 


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

Reply via email to