Page MenuHomeSoftware Heritage

common/archive: Add lookup_origin_snapshots function
ClosedPublic

Authored by anlambert on Nov 25 2021, 4:01 PM.

Details

Summary

This wraps the call to origin_snapshot_get_all method from the
storage interface.

Related to T3631

Diff Detail

Repository
rDWAPPS Web applications
Branch
master
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 25175
Build 39334: Phabricator diff pipeline on jenkinsJenkins console · Jenkins
Build 39333: arc lint + arc unit

Event Timeline

Build is green

Patch application report for D6691 (id=24305)

Rebasing onto 20a9d18559...

Current branch diff-target is up to date.
Changes applied before test
commit c91fc8e02848ff3852d0bc76dfa0963157eff9d9
Author: Antoine Lambert <anlambert@softwareheritage.org>
Date:   Thu Nov 25 16:00:39 2021 +0100

    common/archive: Add lookup_origin_snapshots function
    
    This wraps the call to origin_snapshot_get_all method from the
    storage interface.
    
    Related to T3631

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

Where is it called from?

I will use it in a future diff to check if a snapshot is associated to an origin.

vlorentz added inline comments.
swh/web/common/archive.py
299
This revision is now accepted and ready to land.Nov 29 2021, 10:55 AM

Build is green

Patch application report for D6691 (id=24341)

Rebasing onto 806623eb53...

First, rewinding head to replay your work on top of it...
Applying: common/archive: Add lookup_origin_snapshots function
Changes applied before test
commit 26ae6c0ad2acfdbe214eae3b212b03640b5e5663
Author: Antoine Lambert <anlambert@softwareheritage.org>
Date:   Thu Nov 25 16:00:39 2021 +0100

    common/archive: Add lookup_origin_snapshots function
    
    This wraps the call to origin_snapshot_get_all method from the
    storage interface.
    
    Related to T3631

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

This revision was landed with ongoing or failed builds.Nov 29 2021, 11:48 AM
This revision was automatically updated to reflect the committed changes.

Build was aborted

Patch application report for D6691 (id=24343)

Rebasing onto 806623eb53...

Current branch diff-target is up to date.
Changes applied before test
commit d7f3a3a4f8ce9b55f1b06aeea92b883126a2915d
Author: Antoine Lambert <anlambert@softwareheritage.org>
Date:   Thu Nov 25 16:00:39 2021 +0100

    common/archive: Add lookup_origin_snapshots function
    
    This wraps the call to origin_snapshot_get_all method from the
    storage interface.
    
    Related to T3631

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