Skip to content

Commit

Permalink
Add option to processing to skip traces
Browse files Browse the repository at this point in the history
Reviewed By: alexblanck, compositor

Differential Revision: D50604545

fbshipit-source-id: d4430841a14706c13ea0ff2518a2c351f574143f
  • Loading branch information
Manuel Fahndrich authored and facebook-github-bot committed Oct 31, 2023
1 parent b1a795f commit 1402375
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sapp/pipeline/model_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ def __init__(
record_meta_run_issue_instances: bool = False,
meta_run_identifier: Optional[int] = None,
archive_issue_instances_of_new_issues: bool = True,
skip_traces: bool = False,
) -> None:
super().__init__()
self.summary: Summary
Expand All @@ -67,6 +68,7 @@ def __init__(
self.archive_issue_instances_of_new_issues = (
archive_issue_instances_of_new_issues
)
self.skip_traces: bool = skip_traces

def run(self, input: DictEntries, summary: Summary) -> Tuple[TraceGraph, Summary]:
self.summary = summary
Expand Down Expand Up @@ -338,6 +340,8 @@ def _generate_transitive_trace_frames(
Returns the TraceFrames associated this starting frame (generated or found existing)
"""
returned_frames = []
if self.skip_traces:
return returned_frames

kind = start_frame.kind
queue = [(start_frame, outgoing_leaf_ids)]
Expand Down

0 comments on commit 1402375

Please sign in to comment.