Page MenuHomeSoftware Heritage

indexer.rehash: Adapt content_get_metadata call to content_get
ClosedPublic

Authored by ardumont on Aug 7 2020, 12:53 AM.

Details

Summary

Related to T645

Test Plan

tox
(failing until storage release > 0.12)

Diff Detail

Repository
rDCIDX Metadata indexer
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

ardumont created this revision.Aug 7 2020, 12:53 AM

Build has FAILED

Patch application report for D3734 (id=13140)

Rebasing onto 26ea0e1f30...

Current branch diff-target is up to date.
Changes applied before test
commit 944a010ab6875516724e27a17681c4c521e7c8e5
Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org>
Date:   Fri Aug 7 00:53:40 2020 +0200

    indexer.rehash: Adapt content_get_metadata call to content_get
    
    Related to T645

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

vlorentz accepted this revision.Aug 7 2020, 9:35 AM
vlorentz added a subscriber: vlorentz.

Explain in the commit message it's because the endpoint was renamed

This revision is now accepted and ready to land.Aug 7 2020, 9:35 AM
ardumont updated this revision to Diff 13171.Aug 7 2020, 2:48 PM

Explain in commit message

ardumont updated this revision to Diff 13174.Aug 7 2020, 2:57 PM

Explain in the commit message

Build is green

Patch application report for D3734 (id=13174)

Rebasing onto 26ea0e1f30...

Current branch diff-target is up to date.
Changes applied before test
commit e45d76d12dd8d77aadae29d3eabf1e9251b32bc6
Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org>
Date:   Fri Aug 7 00:53:40 2020 +0200

    indexer.rehash: Adapt content_get_metadata call to content_get
    
    `content_get_metadata` got renamed to `content_get` and its type got improved.
    
    Related to T645

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

Build is green

Patch application report for D3734 (id=13171)

Could not rebase; Attempt merge onto 8029d68735...

Updating 8029d687..478a7acb
Fast-forward
 swh/web/common/service.py                  | 19 +++++++-------
 swh/web/tests/api/views/test_content.py    |  6 ++---
 swh/web/tests/browse/views/test_content.py |  9 +++----
 swh/web/tests/common/test_service.py       | 16 +++++++-----
 swh/web/tests/conftest.py                  | 21 +++++++++------
 swh/web/tests/data.py                      | 41 +++++++++++++++++-------------
 swh/web/tests/strategies.py                |  4 +--
 7 files changed, 63 insertions(+), 53 deletions(-)
Changes applied before test
commit 478a7acb46e0ae1e7199fcb58363f6e4020eb6c7
Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org>
Date:   Fri Aug 7 06:39:56 2020 +0200

    Adapt type and rename content_get_metadata calls to content_get
    
    Related to T645

commit 5fb903850c4d6c66925f805a6a541477f9949133
Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org>
Date:   Thu Aug 6 23:46:42 2020 +0200

    Rename content_get calls to content_get_data
    
    According to the latest change in storage

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