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

raiden-network / raiden / 4364
36%

Build:
DEFAULT BRANCH: master
Ran 05 Apr 2018 01:19PM UTC
Jobs 6
Files 74
Run time 21min
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
4364

push

travis-ci

LefterisJP
Fix race condition for event handling

The `RaidenAPI` calls `RaidenService.poll_blockchain_events` explicitely to
ensure that a transaction recently mined has all the events processed.
This is to update the node state and ensure the user of `RaidenAPI` will
see the expected effects applied.

The problem is that the `AlarmTask` can race with the transaction polling,
and *if* the event handler context-switches the effects may not be
applied once the `RaidenAPI` call returns. The introduced lock will
serialize all calls to `poll_blockchain_events`, forcing the `RaidenAPI`
to wait until the `AlarmTask` finish processing the events.

Note: This change will break if the events are *not* processed in the
`AlarmTask` greenlet.

837 of 2038 branches covered (41.07%)

Branch coverage included in aggregate %.

4660 of 7158 relevant lines covered (65.1%)

3.22 hits per line

Jobs
ID Job ID Ran Files Coverage
1 4364.1 (TEST_TYPE='unit') 05 Apr 2018 01:19PM UTC 0
60.0
Travis Job 4364.1
2 4364.2 (TEST_TYPE='integration' BLOCKCHAIN_TYPE='--blockchain-type=geth --blockchain-cache') 05 Apr 2018 01:40PM UTC 0
65.55
Travis Job 4364.2
3 4364.3 (TEST_TYPE='smart_contracts') 05 Apr 2018 01:23PM UTC 0
34.84
Travis Job 4364.3
4 4364.4 (TEST_TYPE='property') 05 Apr 2018 01:25PM UTC 0
24.36
Travis Job 4364.4
5 4364.5 (TEST_TYPE='long_running' BLOCKCHAIN_TYPE='--blockchain-type=geth --blockchain-cache') 05 Apr 2018 01:27PM UTC 0
39.2
Travis Job 4364.5
6 4364.6 (TEST_TYPE='api' BLOCKCHAIN_TYPE='--blockchain-type=geth --blockchain-cache') 05 Apr 2018 01:27PM UTC 0
64.68
Travis Job 4364.6
Source Files on build 4364
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #4364
  • 3686b327 on github
  • Prev Build on master (#4363)
  • Next Build on master (#4377)
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