Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

introspector: use introspector to get harness/source pairs by default #611

Merged
merged 3 commits into from
Sep 14, 2024
Merged
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
4 changes: 2 additions & 2 deletions data_prep/introspector.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
TIMEOUT = 45
MAX_RETRY = 5

USE_FI_TO_GET_TARGETS = bool(int(os.getenv('OSS_FI_TO_GET_TARGETS', '0')))
USE_FI_TO_GET_TARGETS = bool(int(os.getenv('OSS_FI_TO_GET_TARGETS', '1')))

# By default exclude static functions when identifying fuzz target candidates
# to generate benchmarks.
Expand Down Expand Up @@ -734,7 +734,7 @@ def _get_harness_intrinsics(
filenames,
language='') -> tuple[Optional[str], Optional[str], Dict[str, str]]:
"""Returns a harness source path and executable from a given project."""
if USE_FI_TO_GET_TARGETS and language != 'jvm':
if USE_FI_TO_GET_TARGETS and language != 'jvm' and language != 'python':
harnesses = query_introspector_for_harness_intrinsics(project)
harness_dict = harnesses[0]
harness = harness_dict['source']
Expand Down