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

aiidateam / aiida-core / 6697
70%

Build:
DEFAULT BRANCH: develop
Ran 09 Jul 2019 02:21PM UTC
Jobs 4
Files 403
Run time 12min
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
6697

push

travis-ci

web-flow
Make the `execmanager.upload_calculation` idempotent'ish (#3146)

The `upload_calculation` would cause an exception if called multiple
times for the same calculation, which can happen if the first time that
the runner was working on it got interrupted, for example due to a
daemon shutdown. The reason is that the second time around the adding of
the `remote_folder` data node will raise a uniqueness exception,
because there can only be one output with the same label.

Note that full idem-potency is impossible, but this change should make
the problem a lot less likely to occur. The idea is to delay the actual
attaching of the remote folder data node to the last moment possible.
This way, if the method is called again and the folder is already there,
we can be reasonably sure that the files were already retrieved
successfully and we simply return, leaving the call a no-op. This is
done in the beginning of the function to check if the output node already
exists using the `LinkManager.first()` call. If the node exists, the
upload function has apparently already been called before and reached
the end of the function where it adds the remote folder. This means all
the files were already successfully uploaded so we can safely skip it.

24182 of 32464 relevant lines covered (74.49%)

2.76 hits per line

Jobs
ID Job ID Ran Files Coverage
5 6697.5 (TEST_AIIDA_BACKEND=django TEST_TYPE="tests") 09 Jul 2019 02:21PM UTC 0
68.17
Travis Job 6697.5
6 6697.6 (TEST_AIIDA_BACKEND=django TEST_TYPE="tests") 09 Jul 2019 02:32PM UTC 0
68.11
Travis Job 6697.6
7 6697.7 (TEST_AIIDA_BACKEND=sqlalchemy TEST_TYPE="tests") 09 Jul 2019 02:32PM UTC 0
69.73
Travis Job 6697.7
8 6697.8 (TEST_AIIDA_BACKEND=sqlalchemy TEST_TYPE="tests") 09 Jul 2019 02:30PM UTC 0
69.68
Travis Job 6697.8
Source Files on build 6697
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #6697
  • b215ed5a on github
  • Prev Build on develop (#6694)
  • Next Build on develop (#6710)
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