|
Ran
|
Jobs
5
|
Files
135
|
Run time
5min
|
Badge
README BADGES
|
travis-ci
<a href="https://github.com/adhearsion/punchblock/commit/<a class=hub.com/adhearsion/punchblock/commit/44f590cd2f35eb51ceba26df9724b56846559940">44f590cd2<a href="https://github.com/adhearsion/punchblock/commit/44f590cd2f35eb51ceba26df9724b56846559940">">Avoid races in processing Asterisk 13 bridges On Asterisk 13, BridgeEnter and BridgeLeave events do not include the opposite-channel ID, leaving us to track this using the sequential events. When processed by the Call object, these must call back out to the translator to store global state to correlate. In previous releases of Punchblock, this has encountered a race condition because the translator is accessed via its ActorProxy, raising the possibility of the second event being processed before the first is done. A previous attempt to fix this was https://github.com/adhearsion/punchblock/commit/</a><a class="double-link" href="https://github.com/adhearsion/punchblock/commit/<a class="double-link" href="https://github.com/adhearsion/punchblock/commit/14f6e760acbd8aac11f1410665bb5f6046db351a">14f6e760a</a>">14f6e760a</a><a href="https://github.com/adhearsion/punchblock/commit/44f590cd2f35eb51ceba26df9724b56846559940">, released in 2.7.4, but this resulted in a suspected memory leak and crashing under heavy load in one example application. This first attempt was rolled back and the release yanked. This second attempt eliminates the issue by other means, that is moving the correlation up into the translator itself, passing the correlated data down to the call itself.
28 of 28 new or added lines in 2 files covered. (100.0%)
12404 of 12517 relevant lines covered (99.1%)
394.85 hits per line
| Lines | Coverage | ∆ | File |
|---|---|---|---|
| 2 |
100.0 |
lib/punchblock/translator/asterisk.rb |
| ID | Job ID | Ran | Files | Coverage | |
|---|---|---|---|---|---|
| 1 | 1140.1 (1.9.3) | 0 |
99.09 |
Travis Job 1140.1 | |
| 2 | 1140.2 (2.0.0) | 0 |
99.09 |
Travis Job 1140.2 | |
| 3 | 1140.3 (2.1.0) | 0 |
99.09 |
Travis Job 1140.3 | |
| 4 | 1140.4 (jruby) | 0 |
97.5 |
Travis Job 1140.4 | |
| 6 | 1140.6 (ruby-head) | 0 |
99.09 |
Travis Job 1140.6 |