Skip to content

Commit

Permalink
[CWS] retry failing tests in functional tests
Browse files Browse the repository at this point in the history
  • Loading branch information
paulcacheux committed Nov 22, 2023
1 parent 9fac6f8 commit 9c1a7e8
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,16 @@ def check_output(output, wait_thr, tag="")
# The package name has to be the real path in order to use agent-platform's CODEOWNER parsing downstream
# The junitfiles are uploaded to the Datadog CI Visibility product, and for downloading
# The json files are used to print failed tests at the end of the Gitlab job
#
# The tests are retried if they fail, but only if less than 5 failed
# so that we do not retry the whole testsuite in case of a global failure
gotestsum_test2json_cmd = ["sudo", "-E",
"/go/bin/gotestsum",
"--format", "testname",
"--junitfile", xmlpath,
"--jsonfile", jsonpath,
"--rerun-fails=2",
"--rerun-fails-max-failures=5",
"--raw-command", "--",
"/go/bin/test2json", "-t", "-p", "github.com/DataDog/datadog-agent/pkg/security/tests"
]
Expand Down

0 comments on commit 9c1a7e8

Please sign in to comment.