def test_pipeline():
"""run full compression pipeline"""
# bare bone configuration, to allow testing the compression pipeline
# with minimum RAM requirements on trivial graphs
config = {"graph": {"compress": {"batch_size": 1000}}}
runner = CliRunner()
with TemporaryDirectory(suffix=".swh-graph-test") as tmpdir:
config_path = Path(tmpdir, "config.yml")
config_path.write_text(yaml.dump(config))
result = runner.invoke(
graph_cli_group,
[
"--config-file",
config_path,
"compress",
"--input-dataset",
DATA_DIR / "orc",
"--output-directory",
tmpdir,
"--graph-name",
"example",
],
)
> assert result.exit_code == 0, result
E AssertionError: <Result RuntimeError('Compression step BV returned non-zero exit code -9')>
E assert 1 == 0
E + where 1 = <Result RuntimeError('Compression step BV returned non-zero exit code -9')>.exit_code
.tox/py3/lib/python3.7/site-packages/swh/graph/tests/test_cli.py:56: AssertionError
TEST RESULT
TEST RESULT
- Run At
- Jan 3 2023, 11:17 AM