Skip to content

Commit 44882ea

Browse files
committed
Add an option to only stress test a single project
Useful to reproduce stress tester failures of a single project locally
1 parent 0cba504 commit 44882ea

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

run_sk_stress_test

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@ def parse_args():
6666
metavar='TAG',
6767
help='Only run project actions with the given tag',
6868
default='sourcekit')
69+
parser.add_argument('--filter-by-project',
70+
metavar='TAG',
71+
help='Only stress test the given project')
6972
parser.add_argument('--sourcekit-xfails',
7073
metavar='PATH',
7174
help='JSON file specifying expected sourcekit failures',
@@ -152,6 +155,9 @@ def execute_runner(workspace, args):
152155

153156
if args.filter_by_tag:
154157
extra_runner_args += ['--include-actions', '"tags" in locals() and "{}" in tags.split()'.format(args.filter_by_tag)]
158+
159+
if args.filter_by_project:
160+
extra_runner_args += ['--include-repos', 'path == "{}"'.format(args.filter_by_project)]
155161

156162
runner = StressTesterRunner(wrapper_path, stress_tester_path, swiftc_path, args.projects, args.swift_branch, os.path.abspath(args.sourcekit_xfails))
157163
passed = runner.run(extra_runner_args)

0 commit comments

Comments
 (0)