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

aiidateam / aiida_core / 5299 / 7
70%
develop: 74%

Build:
Build:
LAST BUILD BRANCH: fix_3032_doc_working_importexport
DEFAULT BRANCH: develop
Ran 22 Feb 2019 04:45PM UTC
Files 398
Run time 1min
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

22 Feb 2019 03:16PM UTC coverage: 63.365%. Remained the same
TEST_AIIDA_BACKEND=sqlalchemy TEST_TYPE="tests"

push

travis-ci

sphuber
Fixing bug related to deleted nodes in recent log migration (#2507)

In a recent database migration, `0024_dblog_update` for Django and `041a79fc615f`
for SqlAlchemy, the `DbLog` table was updated where the `objpk` was replaced by
a proper foreign key to the `DbNode` row to which the log belongs. This required
the deletion of logs that did not correspond to node entities, which were typically
legacy workflows. The migration accounted for this by detecting these logs, exporting
them to a file for safekeeping, before deleting them. However, the scenario did
not consider that for the logs that remained, the corresponding node may have
been deleted. Since the relationship was not formalized through a foreign key this
would not have cascaded onto the related log entries. The migration would then
fail as a result when trying to the set the `dbnode_id` foreign key to the `ojbpk`
in the case that the node row no longer existed.

In this commit, the migrations are updated to detect orphaned log messages and
write them to a file before deleting them, just as is done for logs that belong
to legacy workflows or unknown entities.

21674 of 34205 relevant lines covered (63.37%)

0.63 hits per line

Source Files on job 5299.7 (TEST_AIIDA_BACKEND=sqlalchemy TEST_TYPE="tests")
  • Tree
  • List 0
  • Changed 16
  • Source Changed 0
  • Coverage Changed 16
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 1112
  • Travis Job 5299.7
  • 7b1c90ad on github
  • Prev Job for TEST_AIIDA_BACKEND=sqlalchemy TEST_TYPE="tests" on provenance_redesign (#5290.7)
  • Next Job for TEST_AIIDA_BACKEND=sqlalchemy TEST_TYPE="tests" on provenance_redesign (#5303.7)
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