Skip to content

Commit e7f3ff1

Browse files
authored
Fix up Fuzzlyn CI scripts for new hardware intrinsics support (#105470)
1) Strip out the extensions in the seed name when using it for file/directory names, since the list of extensions is quite long 2) Limit the number of unreduced/uncategorized example seeds we show
1 parent 00cb272 commit e7f3ff1

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

src/coreclr/scripts/fuzzlyn_run.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,12 @@ def run(self):
134134

135135
if reduce_this:
136136
print("Reducing {}".format(ex['Seed']))
137-
output_path = path.join(self.examples_dir, str(ex["Seed"]) + ".cs")
138-
spmi_collections_path = path.join(self.examples_dir, str(ex["Seed"]) + "_spmi")
137+
file_name = str(ex["Seed"])
138+
dash_index = file_name.find('-')
139+
if dash_index != -1:
140+
file_name = file_name[:dash_index]
141+
output_path = path.join(self.examples_dir, file_name + ".cs")
142+
spmi_collections_path = path.join(self.examples_dir, file_name + "_spmi")
139143
os.mkdir(spmi_collections_path)
140144
cmd = [self.fuzzlyn_path,
141145
"--host", self.host_path,

src/coreclr/scripts/fuzzlyn_summarize.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,8 +216,8 @@ def seed_from_internal_zip_path(path):
216216
f.write("\n\n")
217217

218218
if len(remaining) > 0:
219-
f.write("# {} uncategorized/unreduced examples remain\n".format(len(remaining)))
220-
for ex in remaining:
219+
f.write("# {} uncategorized/unreduced examples remain{}\n".format(len(remaining), " (10 shown)" if len(remaining) > 10 else ""))
220+
for ex in remaining[:10]:
221221
f.write("* `{}`: {}\n".format(ex['Seed'], ex['Kind']))
222222
if ex['Message'] and len(ex['Message'].strip()) > 0:
223223
f.write("```scala\n")

0 commit comments

Comments
 (0)