Page MenuHomeSoftware Heritage

Add a test checking a check-deposit task is created.
ClosedPublic

Authored by vlorentz on May 4 2020, 1:46 PM.

Details

Summary

That code was not covered so far.

Diff Detail

Repository
rDDEP Push deposit
Branch
test-schedule
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 12240
Build 18561: Phabricator diff pipeline on jenkinsJenkins console · Jenkins
Build 18560: arc lint + arc unit

Unit TestsFailed

TimeTest
704 msJenkins > .tox.py3.lib.python3.7.site-packages.swh.deposit.tests.api.test_deposit_schedule::test_add_deposit_schedules_check
authenticated_client = <rest_framework.test.APIClient object at 0x7f7503a99828> deposit_collection = <DepositCollection: {'id': 66, 'name': 'test'}> sample_archive = {'data': b'PK\x03\x04\x14\x00\x00\x00\x00\x00\x07c\xa4P\xcba\xb4c\x14\x00\x00\x00\x14\x00\x00\x00\x05\x00\x00\x00file1...ytest-0/test_add_deposit_schedules_che0/tmpc_nrbm5h', 'length': 128, 'md5sum': '93e8d45d31f8ac648e0f437a396a20f0', ...}
381 msJenkins > .tox.py3.lib.python3.7.site-packages.swh.deposit.tests.api.test_converters::test_convert_status_detail
375 msJenkins > .tox.py3.lib.python3.7.site-packages.swh.deposit.tests.api.test_converters::test_convert_status_detail_2
375 msJenkins > .tox.py3.lib.python3.7.site-packages.swh.deposit.tests.api.test_converters::test_convert_status_detail_3
277 msJenkins > .tox.py3.lib.python3.7.site-packages.swh.deposit.tests.api.test_converters::test_convert_status_detail_edge_case
View Full Test Results (1 Failed · 131 Passed)

Event Timeline

Build has FAILED

Patch application report for D3115 (id=11069)

Rebasing onto e979f58ac8...

Current branch diff-target is up to date.
Changes applied before test
commit 08c13f19bcf69f73edc7d5f23495e2d272484838
Author: Valentin Lorentz <vlorentz@softwareheritage.org>
Date:   Mon May 4 13:46:46 2020 +0200

    Add a test checking a check-deposit task is created.
    
    That code was not covered so far.

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

Build has FAILED

Patch application report for D3115 (id=11070)

Rebasing onto e979f58ac8...

Current branch diff-target is up to date.
Changes applied before test
commit 7411e4fbd58404df8e1657f4196ec4d792c57947
Author: Valentin Lorentz <vlorentz@softwareheritage.org>
Date:   Mon May 4 13:46:46 2020 +0200

    Add a test checking a check-deposit task is created.
    
    That code was not covered so far.

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

Build has FAILED

Patch application report for D3115 (id=11071)

Rebasing onto e979f58ac8...

Current branch diff-target is up to date.
Changes applied before test
commit 25dd79a850353aee3e6a60e26fe6c155b2643991
Author: Valentin Lorentz <vlorentz@softwareheritage.org>
Date:   Mon May 4 13:46:46 2020 +0200

    Add a test checking a check-deposit task is created.
    
    That code was not covered so far.

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

fix test when run after other tests.

Build has FAILED

Patch application report for D3115 (id=11072)

Rebasing onto e979f58ac8...

Current branch diff-target is up to date.
Changes applied before test
commit 8359128fa1c30a5c68549060f1cac48aa9cf8c6b
Author: Valentin Lorentz <vlorentz@softwareheritage.org>
Date:   Mon May 4 13:46:46 2020 +0200

    Add a test checking a check-deposit task is created.
    
    That code was not covered so far.

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

Build is green

Patch application report for D3115 (id=11073)

Rebasing onto e979f58ac8...

Current branch diff-target is up to date.
Changes applied before test
commit cb6bc3aa57637779e6b2d1a7795ce63ccc664c6a
Author: Valentin Lorentz <vlorentz@softwareheritage.org>
Date:   Mon May 4 13:46:46 2020 +0200

    Add a test checking a check-deposit task is created.
    
    That code was not covered so far.

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

This revision is now accepted and ready to land.May 4 2020, 6:52 PM