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

optimizely / go-sdk / 24145719844
92%

Build:
DEFAULT BRANCH: master
Ran 08 Apr 2026 04:11PM UTC
Jobs 1
Files 84
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

08 Apr 2026 04:09PM UTC coverage: 91.89% (+0.06%) from 91.828%
24145719844

push

github

web-flow
[AI-FSSDK] [FSSDK-12418] Remove experiment type validation from config parsing (#443)

* [AI-FSSDK] [FSSDK-12418] Remove experiment type validation from config parsing

* Fix Feature Rollout injection not updating feature.FeatureExperiments

The injectFeatureRolloutVariations function was modifying experiments in
experimentIDMap but not updating the copies in feature.FeatureExperiments.
This caused the decision service to use experiments without the injected
"everyone else" variation, leading to incorrect bucketing and fallthrough
to rollout rules instead of returning the FR experiment decision.

When MapFeatures runs, it creates feature.FeatureExperiments by copying
experiments from experimentIDMap. Since Go copies struct values, later
modifications to experimentIDMap experiments (like appending to
TrafficAllocation slice) don't affect the copies in FeatureExperiments.

The fix updates both experimentIDMap AND feature.FeatureExperiments to
ensure the decision service sees the complete injected variations.

This fixes FSC test failures where users were getting rule_key from
rollout rules (e.g., "ee_rule_1002") instead of from FR experiments
(e.g., "fr_zero_exp").

* Add test to verify injection updates both experimentIDMap and FeatureExperiments

This test ensures that the Feature Rollout injection properly updates
both the experimentIDMap and the feature's FeatureExperiments slice,
preventing regression of the bug where only experimentIDMap was updated.

---------

Co-authored-by: Matjaz Pirnovar <Mat001@users.noreply.github.com>

11 of 11 new or added lines in 1 file covered. (100.0%)

5699 of 6202 relevant lines covered (91.89%)

6967.01 hits per line

Jobs
ID Job ID Ran Files Coverage
1 24145719844.1 08 Apr 2026 04:11PM UTC 84
91.89
GitHub Action Run
Source Files on build 24145719844
  • Tree
  • List 84
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 724f2ef7 on github
  • Prev Build on master (#23754709490)
  • Next Build on master (#24850128801)
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