mirror of
https://github.com/facebook/proxygen.git
synced 2025-08-07 07:02:53 +03:00
add retry flag to getdeps test
Summary: This commit adds a flag `--retry` to getdeps and teach it to run retry failed test. This allows us to still pass the tests when there are some flaky tests presents. Reviewed By: wez Differential Revision: D22291063 fbshipit-source-id: 572af48a52ceb4a9abbf530cc0154ded0120c0de
This commit is contained in:
committed by
Facebook GitHub Bot
parent
a72a5032ce
commit
16cae4e6f9
@@ -701,6 +701,7 @@ class TestCmd(ProjectCmdBase):
|
||||
schedule_type=args.schedule_type,
|
||||
owner=args.test_owner,
|
||||
test_filter=args.filter,
|
||||
retry=args.retry,
|
||||
)
|
||||
|
||||
install_dirs.append(inst_dir)
|
||||
@@ -711,6 +712,13 @@ class TestCmd(ProjectCmdBase):
|
||||
)
|
||||
parser.add_argument("--test-owner", help="Owner for testpilot")
|
||||
parser.add_argument("--filter", help="Only run the tests matching the regex")
|
||||
parser.add_argument(
|
||||
"--retry",
|
||||
type=int,
|
||||
default=3,
|
||||
help="Number of immediate retries for failed tests "
|
||||
"(noop in continuous and testwarden runs)",
|
||||
)
|
||||
|
||||
|
||||
@cmd("generate-github-actions", "generate a GitHub actions configuration")
|
||||
|
Reference in New Issue
Block a user