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

aiidateam / aiida-core / 7635 / 9
70%
develop: 70%

Build:
DEFAULT BRANCH: develop
Ran 27 Nov 2019 01:53PM UTC
Files 415
Run time 26s
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

27 Nov 2019 01:25PM UTC coverage: 70.795% (-0.09%) from 70.881%
AIIDA_TEST_BACKEND=sqlalchemy TEST_TYPE="tests"

push

travis-ci

web-flow
Improve the backup mechanism of the configuration file (#3581)

The `Config` class was creating a new backup each time `store` was
called, which also happens if nothing really changed to the configuration
content. With the recently introduced change that backup files are now
made unique through a timestamp, this led to a lot of backups being
created that were essentially clones.

To improve this, the `Config.store` method now only writes the file to
disk if the contents in memory have changed. This is done by comparing
the checksum of the on disk file and that memory contents as written to
a temporary file. If the check sums differ a backup is created of the
existing file and the new contents written to the temporary file are
copied to the actual configuration file location. This latter new
approach also guarantees that the backup is always created before
overwriting the original one.

23121 of 32659 relevant lines covered (70.8%)

0.71 hits per line

Source Files on job 7635.9 (AIIDA_TEST_BACKEND=sqlalchemy TEST_TYPE="tests")
  • Tree
  • List 0
  • Changed 26
  • Source Changed 2
  • Coverage Changed 26
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 775
  • Travis Job 7635.9
  • c88ac1ea on github
  • Prev Job for AIIDA_TEST_BACKEND=sqlalchemy TEST_TYPE="tests" on develop (#7630.4)
  • Next Job for AIIDA_TEST_BACKEND=sqlalchemy TEST_TYPE="tests" on develop (#7638.4)
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