Skip to content

Commit 2c4708a

Browse files
authored
Run runtime async fuzzing in CI (#118883)
1 parent 2da0155 commit 2c4708a

File tree

2 files changed

+26
-4
lines changed

2 files changed

+26
-4
lines changed

src/coreclr/scripts/exploratory.proj

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,18 +69,29 @@
6969
</HelixCorrelationPayload>
7070
</ItemGroup>
7171

72-
<ItemGroup>
72+
<ItemGroup Condition=" '$(ToolName)' == 'Antigen' ">
73+
<Run_Partition Include="Partition0" Index="0" />
74+
<Run_Partition Include="Partition1" Index="1" />
75+
<Run_Partition Include="Partition2" Index="2" />
76+
<Run_Partition Include="Partition3" Index="3" />
77+
</ItemGroup>
78+
79+
<ItemGroup Condition=" '$(ToolName)' == 'Fuzzlyn' ">
7380
<Run_Partition Include="Partition0" Index="0" />
7481
<Run_Partition Include="Partition1" Index="1" />
7582
<Run_Partition Include="Partition2" Index="2" />
7683
<Run_Partition Include="Partition3" Index="3" />
84+
<Run_Partition Include="Partition4" Index="4" ExtraCommand="-runtime_async" />
85+
<Run_Partition Include="Partition5" Index="5" ExtraCommand="-runtime_async" />
86+
<Run_Partition Include="Partition6" Index="6" ExtraCommand="-runtime_async" />
87+
<Run_Partition Include="Partition7" Index="7" ExtraCommand="-runtime_async" />
7788
</ItemGroup>
7889

7990
<ItemGroup>
8091
<HelixWorkItem Include="@(Run_Partition)">
8192
<PartitionName>Partition%(HelixWorkItem.Index)</PartitionName>
8293
<PayloadDirectory>$(WorkItemDirectory)</PayloadDirectory>
83-
<Command>$(WorkItemCommand) -partition %(PartitionName)</Command>
94+
<Command>$(WorkItemCommand) -partition %(PartitionName) %(HelixWorkItem.ExtraCommand)</Command>
8495
<Timeout>$(WorkItemTimeout)</Timeout>
8596
<DownloadFilesFromResults>AllIssues-$(RunConfiguration)-%(PartitionName).zip;issues-summary-$(RunConfiguration)-%(PartitionName).txt;$(ToolName)-$(RunConfiguration)-%(PartitionName).log</DownloadFilesFromResults>
8697
</HelixWorkItem>

src/coreclr/scripts/fuzzlyn_run.py

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
parser.add_argument("-partition", help="Partition name")
3535
parser.add_argument("-core_root", help="path to CORE_ROOT directory")
3636
parser.add_argument("-run_duration", help="Run duration in minutes")
37+
parser.add_argument("-runtime_async", action="store_true", help="Test runtime async")
3738
is_windows = platform.system() == "Windows"
3839

3940

@@ -80,6 +81,11 @@ def setup_args(args):
8081
lambda unused: True,
8182
"Unable to set run_duration")
8283

84+
coreclr_args.verify(args,
85+
"runtime_async",
86+
lambda unused: True,
87+
"Unable to set runtime_async")
88+
8389
return coreclr_args
8490

8591
def extract_jit_assertion_error(text):
@@ -206,13 +212,18 @@ def main(main_args):
206212
reduce_examples = ReduceExamples(fp, temp_location, path_to_tool, path_to_corerun, exit_evt)
207213
reduce_examples.start()
208214

209-
run_command([
215+
command = [
210216
path_to_tool,
211217
"--seconds-to-run", str(run_duration),
212218
"--output-events-to", summary_file_path,
213219
"--host", path_to_corerun,
214220
"--parallelism", "-1",
215-
"--known-errors", "dotnet/runtime"],
221+
"--known-errors", "dotnet/runtime"]
222+
223+
if coreclr_args.runtime_async:
224+
command.extend(["--gen-extensions", "default,async,runtimeasync"])
225+
226+
run_command(command,
216227
_exit_on_fail=True, _output_file=upload_fuzzer_output_path)
217228

218229
exit_evt.set()

0 commit comments

Comments
 (0)