Page MenuHomeSoftware Heritage

deposit: Update deposit status when the load status is 'partial'
ClosedPublic

Authored by vlorentz on Feb 25 2021, 11:45 AM.

Details

Summary

Before this commit, load status 'success' and 'failed' updated the
deposit status accordingly, but other statuses were ignored.

Partially fixes T3070.

Diff Detail

Repository
rDLDBASE Generic VCS/Package Loader
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

Build has FAILED

Patch application report for D5139 (id=18378)

Rebasing onto 52626cbb04...

Current branch diff-target is up to date.
Changes applied before test
commit 9eb37bda3161705fb238227fed7e61a3eecb0426
Author: Valentin Lorentz <vlorentz@softwareheritage.org>
Date:   Thu Feb 25 11:44:24 2021 +0100

    deposit: Update deposit status when the load status is 'partial'
    
    Before this commit, load status 'success' and 'failed' updated the
    deposit status accordingly, but other statuses were ignored.

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

Harbormaster returned this revision to the author for changes because remote builds failed.Feb 25 2021, 11:47 AM
Harbormaster failed remote builds in B19456: Diff 18378!

Build is green

Patch application report for D5139 (id=18381)

Could not rebase; Attempt merge onto 52626cbb04...

Updating 52626cb..b5a7fee
Fast-forward
 swh/loader/package/deposit/loader.py             |   7 +-
 swh/loader/package/deposit/tests/test_deposit.py |  18 ++++
 swh/loader/package/loader.py                     | 128 ++++++++++++++---------
 3 files changed, 102 insertions(+), 51 deletions(-)
Changes applied before test
commit b5a7fee0725e6be6e62715980a78bce4c39c9419
Author: Valentin Lorentz <vlorentz@softwareheritage.org>
Date:   Thu Feb 25 11:44:24 2021 +0100

    deposit: Update deposit status when the load status is 'partial'
    
    Before this commit, load status 'success' and 'failed' updated the
    deposit status accordingly, but other statuses were ignored.

commit e80919ed8e7bf882746faddda19706139ffa161f
Author: Valentin Lorentz <vlorentz@softwareheritage.org>
Date:   Thu Feb 25 11:48:24 2021 +0100

    Make finalize_visit a method instead of nested function.
    
    I don't see the point of it being a nested function, it just makes load()
    larger.

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

ardumont added a subscriber: ardumont.

Awesome, thanks.

This revision is now accepted and ready to land.Feb 25 2021, 12:32 PM