cli: Use memory storage as fallback when no configuration detected
It enables to quickly test loaders through the CLI: swh loader run load-<type> <url>
.
Also fix a debug log template.
Migrated from D8600 (view on Phabricator)
Merge request reports
Activity
Build has FAILED
Patch application report for D8600 (id=31053)
Rebasing onto 5482a48e...
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
Build has FAILED
Patch application report for D8600 (id=31060)
Rebasing onto dbf7f3dc...
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
Build is green
Patch application report for D8600 (id=31065)
Rebasing onto f6a3ed11...
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.
93 93 94 94 conf = ctx.obj.get("config", {}) 95 95 if "storage" not in conf: 96 raise ValueError("Missing storage configuration key") 96 logger.warning( 97 "No storage configuration detected, using an in-memory storage instead." 98 ) 99 conf["storage"] = {"cls": "memory"} Build is green
Patch application report for D8600 (id=31066)
Rebasing onto f6a3ed11...
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.