Page MenuHomeSoftware Heritage

tests: Refactor scenario about visits on repository with changes
ClosedPublic

Authored by ardumont on Jul 3 2020, 8:12 AM.

Details

Summary

For this, switch to using a pg storage to share the state amongst visit.

Related to T2462

Test Plan

tox

Diff Detail

Event Timeline

Build has FAILED

Patch application report for D3400 (id=12052)

Could not rebase; Attempt merge onto ee23fd7582...

Updating ee23fd7..cf77862
Fast-forward
 swh/loader/svn/tests/conftest.py    |  15 ++-
 swh/loader/svn/tests/test_loader.py | 233 ++++++++++++++++++++----------------
 2 files changed, 139 insertions(+), 109 deletions(-)
Changes applied before test
commit cf7786235e4aa152441b772820265347d1fd2ac4
Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org>
Date:   Fri Jul 3 08:12:06 2020 +0200

    tests: Refactor scenario about visits on repository with changes
    
    For this, switch to using a pg storage to share the state amongst visit.
    
    Related to T2462

commit a846f61d164da4ee826ae2fcc48f965b307e6f67
Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org>
Date:   Fri Jul 3 07:29:35 2020 +0200

    tests: Refactor scenario about visits on repository with no change
    
    Related to T2462

commit 5d770ec3934b84413b13b63a19443592832c8e0a
Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org>
Date:   Thu Jul 2 19:19:13 2020 +0200

    Start tests with pytest refactoring: Add scenario for 1 visit
    
    This starts to align the existing svn tests with the core/package ones. For
    now, utilities functions are in this repository close to the tests. They will
    most possibly be refactored out in swh-loader-core at some point.
    
    Related to T2462

Link to build: https://jenkins.softwareheritage.org/job/DLDSVN/job/tests-on-diff/35/
See console output for more information: https://jenkins.softwareheritage.org/job/DLDSVN/job/tests-on-diff/35/console

Add missing pytest-postgresql requirements

Build is green

Patch application report for D3400 (id=12053)

Could not rebase; Attempt merge onto ee23fd7582...

Updating ee23fd7..388f2e8
Fast-forward
 requirements-test.txt               |   1 +
 swh/loader/svn/tests/conftest.py    |  15 ++-
 swh/loader/svn/tests/test_loader.py | 233 ++++++++++++++++++++----------------
 3 files changed, 140 insertions(+), 109 deletions(-)
Changes applied before test
commit 388f2e854cb598169c70772b1d39aeb3cb172dce
Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org>
Date:   Fri Jul 3 08:12:06 2020 +0200

    tests: Refactor scenario about visits on repository with changes
    
    For this, switch to using a pg storage to share the state amongst visit.
    
    Related to T2462

commit a846f61d164da4ee826ae2fcc48f965b307e6f67
Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org>
Date:   Fri Jul 3 07:29:35 2020 +0200

    tests: Refactor scenario about visits on repository with no change
    
    Related to T2462

commit 5d770ec3934b84413b13b63a19443592832c8e0a
Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org>
Date:   Thu Jul 2 19:19:13 2020 +0200

    Start tests with pytest refactoring: Add scenario for 1 visit
    
    This starts to align the existing svn tests with the core/package ones. For
    now, utilities functions are in this repository close to the tests. They will
    most possibly be refactored out in swh-loader-core at some point.
    
    Related to T2462

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

Drop redundant scenario (already tested within that scope)

Build is green

Patch application report for D3400 (id=12058)

Could not rebase; Attempt merge onto ee23fd7582...

Updating ee23fd7..464d36c
Fast-forward
 requirements-test.txt               |   1 +
 swh/loader/svn/tests/conftest.py    |  15 +-
 swh/loader/svn/tests/test_loader.py | 308 +++++++++++++++---------------------
 3 files changed, 140 insertions(+), 184 deletions(-)
Changes applied before test
commit 464d36c1a10cbd4e145186a7ad795596c3aa278f
Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org>
Date:   Fri Jul 3 08:12:06 2020 +0200

    tests: Refactor scenario about visits on repository with changes
    
    For this, switch to using a pg storage to share the state amongst visit.
    
    Related to T2462

commit a846f61d164da4ee826ae2fcc48f965b307e6f67
Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org>
Date:   Fri Jul 3 07:29:35 2020 +0200

    tests: Refactor scenario about visits on repository with no change
    
    Related to T2462

commit 5d770ec3934b84413b13b63a19443592832c8e0a
Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org>
Date:   Thu Jul 2 19:19:13 2020 +0200

    Start tests with pytest refactoring: Add scenario for 1 visit
    
    This starts to align the existing svn tests with the core/package ones. For
    now, utilities functions are in this repository close to the tests. They will
    most possibly be refactored out in swh-loader-core at some point.
    
    Related to T2462

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

This revision is now accepted and ready to land.Jul 3 2020, 10:08 AM

Build is green

Patch application report for D3400 (id=12067)

Rebasing onto 58bb1e4685...

Current branch diff-target is up to date.
Changes applied before test
commit 7225c537e3322923ef521564ef5b6787bd2a440c
Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org>
Date:   Fri Jul 3 08:12:06 2020 +0200

    tests: Refactor scenario about visits on repository with changes
    
    For this, switch to using a pg storage to share the state amongst visit.
    
    Related to T2462

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