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

aiidateam / aiida_core / 5299
70%
develop: 74%

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

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.

23773 of 34203 relevant lines covered (69.51%)

2.54 hits per line

Jobs
ID Job ID Ran Files Coverage
5 5299.5 (TEST_AIIDA_BACKEND=django TEST_TYPE="tests") 22 Feb 2019 04:44PM UTC 0
63.61
Travis Job 5299.5
6 5299.6 (TEST_AIIDA_BACKEND=django TEST_TYPE="tests") 22 Feb 2019 04:46PM UTC 0
63.54
Travis Job 5299.6
7 5299.7 (TEST_AIIDA_BACKEND=sqlalchemy TEST_TYPE="tests") 22 Feb 2019 04:45PM UTC 0
63.37
Travis Job 5299.7
8 5299.8 (TEST_AIIDA_BACKEND=sqlalchemy TEST_TYPE="tests") 22 Feb 2019 04:53PM UTC 0
63.3
Travis Job 5299.8
Source Files on build 5299
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #5299
  • 7b1c90ad on github
  • Prev Build on provenance_redesign (#5290)
  • Next Build on provenance_redesign (#5303)
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