Page MenuHomeSoftware Heritage

tests: Convert left-over dicts to model objects
ClosedPublic

Authored by ardumont on Jul 21 2020, 10:20 AM.

Diff Detail

Unit TestsFailed

TimeTest
12 msJenkins > .tox.py3.lib.python3.7.site-packages.swh.storage.tests.test_retry::test_retrying_proxy_swh_storage_object_metadata_add_failure
swh_storage_validate = <swh.storage.validate.ValidatingProxyStorage object at 0x7fc5f7f37978> sample_data_model = {'authority': [MetadataAuthority(type=<MetadataAuthorityType.DEPOSIT_CLIENT: 'deposit_client'>, url='http://hal.inria....11', length=7, status='visible', data=b'424242\n', ctime=datetime.datetime(2019, 12, 1, 0, 0, tzinfo=tzlocal()))], ...} mocker = <pytest_mock.plugin.MockFixture object at 0x7fc60a2a55f8>
6 msJenkins > .tox.py3.lib.python3.7.site-packages.swh.storage.fixer::swh.storage.fixer._fix_content
3 msJenkins > .tox.py3.lib.python3.7.site-packages.swh.storage.fixer::swh.storage.fixer._fix_origin
4 msJenkins > .tox.py3.lib.python3.7.site-packages.swh.storage.fixer::swh.storage.fixer._fix_origin_visit
6 msJenkins > .tox.py3.lib.python3.7.site-packages.swh.storage.fixer::swh.storage.fixer._fix_revision
View Full Test Results (1 Failed · 787 Passed · 17 Skipped)

Event Timeline

Add missing dicts (messed up my git manipulations ;)

Build has FAILED

Patch application report for D3580 (id=12596)

Rebasing onto 42ae56d985...

Current branch diff-target is up to date.
Changes applied before test
commit 21cb1b90470eb3898ca08263be04735629276c76
Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org>
Date:   Tue Jul 21 10:12:37 2020 +0200

    tests: Convert left-over dicts to model objects
    
    Related to T2494

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

...

build has failed

yeah... i know, fixing

Build has FAILED

Patch application report for D3580 (id=12598)

Rebasing onto 42ae56d985...

Current branch diff-target is up to date.
Changes applied before test
commit 5e8e1fc89e64a773857ae8df4ad0ab60e1e67676
Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org>
Date:   Tue Jul 21 10:12:37 2020 +0200

    tests: Convert left-over dicts to model objects
    
    Related to T2494

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

Fix swh_storage to swh_storage_validate (wrong git amend again)
This should fix the build

Build is green

Patch application report for D3580 (id=12600)

Rebasing onto 42ae56d985...

Current branch diff-target is up to date.
Changes applied before test
commit 96b2636703c9a0c8e272c8403f193baffe07d7e5
Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org>
Date:   Tue Jul 21 10:12:37 2020 +0200

    tests: Convert left-over dicts to model objects
    
    Related to T2494

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

This revision is now accepted and ready to land.Jul 21 2020, 11:11 AM