Page MenuHomeSoftware Heritage

loader: Update swh.storage.origin_get call to latest api change
ClosedPublic

Authored by ardumont on Jul 24 2020, 8:26 AM.

Details

Summary

This also adds loader git test scenarios about the loader's base_url being different than the repo url so the modified code is covered (it was not before).

Related to T645

Test Plan

tox

Diff Detail

Repository
rDLDG Git loader
Branch
master
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 13929
Build 21371: Phabricator diff pipeline on jenkinsJenkins console · Jenkins
Build 21370: arc lint + arc unit

Event Timeline

Build is green

Patch application report for D3608 (id=12703)

Rebasing onto f96ec77193...

Current branch diff-target is up to date.
Changes applied before test
commit b6ad860b61c76fea1d286cd5fd6c0b30c3cbf384
Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org>
Date:   Fri Jul 24 08:19:15 2020 +0200

    loader: Update swh.storage.origin_get call to latest api change
    
    Related to T645

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

Add new scenario so the modified code is covered.
Note that the build should fail (need a new storage release)

Build has FAILED

Patch application report for D3608 (id=12704)

Rebasing onto f96ec77193...

Current branch diff-target is up to date.
Changes applied before test
commit f2c45a3f6e9b309937e533d28bb4998c8623cd88
Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org>
Date:   Fri Jul 24 08:19:15 2020 +0200

    loader: Update swh.storage.origin_get call to latest api change
    
    Related to T645

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

ardumont edited the test plan for this revision. (Show Details)

Add missing f prefix on f-string (not that it matters much ;)

Build has FAILED

Patch application report for D3608 (id=12705)

Rebasing onto f96ec77193...

Current branch diff-target is up to date.
Changes applied before test
commit 66e1040ed6be40041e1ceb6b3445aa06748720c3
Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org>
Date:   Fri Jul 24 08:19:15 2020 +0200

    loader: Update swh.storage.origin_get call to latest api change
    
    Related to T645

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

This revision is now accepted and ready to land.Jul 24 2020, 9:16 AM

Why do you need to bump the storage version for this change?

Why do you need to bump the storage version for this change?

because the origin-get currently does not take plain iterable of urls as arguments.
that's D3605 ;)

oh, right, I forgot we didn't already support it

Why do you need to bump the storage version for this change?

because the origin-get currently does not take plain iterable of urls as arguments.
that's D3605 ;)

ah, i think you already know that...

I like to make explicit the required change that goes along the code thus the bump alongside the code change.

Build has FAILED

Patch application report for D3608 (id=12729)

Rebasing onto 9b251471c9...

Current branch diff-target is up to date.
Changes applied before test
commit 68e30d5cc6368b8d9c7f6e8e59cad0c8335d304b
Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org>
Date:   Fri Jul 24 08:19:15 2020 +0200

    loader: Update swh.storage.origin_get call to latest api change
    
    Related to T645

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

Build is green

Patch application report for D3608 (id=12729)

Rebasing onto 9b251471c9...

Current branch diff-target is up to date.
Changes applied before test
commit 68e30d5cc6368b8d9c7f6e8e59cad0c8335d304b
Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org>
Date:   Fri Jul 24 08:19:15 2020 +0200

    loader: Update swh.storage.origin_get call to latest api change
    
    Related to T645

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