Page MenuHomeSoftware Heritage

migrate_extrinsic_metadata: allow deposits with 'id' missing from their metadata.
ClosedPublic

Authored by vlorentz on Oct 22 2020, 12:32 PM.

Diff Detail

Repository
rDSTO Storage manager
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

Build is green

Patch application report for D4325 (id=15306)

Could not rebase; Attempt merge onto 2bfd9febd0...

Updating 2bfd9feb..73dc5e32
Fast-forward
 swh/storage/migrate_extrinsic_metadata.py          | 27 +++++++++++++++++++---
 .../tests/migrate_extrinsic_metadata/test_pypi.py  |  7 ++++++
 2 files changed, 31 insertions(+), 3 deletions(-)
Changes applied before test
commit 73dc5e32ed0d55dcbf6f681b719892507038d9de
Author: Valentin Lorentz <vlorentz@softwareheritage.org>
Date:   Thu Oct 22 12:28:18 2020 +0200

    migrate_extrinsic_metadata: allow deposits with 'id' missing from their metadata.

commit c48306642bf1b170d091e2d8d95bee5cb2168b2f
Author: Valentin Lorentz <vlorentz@softwareheritage.org>
Date:   Thu Oct 22 12:26:33 2020 +0200

    migrate_extrinsic_metadata: add support for guessing the origin of more PyPI packages from filenames.
    
    It now supports all pypi revisions with an id starting with an hex digit
    from 0 to 5.

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

This revision is now accepted and ready to land.Oct 22 2020, 1:02 PM