Page MenuHomeSoftware Heritage

test_storage: stat_counters: Use data model object
ClosedPublic

Authored by ardumont on Jul 20 2020, 4:35 PM.

Diff Detail

Repository
rDSTO Storage manager
Branch
master
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 13801
Build 21150: Phabricator diff pipeline on jenkinsJenkins console · Jenkins
Build 21149: arc lint + arc unit

Unit TestsFailed

TimeTest
153 msJenkins > .tox.py3.lib.python3.7.site-packages.swh.storage.tests.test_api_client.TestStorage::test_stat_counters
self = <swh.storage.tests.test_api_client.TestStorage object at 0x7f1f743289b0> swh_storage = <swh.storage.validate.ValidatingProxyStorage object at 0x7f1f7432bcc0> sample_data_model = {'authority': [MetadataAuthority(type=<MetadataAuthorityType.DEPOSIT_CLIENT: 'deposit_client'>, url='http://hal.inria.... perms=<DentryPerms.directory: 16384>),), id=b'7z\xa5\xfc\xd9D\xfb\xab\xf5\x02\xdb\xfd\xa5\\\xd1M3\xc8\xc3\xc6')], ...}
1,019 msJenkins > .tox.py3.lib.python3.7.site-packages.swh.storage.tests.test_cassandra.TestCassandraStorage::test_stat_counters
self = <swh.storage.tests.test_cassandra.TestCassandraStorage object at 0x7f1dc7a67cc0> swh_storage = <swh.storage.validate.ValidatingProxyStorage object at 0x7f1dc7a677f0> sample_data_model = {'authority': [MetadataAuthority(type=<MetadataAuthorityType.DEPOSIT_CLIENT: 'deposit_client'>, url='http://hal.inria.... perms=<DentryPerms.directory: 16384>),), id=b'7z\xa5\xfc\xd9D\xfb\xab\xf5\x02\xdb\xfd\xa5\\\xd1M3\xc8\xc3\xc6')], ...}
277 msJenkins > .tox.py3.lib.python3.7.site-packages.swh.storage.tests.test_in_memory.TestStorage::test_stat_counters
self = <swh.storage.tests.test_storage.TestStorage object at 0x7f1d900bd940> swh_storage = <swh.storage.validate.ValidatingProxyStorage object at 0x7f1d900bd2e8> sample_data_model = {'authority': [MetadataAuthority(type=<MetadataAuthorityType.DEPOSIT_CLIENT: 'deposit_client'>, url='http://hal.inria.... perms=<DentryPerms.directory: 16384>),), id=b'7z\xa5\xfc\xd9D\xfb\xab\xf5\x02\xdb\xfd\xa5\\\xd1M3\xc8\xc3\xc6')], ...}
298 msJenkins > .tox.py3.lib.python3.7.site-packages.swh.storage.tests.test_storage.TestStorage::test_stat_counters
self = <swh.storage.tests.test_storage.TestStorage object at 0x7f1d99737630> swh_storage = <swh.storage.validate.ValidatingProxyStorage object at 0x7f1d99737940> sample_data_model = {'authority': [MetadataAuthority(type=<MetadataAuthorityType.DEPOSIT_CLIENT: 'deposit_client'>, url='http://hal.inria.... perms=<DentryPerms.directory: 16384>),), id=b'7z\xa5\xfc\xd9D\xfb\xab\xf5\x02\xdb\xfd\xa5\\\xd1M3\xc8\xc3\xc6')], ...}
7 msJenkins > .tox.py3.lib.python3.7.site-packages.swh.storage.fixer::swh.storage.fixer._fix_content
View Full Test Results (4 Failed · 784 Passed · 17 Skipped)

Event Timeline

Build has FAILED

Patch application report for D3572 (id=12576)

Could not rebase; Attempt merge onto 1c1bef91e1...

Updating 1c1bef91..1bf74dcd
Fast-forward
 swh/storage/tests/test_storage.py | 430 ++++++++++++++++++++------------------
 1 file changed, 232 insertions(+), 198 deletions(-)
Changes applied before test
commit 1bf74dcd90ef2b333af9b465de7a23f48c53993d
Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org>
Date:   Mon Jul 20 16:35:46 2020 +0200

    test_storage: stat_counters: Use data model object
    
    Related to T2494

commit cf80d3c29d7a7f2094570c14478fcc93dd995a12
Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org>
Date:   Mon Jul 20 15:58:35 2020 +0200

    test_storage: snapshot: Use data model object
    
    Related to T2494

commit 4f1017173b98cbc742a45d1b44ea5716dcab29a5
Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org>
Date:   Mon Jul 20 15:36:05 2020 +0200

    test_storage: origin_visit/origin_visit_status: Use data model object
    
    Related to T2494

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

Fix typo

swh/storage/tests/test_storage.py
3006

"bravo encore une fois" ;)

Build is green

Patch application report for D3572 (id=12579)

Could not rebase; Attempt merge onto 1c1bef91e1...

Updating 1c1bef91..64535049
Fast-forward
 swh/storage/tests/test_storage.py | 428 ++++++++++++++++++++------------------
 1 file changed, 231 insertions(+), 197 deletions(-)
Changes applied before test
commit 64535049b02de6ad0c43d9f55d1093d1a8a4d8e2
Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org>
Date:   Mon Jul 20 16:35:46 2020 +0200

    test_storage: stat_counters: Use data model object
    
    Related to T2494

commit cf80d3c29d7a7f2094570c14478fcc93dd995a12
Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org>
Date:   Mon Jul 20 15:58:35 2020 +0200

    test_storage: snapshot: Use data model object
    
    Related to T2494

commit 4f1017173b98cbc742a45d1b44ea5716dcab29a5
Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org>
Date:   Mon Jul 20 15:36:05 2020 +0200

    test_storage: origin_visit/origin_visit_status: Use data model object
    
    Related to T2494

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

This revision is now accepted and ready to land.Jul 20 2020, 6:07 PM