From 049abcf465a9b15e4e503e914a60ef642a0a27c2 Mon Sep 17 00:00:00 2001 From: Renfei Wang Date: Sat, 14 Nov 2020 09:49:20 -0500 Subject: [PATCH] Add user guide for exclude feature (#2055) Signed-off-by: renfeiw --- doc/userGuide.md | 69 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) diff --git a/doc/userGuide.md b/doc/userGuide.md index d53a0c8672..3b1640f835 100644 --- a/doc/userGuide.md +++ b/doc/userGuide.md @@ -309,3 +309,72 @@ openjdk-tests/test-results/openjdk/report ``` The JTREG report HTML summary file is then located at `openjdk-tests/test-results/openjdk/report/html/index.html` + +## Exclude a test target + +#### Automatically exclude a test target +Instead of having to manually create a PR to disable test targets, they can now be automatically disabled via Github workflow (see autoTestPR.yml). In the issue that describes the test failure, add a comment with the following format: + +```auto exclude test ``` + +If the testName matches the testCaseName defined in `````` element of playlist.xml, the entire test suite will be excluded. If the testName is testCaseName followed by _n, only the (n+1)th variation will be excluded. + +For example: + +``` + + jdk_test + + NoOptions + -Xmx1024m + + ... +``` +To exclude the entire suite: + +```auto exclude test jdk_test``` + +To exclude the test case with variation ```-Xmx1024m```: + +```auto exclude test jdk_test_1``` + +After the comment is left, there will be a auto PR created with the exclude change in the playlist.xml. The PR will be linked to issue. If the testName can not be found in the repo, no PR will be created and there will be a comment left in the issue linking to the failed workflow run for more details. + +#### Manually exclude a test target +Search the test name to find its playlist.xml file. Add a `````` element after `````` element. The `````` element should always contain a `````` element to specify the related issue url (or issue comment url). + +For example: + +``` + + jdk_test + + https://github.com/AdoptOpenJDK/openjdk-tests/issues/123456 + + ... +``` + +This will disable the entire test suite. The following section describes how to disable the specific test cases. + +##### Exclude a specific test variation: +Add a `````` element in the `````` element to specify the variation. The `````` element must match an element defined in the `````` element. + +For example, to exclude the test case with variation ```-Xmx1024m```: + +``` + + jdk_test + + https://github.com/AdoptOpenJDK/openjdk-tests/issues/123456 + -Xmx1024m + + ... + + NoOptions + -Xmx1024m + + ... +``` + +##### Exclude multiple test variations: +Define multiple `````` elements, each with a single `````` element inside. Multiple `````` elements inside one `````` element is not allowed. \ No newline at end of file