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

optimizely / swift-sdk / 24039129239
94%

Build:
DEFAULT BRANCH: master
Ran 06 Apr 2026 04:11PM UTC
Jobs 1
Files 77
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 Apr 2026 03:59PM UTC coverage: 93.766% (+0.03%) from 93.734%
24039129239

push

github

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

* [FSSDK-12337] Add Feature Rollout support

Add Feature Rollout support to the Swift SDK. Feature Rollouts are a new
experiment rule type that combines Targeted Delivery simplicity with A/B
test measurement capabilities.

- Add optional `type` field (ExperimentType enum) to the Experiment model
  with valid values: ab, mab, cmab, td, fr
- Add config parsing logic to inject the "everyone else" rollout variation
  into feature rollout experiments (type == .featureRollout)
- Add traffic allocation entry (endOfRange=10000) for the injected variation
- Add `getEveryoneElseVariation` helper to extract the last rollout rule's
  first variation
- Rebuild experiment lookup maps after injection so decisions use updated data
- Add 10 unit tests covering injection, edge cases, and backward compatibility

* Remove redaundant rebuild lookup table

* fix rollout id map lookup logic

* chore: trigger CI

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* [FSSDK-12337] Handle unknown experiment types gracefully in datafile parsing

Unknown experiment type values (e.g., "new_unknown_type") no longer crash
datafile parsing. They are silently dropped to nil, aligning with other SDKs
for forward compatibility.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: muzahidul-opti <muzahidul.islam@Optimizely.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

1128 of 1203 relevant lines covered (93.77%)

8814.88 hits per line

Coverage Regressions

Lines Coverage ∆ File
1
97.8
0.07% Sources/Data Model/ProjectConfig.swift
Jobs
ID Job ID Ran Files Coverage
1 24039129239.1 06 Apr 2026 04:11PM UTC 77
93.77
GitHub Action Run
Source Files on build 24039129239
  • Tree
  • List 77
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 26759a5d on github
  • Prev Build on master (#21293166650)
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