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

aiidateam / aiida-core / 7146
72%
develop: 70%

Build:
Build:
LAST BUILD BRANCH: fix_2233_node_to_new_backend
DEFAULT BRANCH: develop
Ran 02 Oct 2019 04:27PM UTC
Jobs 4
Files 1221
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
7146

Pull #3374

travis-ci

web-flow
Fix loading of database environment in ReadTheDocs environment

The environment of ReadTheDocs does not actually have a database and so
the typical configuration and profile loading had to be hotwired. A
special global flag `IN_RTD_DOC_MODE` in `aiida.manage.configuration`
would circumvent loading an actual configuration for a dummy one. Since
the actual database environment never had to be loaded, the fact that
this contained non-sensical database connection parameters was
irrelevant. However, recently the documentation was changed to use the
Sphinx extension to document the `CalcJob` class. This now requires
loading the `aiida.orm` module, which in turn requires the database
environment being loaded.

The fix is to actually load the database environment through the backend
manager, but without performing the schema check. This will work despite
the unusable database configuration because no actual connection is
established in this way.
Pull Request #3374: Fix loading of database environment in ReadTheDocs environment

5 of 5 new or added lines in 2 files covered. (100.0%)

71210 of 98207 relevant lines covered (72.51%)

2.75 hits per line

Jobs
ID Job ID Ran Files Coverage
5 7146.5 (TEST_AIIDA_BACKEND=django TEST_TYPE="tests") 02 Oct 2019 04:27PM UTC 0
68.39
Travis Job 7146.5
6 7146.6 (TEST_AIIDA_BACKEND=django TEST_TYPE="tests") 02 Oct 2019 04:32PM UTC 0
68.31
Travis Job 7146.6
7 7146.7 (TEST_AIIDA_BACKEND=sqlalchemy TEST_TYPE="tests") 02 Oct 2019 04:31PM UTC 0
69.35
Travis Job 7146.7
8 7146.8 (TEST_AIIDA_BACKEND=sqlalchemy TEST_TYPE="tests") 02 Oct 2019 04:35PM UTC 0
69.28
Travis Job 7146.8
Source Files on build 7146
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #7146
  • Pull Request #3374
  • PR Base - develop (#7130)
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