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

aiidateam / aiida-core / 7635
70%

Build:
DEFAULT BRANCH: develop
Ran 27 Nov 2019 01:39PM UTC
Jobs 4
Files 1245
Run time 15min
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
7635

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.

72868 of 97981 relevant lines covered (74.37%)

2.82 hits per line

Jobs
ID Job ID Ran Files Coverage
3 7635.3 (AIIDA_TEST_BACKEND=django TEST_TYPE="tests") 27 Nov 2019 01:39PM UTC 0
70.04
Travis Job 7635.3
4 7635.4 (AIIDA_TEST_BACKEND=sqlalchemy TEST_TYPE="tests") 27 Nov 2019 01:40PM UTC 0
70.88
Travis Job 7635.4
8 7635.8 (AIIDA_TEST_BACKEND=django TEST_TYPE="tests") 27 Nov 2019 01:52PM UTC 0
69.96
Travis Job 7635.8
9 7635.9 (AIIDA_TEST_BACKEND=sqlalchemy TEST_TYPE="tests") 27 Nov 2019 01:53PM UTC 0
70.8
Travis Job 7635.9
Source Files on build 7635
  • Tree
  • List 0
  • Changed 29
  • Source Changed 2
  • Coverage Changed 29
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Travis Build #7635
  • c88ac1ea on github
  • Prev Build on develop (#7630)
  • Next Build on develop (#7638)
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