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

aiidateam / aiida_core / 5267
70%
develop: 74%

Build:
Build:
LAST BUILD BRANCH: fix_3032_doc_working_importexport
DEFAULT BRANCH: develop
Ran 22 Feb 2019 08:09AM UTC
Jobs 4
Files 398
Run time 10min
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

pending completion
5267

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%.

23773 of 34201 relevant lines covered (69.51%)

2.54 hits per line

Jobs
ID Job ID Ran Files Coverage
5 5267.5 (TEST_AIIDA_BACKEND=django TEST_TYPE="tests") 22 Feb 2019 08:09AM UTC 0
63.61
Travis Job 5267.5
6 5267.6 (TEST_AIIDA_BACKEND=django TEST_TYPE="tests") 22 Feb 2019 08:17AM UTC 0
63.54
Travis Job 5267.6
7 5267.7 (TEST_AIIDA_BACKEND=sqlalchemy TEST_TYPE="tests") 22 Feb 2019 08:18AM UTC 0
63.37
Travis Job 5267.7
8 5267.8 (TEST_AIIDA_BACKEND=sqlalchemy TEST_TYPE="tests") 22 Feb 2019 08:19AM UTC 0
63.31
Travis Job 5267.8
Source Files on build 5267
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #5267
  • d76d07b4 on github
  • Prev Build on provenance_redesign (#5227)
  • Next Build on provenance_redesign (#5275)
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