Skip to content

Commit 2472dd0

Browse files
arthaudfacebook-github-bot
authored andcommitted
Shard our taint output files for the distillery integration test
Summary: The taint-output.json file is getting quite large (2GB), let's shard it. Reviewed By: tianhan0 Differential Revision: D77724865 fbshipit-source-id: 63072e2c0a51c117991ef352bf9f0e52ebe0930e
1 parent 153dc5f commit 2472dd0

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

tools/pysa_integration_tests/runner_lib.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,7 @@ def run_pysa(
218218
passthrough_args: Optional[Sequence[str]] = None,
219219
working_directory: Optional[Path] = None,
220220
silent: bool = False,
221+
shard_taint_output: bool = False,
221222
error_help: Optional[str] = None,
222223
) -> str:
223224
"""Run pysa for the given test and produce a list of errors in JSON."""
@@ -270,6 +271,9 @@ def run_pysa(
270271
if maximum_tito_depth is not None:
271272
command.append(f"--maximum-tito-depth={maximum_tito_depth }")
272273

274+
if shard_taint_output:
275+
command.append("--output-format=sharded-json")
276+
273277
if passthrough_args is not None:
274278
command.extend(passthrough_args)
275279

0 commit comments

Comments
 (0)