Skip to content

Commit

Permalink
introspector: use introspector to get harness/source pairs by default (
Browse files Browse the repository at this point in the history
…#611)

Ref: #525

---------

Signed-off-by: David Korczynski <[email protected]>
  • Loading branch information
DavidKorczynski authored Sep 14, 2024
1 parent 9291a8f commit 6fc5806
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit 6fc5806

Please sign in to comment.