swh.graph.e2e_tests module#
Spawns a gRPC server on a newly compressed graph, and checks responses are as expected.
- swh.graph.e2e_tests.run_e2e_test(graph_name: str, in_dir: str | None, out_dir: str | None, test_flavor: str | None, target: str = 'release')[source]#
Empirically test the graph compression correctness.
Check for a specific SWHID in the compressed graph and do simple traversal requests to ensure the compression went well. This is a best effort procedure, as it is (generally) not possible to check for every single item in the graph.
- Parameters:
graph_name – graph base name, relative to in_dir
in_dir – input directory, where the uncompressed graph can be found
out_dir – output directory, where the compressed graph will be stored
test_flavor – which flavor of tests to run
target – Which Rust executables to use
- Raises:
Exception – GRPC server unexpectedly stopped