Page MenuHomeSoftware Heritage

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

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

Details

Summary

by moving import statements in functions.

Related to T2575.

Diff Detail

Repository
rDDEP Push deposit
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:09 PM

Build has FAILED

Patch application report for D3909 (id=13768)

Rebasing onto 7c5c84b595...

Current branch diff-target is up to date.
Changes applied before test
commit f8d9a8404572abed76bd8a1dcb7cb11a6c455d9f
Author: David Douard <david.douard@sdfa3.org>
Date:   Wed Sep 9 18:22:50 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/DDEP/job/tests-on-diff/62/
See console output for more information: https://jenkins.softwareheritage.org/job/DDEP/job/tests-on-diff/62/console

vlorentz accepted this revision.Thu, Sep 10, 4:41 PM
This revision is now accepted and ready to land.Thu, Sep 10, 4:41 PM
douardda updated this revision to Diff 13789.Thu, Sep 10, 5:10 PM

fix test_cli

broken by (moved) mocked objects.

Build is green

Patch application report for D3909 (id=13789)

Rebasing onto 7c5c84b595...

Current branch diff-target is up to date.
Changes applied before test
commit de0ab7f6f21fb26fb0e59c16eeb5117d22ada2fd
Author: David Douard <david.douard@sdfa3.org>
Date:   Wed Sep 9 18:22:50 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/DDEP/job/tests-on-diff/63/ for more details.

This revision was automatically updated to reflect the committed changes.