cli: speedup the `swh` cli command startup time
by moving import statements in functions and using conditional import of typechecking modules (especially StorageInterface which triggers the loading of 300+ modules).
Related to swh-environment#2575 (closed).
Migrated from D3907 (view on Phabricator)
Merge request reports
Activity
Build has FAILED
Patch application report for D3907 (id=13766)
Rebasing onto b24be0c7...
Current branch diff-target is up to date.
Changes applied before test
commit 8f15eb8ab23cfd82dd1763e0340946b69fbb1868 Author: David Douard <david.douard@sdfa3.org> Date: Thu Sep 10 11:25:08 2020 +0200 cli: speedup the `swh` cli command startup time by moving import statements in functions and using conditional import of typechecking modules (especially StorageInterface which triggers the loading of 300+ modules). Related to swh/devel/swh-environment#2575.
Link to build: https://jenkins.softwareheritage.org/job/DSCH/job/tests-on-diff/58/ See console output for more information: https://jenkins.softwareheritage.org/job/DSCH/job/tests-on-diff/58/console
Build has FAILED
Patch application report for D3907 (id=13779)
Rebasing onto b24be0c7...
Current branch diff-target is up to date.
Changes applied before test
commit 8f15eb8ab23cfd82dd1763e0340946b69fbb1868 Author: David Douard <david.douard@sdfa3.org> Date: Thu Sep 10 11:25:08 2020 +0200 cli: speedup the `swh` cli command startup time by moving import statements in functions and using conditional import of typechecking modules (especially StorageInterface which triggers the loading of 300+ modules). Related to swh/devel/swh-environment#2575.
Link to build: https://jenkins.softwareheritage.org/job/DSCH/job/tests-on-diff/59/ See console output for more information: https://jenkins.softwareheritage.org/job/DSCH/job/tests-on-diff/59/console
Build has FAILED
Patch application report for D3907 (id=13808)
Rebasing onto b24be0c7...
Current branch diff-target is up to date.
Changes applied before test
commit a5cfc1ca68f3408ec0f73a15dc5f1a95bc170060 Author: David Douard <david.douard@sdfa3.org> Date: Thu Sep 10 11:25:08 2020 +0200 cli: speedup the `swh` cli command startup time by moving import statements in functions and using conditional import of typechecking modules (especially StorageInterface which triggers the loading of 300+ modules). Related to swh/devel/swh-environment#2575.
Link to build: https://jenkins.softwareheritage.org/job/DSCH/job/tests-on-diff/60/ See console output for more information: https://jenkins.softwareheritage.org/job/DSCH/job/tests-on-diff/60/console
Some references in the commit message have been migrated:
- T2575 is now swh-environment#2575 (closed)
Build is green
Patch application report for D3907 (id=13812)
Rebasing onto b24be0c7...
Current branch diff-target is up to date.
Changes applied before test
commit f5c815435bf604e409a322dd543ef513c01afc13 Author: David Douard <david.douard@sdfa3.org> Date: Thu Sep 10 11:25:08 2020 +0200 cli: speedup the `swh` cli command startup time by moving import statements in functions and using conditional import of typechecking modules (especially StorageInterface which triggers the loading of 300+ modules). Related to swh/devel/swh-environment#2575.
See https://jenkins.softwareheritage.org/job/DSCH/job/tests-on-diff/61/ for more details.