Skip to content

Commit

Permalink
Fix up Fuzzlyn CI scripts for new hardware intrinsics support (#105470)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
jakobbotsch authored and directhex committed Jul 26, 2024
1 parent 4f66316 commit b4730cd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 6 additions & 2 deletions src/coreclr/scripts/fuzzlyn_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,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")
file_name = str(ex["Seed"])
dash_index = file_name.find('-')
if dash_index != -1:
file_name = file_name[:dash_index]
output_path = path.join(self.examples_dir, file_name + ".cs")
spmi_collections_path = path.join(self.examples_dir, file_name + "_spmi")
os.mkdir(spmi_collections_path)
cmd = [self.fuzzlyn_path,
"--host", self.host_path,
Expand Down
4 changes: 2 additions & 2 deletions src/coreclr/scripts/fuzzlyn_summarize.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,8 @@ def seed_from_internal_zip_path(path):
f.write("\n\n")

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

0 comments on commit b4730cd

Please sign in to comment.