Page MenuHomeSoftware Heritage

cli: Use memory storage as fallback when no configuration detected
ClosedPublic

Authored by anlambert on Oct 3 2022, 2:01 PM.

Details

Summary

It enables to quickly test loaders through the CLI: swh loader run load-<type> <url>.

Also fix a debug log template.

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 D8600 (id=31053)

Rebasing onto 5482a48ea1...

Current branch diff-target is up to date.
Changes applied before test
commit 784e02295e56d7751a407400bb288f02e902163b
Author: Antoine Lambert <anlambert@softwareheritage.org>
Date:   Mon Oct 3 13:58:38 2022 +0200

    cli: Use memory storage as fallback when no configuration detected
    
    Also fix a debug log template.

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

Harbormaster returned this revision to the author for changes because remote builds failed.Oct 3 2022, 2:03 PM
Harbormaster failed remote builds in B32023: Diff 31053!

Build has FAILED

Patch application report for D8600 (id=31060)

Rebasing onto dbf7f3dca0...

Current branch diff-target is up to date.
Changes applied before test
commit 86255d6bba3e5ae4b8bbd312e8187664be41d628
Author: Antoine Lambert <anlambert@softwareheritage.org>
Date:   Mon Oct 3 13:58:38 2022 +0200

    cli: Use memory storage as fallback when no configuration detected
    
    Also fix a debug log template.

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

Harbormaster returned this revision to the author for changes because remote builds failed.Oct 3 2022, 2:53 PM
Harbormaster failed remote builds in B32030: Diff 31060!

Rebase and remove no longer needed test

Build is green

Patch application report for D8600 (id=31065)

Rebasing onto f6a3ed11b4...

Current branch diff-target is up to date.
Changes applied before test
commit a23f9a3f5ad398fa32aaf4e3ce5ba7b2b13b22df
Author: Antoine Lambert <anlambert@softwareheritage.org>
Date:   Mon Oct 3 13:58:38 2022 +0200

    cli: Use memory storage as fallback when no configuration detected
    
    Also fix a debug log template.

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

vlorentz added a subscriber: vlorentz.
vlorentz added inline comments.
swh/loader/cli.py
96–100

could you make it a warning?

This revision is now accepted and ready to land.Oct 3 2022, 3:30 PM

Use warning log level instead of info.

Build is green

Patch application report for D8600 (id=31066)

Rebasing onto f6a3ed11b4...

Current branch diff-target is up to date.
Changes applied before test
commit 13e9bf4d698d638ddd5e6107830c6dc4d2878f05
Author: Antoine Lambert <anlambert@softwareheritage.org>
Date:   Mon Oct 3 13:58:38 2022 +0200

    cli: Use memory storage as fallback when no configuration detected
    
    Also fix a debug log template.

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