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

optimizely / javascript-sdk / 18291386101
78%

Build:
DEFAULT BRANCH: master
Ran 06 Oct 2025 06:59PM UTC
Jobs 4
Files 121
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

06 Oct 2025 06:57PM UTC coverage: 78.946% (-0.05%) from 78.991%
18291386101

push

github

web-flow
[FSSDK-11898] serialize concurrent cmab service calls (#1086)

The cmab service caches the results of a cmab prediction retrieve
from the server and returns it for subsequent call. This ensures
a consistent value is returned for getDecision() within the cache ttl.
However, when there is no cached value, if there is concurrent calls
to gertDecision() for same userId and ruleId combination, all of these
will cause a call to the server and may potentially return different
values.

The solution is to run concurrent calls for same userId and ruleId
combinations one after another. To achieve this, we put each (userId, ruleId)
combination in one of the predefined bucktes by hashing the
(userId, ruleId) combination and serialize all calls for that
particular hash % (num_buckets).

1457 of 2790 branches covered (52.22%)

Branch coverage included in aggregate %.

6 of 15 new or added lines in 2 files covered. (40.0%)

8832 of 10243 relevant lines covered (86.22%)

337.13 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
3
40.0
lib/utils/executor/serial_runner.ts
6
16.42
4.14% lib/core/decision_service/cmab/cmab_service.ts
Jobs
ID Job ID Ran Files Coverage
1 run-24 - 18291386101.1 06 Oct 2025 06:59PM UTC 121
78.95
GitHub Action Run
2 run-18 - 18291386101.2 06 Oct 2025 07:00PM UTC 121
78.95
GitHub Action Run
3 run-20 - 18291386101.3 06 Oct 2025 07:00PM UTC 121
78.95
GitHub Action Run
4 run-22 - 18291386101.4 06 Oct 2025 06:59PM UTC 121
78.95
GitHub Action Run
Source Files on build 18291386101
  • Tree
  • List 121
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • ccd6adb9 on github
  • Prev Build on master (#17560119927)
  • Next Build on master (#18315953326)
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

© 2025 Coveralls, Inc