Page MenuHomeSoftware Heritage

Mark origin layer tests as "origin_layer"
ClosedPublic

Authored by douardda on Sep 30 2022, 6:39 PM.

Details

Summary

so that one can easily run tests for the revision or origin
layer only.

Depends on D8591

Diff Detail

Repository
rDPROV Provenance database
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

Build is green

Patch application report for D8592 (id=31022)

Could not rebase; Attempt merge onto a2bcc8eace...

Updating a2bcc8e..4f68403
Fast-forward
 requirements-swh.txt                               |   4 +-
 swh/provenance/__init__.py                         |   3 +
 swh/provenance/postgresql/provenance.py            |   2 +
 swh/provenance/sql/30-schema.sql                   |  16 -
 swh/provenance/swhgraph/archive.py                 |   2 +-
 swh/provenance/tests/conftest.py                   | 100 ++-
 swh/provenance/tests/test_cli.py                   |   1 +
 swh/provenance/tests/test_history_graph.py         |   1 +
 swh/provenance/tests/test_journal_client.py        |   9 +-
 swh/provenance/tests/test_origin_iterator.py       |   1 +
 swh/provenance/tests/test_origin_revision_layer.py |   1 +
 swh/provenance/tests/test_provenance_storage.py    | 686 +++++++++++----------
 .../tests/test_provenance_storage_rabbitmq.py      |  38 ++
 ...st_provenance_storage_with_path_denormalized.py |  19 +
 .../tests/test_provenance_storage_without_path.py  |  19 +
 ...provenance_storage_without_path_denormalized.py |  19 +
 16 files changed, 522 insertions(+), 399 deletions(-)
 create mode 100644 swh/provenance/tests/test_provenance_storage_rabbitmq.py
 create mode 100644 swh/provenance/tests/test_provenance_storage_with_path_denormalized.py
 create mode 100644 swh/provenance/tests/test_provenance_storage_without_path.py
 create mode 100644 swh/provenance/tests/test_provenance_storage_without_path_denormalized.py
Changes applied before test
commit 4f68403fc102adfbb93ff7ab1952e94a75afd116
Author: David Douard <david.douard@sdfa3.org>
Date:   Wed Sep 21 15:26:46 2022 +0200

    Mark origin layer tests as "origin_layer"
    
    so that one can easily run tests for the revision or origin
    layer only.

commit 4148bf1a6685028f725d589cac456aa2e5cd346f
Author: David Douard <david.douard@sdfa3.org>
Date:   Wed Sep 21 11:48:12 2022 +0200

    Adapt postgresql backend to swh.core.db >= 2.0

commit ffb7812a088598e3ddaeddc7f9625ce3e6e80846
Author: David Douard <david.douard@sdfa3.org>
Date:   Wed Sep 21 10:58:29 2022 +0200

    Upgrade to swh.graph 2.0

See https://jenkins.softwareheritage.org/job/DPROV/job/tests-on-diff/665/ for more details.

This revision is now accepted and ready to land.Sep 30 2022, 7:06 PM

Build is green

Patch application report for D8592 (id=31036)

Could not rebase; Attempt merge onto a2bcc8eace...

Updating a2bcc8e..9a63bd8
Fast-forward
 requirements-swh.txt                               |   4 +-
 swh/provenance/__init__.py                         |   3 +
 swh/provenance/postgresql/provenance.py            |   2 +
 swh/provenance/sql/30-schema.sql                   |  16 -
 swh/provenance/swhgraph/archive.py                 |   2 +-
 swh/provenance/tests/conftest.py                   | 100 ++-
 swh/provenance/tests/test_cli.py                   |   1 +
 swh/provenance/tests/test_history_graph.py         |   1 +
 swh/provenance/tests/test_journal_client.py        |   9 +-
 swh/provenance/tests/test_origin_iterator.py       |   1 +
 swh/provenance/tests/test_origin_revision_layer.py |   1 +
 swh/provenance/tests/test_provenance_storage.py    | 686 +++++++++++----------
 .../tests/test_provenance_storage_rabbitmq.py      |  38 ++
 ...st_provenance_storage_with_path_denormalized.py |  19 +
 .../tests/test_provenance_storage_without_path.py  |  19 +
 ...provenance_storage_without_path_denormalized.py |  19 +
 16 files changed, 522 insertions(+), 399 deletions(-)
 create mode 100644 swh/provenance/tests/test_provenance_storage_rabbitmq.py
 create mode 100644 swh/provenance/tests/test_provenance_storage_with_path_denormalized.py
 create mode 100644 swh/provenance/tests/test_provenance_storage_without_path.py
 create mode 100644 swh/provenance/tests/test_provenance_storage_without_path_denormalized.py
Changes applied before test
commit 9a63bd8164afcf1d4f733736c60e6cc0012f65bb
Author: David Douard <david.douard@sdfa3.org>
Date:   Wed Sep 21 15:26:46 2022 +0200

    Mark origin layer tests as "origin_layer"
    
    so that one can easily run tests for the revision or origin
    layer only.

commit 67cd713b6aca7065e43efe68c66a3bae90fa99db
Author: David Douard <david.douard@sdfa3.org>
Date:   Wed Sep 21 11:48:12 2022 +0200

    Adapt postgresql backend to swh.core.db >= 2.0

commit bb0574c29f91471d39ab5f3d72959c6174c52738
Author: David Douard <david.douard@sdfa3.org>
Date:   Wed Sep 21 10:58:29 2022 +0200

    Upgrade to swh.graph 2.0

See https://jenkins.softwareheritage.org/job/DPROV/job/tests-on-diff/669/ for more details.