Page MenuHomeSoftware Heritage

Jenkins > .tox.py3.lib.python3.7.site-packages.swh.provenance.tests.test_origin_revision_layer::test_origin_revision_layer[remote-db-without-path-with-merges-visits-01]
Failed

TEST RESULT

Run At
Jul 28 2021, 11:38 AM
Details
provenance = <swh.provenance.provenance.Provenance object at 0x7f1c150817f0> swh_storage = <swh.storage.postgresql.storage.Storage object at 0x7f1c15081c18> archive = <swh.provenance.postgresql.archive.ArchivePostgreSQL object at 0x7f1c15227320> repo = 'with-merges', visit = 'visits-01' @pytest.mark.parametrize( "repo, visit", (("with-merges", "visits-01"),), ) def test_origin_revision_layer( provenance: ProvenanceInterface, swh_storage: Storage, archive: ArchiveInterface, repo: str, visit: str, ) -> None: # read data/README.md for more details on how these datasets are generated data = load_repo_data(repo) fill_storage(swh_storage, data) syntheticfile = get_datafile(f"origin-revision_{repo}_{visit}.txt") origins = [ {"url": status["origin"], "snap": status["snapshot"]} for status in data["origin_visit_status"] if status["snapshot"] is not None ] rows: Dict[str, Set[Any]] = { "origin": set(), "revision_in_origin": set(), "revision_before_revision": set(), "revision": set(), } > for synth_org in synthetic_origin_revision_result(syntheticfile): .tox/py3/lib/python3.7/site-packages/swh/provenance/tests/test_origin_revision_layer.py:145: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ filename = '/var/lib/jenkins/workspace/DPROV/tests-on-diff/.tox/py3/lib/python3.7/site-packages/swh/provenance/tests/data/origin-revision_with-merges_visits-01.txt' def synthetic_origin_revision_result(filename: str) -> Iterator[SynthOrigin]: """Generates dict representations of synthetic origin visits found in the synthetic file (from the data/ directory) given as argument of the generator. Generated SynthOrigin (typed dict) with the following elements: "sha1": (Sha1Git) sha1 of the origin, "url": (str) url of the origin, "snap": (Sha1Git) sha1 of the visit's snapshot, "O_R": (list) new O-R relations added by this origin visit "R_R": (list) new R-R relations added by this origin visit Each relation above is a SynthRelation typed dict with: "src": (Sha1Git) sha1 of the source of the relation "dst": (Sha1Git) sha1 of the destination of the relation """ > with open(get_datafile(filename), "r") as fobj: E FileNotFoundError: [Errno 2] No such file or directory: '/var/lib/jenkins/workspace/DPROV/tests-on-diff/.tox/py3/lib/python3.7/site-packages/swh/provenance/tests/data/origin-revision_with-merges_visits-01.txt' .tox/py3/lib/python3.7/site-packages/swh/provenance/tests/test_origin_revision_layer.py:55: FileNotFoundError