• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

aiidateam / aiida_core / 5267 / 6
70%
develop: 74%

Build:
Build:
LAST BUILD BRANCH: fix_3032_doc_working_importexport
DEFAULT BRANCH: develop
Ran 22 Feb 2019 08:17AM UTC
Files 398
Run time 54s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

22 Feb 2019 07:55AM UTC coverage: 63.545% (-0.1%) from 63.651%
TEST_AIIDA_BACKEND=django TEST_TYPE="tests"

push

travis-ci

web-flow
Restore the import speed of main package to keep `verdi` snappy (#2513)

* Make the `DBLogHandler` log configuration lazy upon loading database env

The logging needs to be configured upon loading the `aiida` package, but
we want to prevent the database environment or the `aiida.orm` module
from being loaded as this will slow down the initialization. This is
especially detrimental to the performance of `verdi` which everytime it
is loaded, i.e. also each time tab-completion is triggered, the whole
package needs to be loaded. To prevent this, the implementation of the
`DBLogHandler` was already moved from `aiida.common` to `aiida.orm.utils`
but since it is still being configured in `aiida.common.log`, the
logging module will import the `aiida.orm` module. To fix this, we
remove the handler from the default logging configuration and reinsert
it dynamically when the database environment is loaded, without which
the handler would be non-functional anyway.

* Copy implementation `plumpy` language tools instead of importing

The `aiida.common.lang` module will be imported when loading `verdi` and
importing the `protected` and `override` decorators from the `plumpy`
library were causing the whole library to be imported, slowing
everything down. By copying the implementation, the time for executing
`verdi` is roughly reduced by 25%.

21733 of 34201 relevant lines covered (63.54%)

0.64 hits per line

Source Files on job 5267.6 (TEST_AIIDA_BACKEND=django TEST_TYPE="tests")
  • Tree
  • List 0
  • Changed 3
  • Source Changed 3
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 1088
  • Travis Job 5267.6
  • d76d07b4 on github
  • Prev Job for TEST_AIIDA_BACKEND=django TEST_TYPE="tests" on provenance_redesign (#5227.5)
  • Next Job for TEST_AIIDA_BACKEND=django TEST_TYPE="tests" on provenance_redesign (#5275.5)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc