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

optimizely / javascript-sdk / 23779967436
78%

Build:
DEFAULT BRANCH: master
Ran 31 Mar 2026 04:08AM UTC
Jobs 4
Files 126
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

31 Mar 2026 04:07AM UTC coverage: 77.728% (-0.005%) from 77.733%
23779967436

push

github

web-flow
[AI-FSSDK] [FSSDK-12337] Add Feature Rollout support (#1140)

## Summary

Adds Feature Rollout support to the JavaScript SDK. Feature Rollouts are a new experiment rule type that combines Targeted Delivery simplicity with A/B test measurement capabilities. During project config parsing, the "everyone else" variation from the flag's rollout is injected into any experiment with type "feature_rollout", enabling correct evaluation without changes to decision logic.

## Changes

- Added optional `type` string field to the Experiment interface
- Added config parsing logic to inject the "everyone else" rollout variation into feature_rollout experiments
- Added traffic allocation entry (endOfRange=10000) for the injected variation
- Added `getEveryoneElseVariation` helper function to extract the last rollout rule's first variation
- Updated variation lookup maps (variationKeyMap, variationIdMap, variationVariableUsageMap) with injected variation
- Added 6 unit tests covering feature rollout injection, edge cases, and backward compatibility

---------

Co-authored-by: Raju Ahmed <raju.ahmed@optimizely.com>

1550 of 3032 branches covered (51.12%)

Branch coverage included in aggregate %.

17 of 22 new or added lines in 2 files covered. (77.27%)

9028 of 10577 relevant lines covered (85.36%)

344.66 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
5
83.22
-0.55% lib/project_config/project_config.ts
Jobs
ID Job ID Ran Files Coverage
1 run-24 - 23779967436.1 31 Mar 2026 04:08AM UTC 126
77.73
GitHub Action Run
2 run-20 - 23779967436.2 31 Mar 2026 04:08AM UTC 126
77.73
GitHub Action Run
3 run-22 - 23779967436.3 31 Mar 2026 04:08AM UTC 126
77.73
GitHub Action Run
4 run-18 - 23779967436.4 31 Mar 2026 04:09AM UTC 126
77.73
GitHub Action Run
Source Files on build 23779967436
  • Tree
  • List 126
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 41d25803 on github
  • Prev Build on master (#22974737194)
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