Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/coreclr/scripts/exploratory.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Documentation of Exploratory tools Antigen and Fuzzlyn

[Antigen](https://github.com/kunalspathak/antigen) and [Fuzzlyn](https://github.com/jakobbotsch/Fuzzlyn) are exploratory fuzzing tools used to test the JIT compiler.
[Antigen](https://github.com/dotnet/jitutils/tree/main/src/Antigen) and [Fuzzlyn](https://github.com/jakobbotsch/Fuzzlyn) are exploratory fuzzing tools used to test the JIT compiler.

## Overview

Expand Down
21 changes: 16 additions & 5 deletions src/coreclr/scripts/fuzzer_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,14 +95,16 @@ def main(main_args):
helix_source_prefix = "official"
creator = ""

# (repo url, proj path, sparse path)
# sparse_path is needed when the tool lives in a subtree of a larger repo, to avoid pulling the entire repo.
build_repos = {
"Antigen": ("https://github.com/kunalspathak/Antigen.git", "Antigen/Antigen.csproj"),
"Fuzzlyn": ("https://github.com/jakobbotsch/Fuzzlyn.git", "Fuzzlyn/Fuzzlyn.csproj"),
"Antigen": ("https://github.com/dotnet/jitutils.git", "src/Antigen/Antigen/Antigen.csproj", "src/Antigen"),
"Fuzzlyn": ("https://github.com/jakobbotsch/Fuzzlyn.git", "Fuzzlyn/Fuzzlyn.csproj", None),
}

# tool_name is verifed in setup_args
assert coreclr_args.tool_name in build_repos
(repo_url, proj_path) = build_repos[coreclr_args.tool_name]
(repo_url, proj_path, sparse_path) = build_repos[coreclr_args.tool_name]

# create exploratory directory
print('Copying {} -> {}'.format(scripts_src_directory, coreroot_directory))
Expand All @@ -121,8 +123,17 @@ def main(main_args):
try:
with TempDir() as tool_code_directory:
# clone the tool
run_command(
["git", "clone", "--quiet", "--depth", "1", repo_url, tool_code_directory])
if sparse_path is None:
run_command(
["git", "clone", "--quiet", "--depth", "1", repo_url, tool_code_directory])
else:
# sparse checkout so we don't pull all of jitutils
run_command(
["git", "clone", "--quiet", "--no-checkout", "--filter=blob:none",
"--depth", "1", "--sparse", repo_url, tool_code_directory])
with ChangeDir(tool_code_directory):
run_command(["git", "sparse-checkout", "set", "--cone", sparse_path])
run_command(["git", "checkout"])
Comment on lines +134 to +136

publish_dir = path.join(tool_code_directory, "publish")

Expand Down
Loading