Related to T2462
Details
- Reviewers
vlorentz - Group Reviewers
Reviewers - Maniphest Tasks
- T2462: svn loader: Refactor tests using pytest fixtures
- Commits
- rDLDSVNfca9e8b2af6e: tests: Refactor start-from-scratch use case
tox
Diff Detail
- Repository
- rDLDSVN Subversion (SVN) loader
- Branch
- master
- Lint
No Linters Available - Unit
No Unit Test Coverage - Build Status
Buildable 13276 Build 20279: Phabricator diff pipeline on jenkins Jenkins console · Jenkins Build 20278: arc lint + arc unit
Event Timeline
Build is green
Patch application report for D3401 (id=12054)
Could not rebase; Attempt merge onto ee23fd7582...
Updating ee23fd7..4098bf5 Fast-forward requirements-test.txt | 1 + swh/loader/svn/tests/conftest.py | 15 +- swh/loader/svn/tests/test_loader.py | 302 +++++++++++++++++------------------- 3 files changed, 153 insertions(+), 165 deletions(-)
Changes applied before test
commit 4098bf5105853e23053412e2937e0ad20a169e0a Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org> Date: Fri Jul 3 09:13:43 2020 +0200 tests: Refactor start-from-scratch use case Related to T2462 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/37/ for more details.
Build is green
Patch application report for D3401 (id=12055)
Could not rebase; Attempt merge onto ee23fd7582...
Updating ee23fd7..23c854a Fast-forward requirements-test.txt | 1 + swh/loader/svn/tests/conftest.py | 15 +- swh/loader/svn/tests/test_loader.py | 304 +++++++++++++++++------------------- 3 files changed, 155 insertions(+), 165 deletions(-)
Changes applied before test
commit 23c854aa547d59867f5c34e788a44b1b3114821f Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org> Date: Fri Jul 3 09:13:43 2020 +0200 tests: Refactor start-from-scratch use case Related to T2462 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/38/ for more details.
Build is green
Patch application report for D3401 (id=12057)
Could not rebase; Attempt merge onto ee23fd7582...
Updating ee23fd7..036d3fd Fast-forward requirements-test.txt | 1 + swh/loader/svn/tests/conftest.py | 15 +- swh/loader/svn/tests/test_loader.py | 377 ++++++++++++++---------------------- 3 files changed, 154 insertions(+), 239 deletions(-)
Changes applied before test
commit 036d3fdcd16101fa7a983c1f46a6fbf571daf8b7 Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org> Date: Fri Jul 3 09:13:43 2020 +0200 tests: Refactor start-from-scratch use case Related to T2462 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/40/ for more details.
Here too, you're removing assertions and not adding equivalents
I initially checked the internal revisions, directories (even contents in some)
and all that because it was an early loader (I did not trust entirely what it
did at the time).
Now i'm trusting the merkle property. Thus, only checking the top-level
snapshot only as we do in other loaders which sounds enough to me.
I can add the get_stats part in there to check the origin-visit is 1 visit more
from the previous visit. And check the snapshot number is still 1 but that's
not much. Would that be what you miss?
Also the coverage did not move (iirc).
Build is green
Patch application report for D3401 (id=12069)
Rebasing onto 7225c537e3...
First, rewinding head to replay your work on top of it... Fast-forwarded diff-target to base-revision-49-D3401.
Changes applied before test
See https://jenkins.softwareheritage.org/job/DLDSVN/job/tests-on-diff/49/ for more details.
Build is green
Patch application report for D3401 (id=12070)
Rebasing onto 7225c537e3...
Current branch diff-target is up to date.
Changes applied before test
commit fca9e8b2af6ebf7409c61426f634b8f266c0fe2b Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org> Date: Fri Jul 3 09:13:43 2020 +0200 tests: Refactor start-from-scratch use case Related to T2462
See https://jenkins.softwareheritage.org/job/DLDSVN/job/tests-on-diff/50/ for more details.