Page MenuHomeSoftware Heritage

cli: speedup the `swh` cli command startup time
ClosedPublic

Authored by douardda on Thu, Sep 10, 4:14 PM.

Details

Summary

by moving import statements in functions.

Related to T2575.

Diff Detail

Repository
rDCIDX Metadata indexer
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

douardda created this revision.Thu, Sep 10, 4:14 PM

Build has FAILED

Patch application report for D3913 (id=13772)

Rebasing onto c231873d56...

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

    cli: speedup the `swh` cli command startup time
    
    by moving import statements in functions.
    
    Related to T2575.

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

vlorentz accepted this revision.Thu, Sep 10, 4:38 PM
This revision is now accepted and ready to land.Thu, Sep 10, 4:38 PM
douardda updated this revision to Diff 13839.Fri, Sep 11, 3:08 PM

fix test_cli

mock needed being updated

Build is green

Patch application report for D3913 (id=13839)

Rebasing onto c231873d56...

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

    cli: speedup the `swh` cli command startup time
    
    by moving import statements in functions.
    
    Related to T2575.

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

This revision was automatically updated to reflect the committed changes.