From d5a9f2f12421f2c3679d94a21bf3a751ed690b82 Mon Sep 17 00:00:00 2001 From: Jakob Botsch Nielsen Date: Thu, 18 Jan 2024 15:27:56 +0100 Subject: [PATCH 1/2] Collect SPMI collections as part of Fuzzlyn pipeline This will include SPMI collections recorded over the reduction process in the zip artifact produced by the Fuzzlyn runs. --- src/coreclr/scripts/fuzzlyn_run.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/coreclr/scripts/fuzzlyn_run.py b/src/coreclr/scripts/fuzzlyn_run.py index 0fe88f79a7f975..65f19698e617e3 100644 --- a/src/coreclr/scripts/fuzzlyn_run.py +++ b/src/coreclr/scripts/fuzzlyn_run.py @@ -135,10 +135,12 @@ def run(self): if reduce_this: print("Reducing {}".format(ex['Seed'])) output_path = path.join(self.examples_dir, str(ex["Seed"]) + ".cs") + spmi_collections_path = path.join(self.examples_dir, str(ex["Seed"]) + "_spmi") cmd = [self.fuzzlyn_path, "--host", self.host_path, "--reduce", "--seed", str(ex['Seed']), + "--collect-spmi-to", spmi_collections_path, "--output", output_path] run_command(cmd) if path.exists(output_path): From c47e8d1cd34c747b81a7f73f876fe25736537ee5 Mon Sep 17 00:00:00 2001 From: Jakob Botsch Nielsen Date: Thu, 18 Jan 2024 15:34:41 +0100 Subject: [PATCH 2/2] Make sure directory exists --- src/coreclr/scripts/fuzzlyn_run.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/coreclr/scripts/fuzzlyn_run.py b/src/coreclr/scripts/fuzzlyn_run.py index 65f19698e617e3..002d3548583f86 100644 --- a/src/coreclr/scripts/fuzzlyn_run.py +++ b/src/coreclr/scripts/fuzzlyn_run.py @@ -136,6 +136,7 @@ def run(self): print("Reducing {}".format(ex['Seed'])) output_path = path.join(self.examples_dir, str(ex["Seed"]) + ".cs") spmi_collections_path = path.join(self.examples_dir, str(ex["Seed"]) + "_spmi") + os.mkdir(spmi_collections_path) cmd = [self.fuzzlyn_path, "--host", self.host_path, "--reduce",