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

aiidateam / aiida-core
72%
develop: 70%

Build:
Build:
LAST BUILD BRANCH: fix_2233_node_to_new_backend
DEFAULT BRANCH: develop
Repo Added 08 Jul 2019 03:18PM UTC
Files 140
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

LAST BUILD ON BRANCH fix_3371_readthedocs
branch: fix_3371_readthedocs
CHANGE BRANCH
x
Reset
  • fix_3371_readthedocs
  • add-code-of-conduct-1
  • aiida_tutorial_05_2018
  • develop
  • fix_2233_node_to_new_backend
  • fix_2384_rest_api
  • fix_3152_restapi_test_random_fail
  • fix_3578_readthedocs
  • fix_for_old_wf_in_sqla_issue_883
  • fix_rest_api_identifier_utilities
  • master
  • merge_master
  • release/0.12.5
  • release/1.0.0
  • release_v0.12.4
  • release_v0.12.5
  • support/0.12.x
  • support/1.0.x
  • v0.12.4
  • v0.12.5
  • v1.0.0
  • v1.0.0b5
  • v1.0.0b6
  • v1.0.1
  • workflows

pending completion
7150

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

69647 of 96897 relevant lines covered (71.88%)

2.75 hits per line

Relevant lines Covered
Build:
Build:
96897 RELEVANT LINES 69647 COVERED LINES
2.75 HITS PER LINE
Source Files on fix_3371_readthedocs
  • List 0
  • Changed 28
  • Source Changed 2
  • Coverage Changed 28
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
7150 fix_3371_readthedocs 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 `a... Pull #3374 02 Oct 2019 09:14PM UTC web-flow travis-ci pending completion  
7149 fix_3371_readthedocs 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 `a... push 02 Oct 2019 09:01PM UTC sphuber travis-ci pending completion  
7146 fix_3371_readthedocs 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 `a... Pull #3374 02 Oct 2019 04:27PM UTC web-flow travis-ci pending completion  
7145 fix_3371_readthedocs 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 `a... push 02 Oct 2019 04:05PM UTC sphuber travis-ci pending completion  
7135 fix_3371_readthedocs test RTD push 02 Oct 2019 02:34PM UTC sphuber travis-ci pending completion  
7132 fix_3371_readthedocs test RTD push 02 Oct 2019 02:00PM UTC sphuber travis-ci pending completion  
7131 fix_3371_readthedocs test RTD push 02 Oct 2019 01:36PM UTC sphuber travis-ci pending completion  
See All Builds (827)
  • Repo on GitHub
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

© 2025 Coveralls, Inc