Page MenuHomeSoftware Heritage

Use absolute import
ClosedPublic

Authored by douardda on Sep 10 2020, 4:19 PM.

Details

Summary

cli: speedup the swh cli command startup time

by moving import statements in functions and stop importing
swh.objstorage.factory.* in swh.objstorage.

Warning: this later breaks a few dependencies that had not updated
the way they import get_objstorage.

Related to T2575.

Diff Detail

Repository
rDOBJS Object storage
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

Build is green

Patch application report for D3917 (id=13776)

Rebasing onto d36bf1631f...

Current branch diff-target is up to date.
Changes applied before test
commit f793e63dca7437f35ae9cff40112262d28c6dd82
Author: David Douard <david.douard@sdfa3.org>
Date:   Thu Sep 10 09:38:41 2020 +0200

    cli: speedup the `swh` cli command startup time
    
    by moving import statements in functions and stop importing
    swh.objstorage.factory.* in swh.objstorage.
    
    Warning: this later breaks a few dependencies that had not updated
    the way they import get_objstorage.
    
    Related to T2575.

commit f6e9b0149a3513148970bafd985b83534496d3cb
Author: David Douard <david.douard@sdfa3.org>
Date:   Wed Sep 9 18:57:52 2020 +0200

    Use absolute import

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

This revision is now accepted and ready to land.Sep 10 2020, 4:44 PM