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

Unleash / unleash-client-ruby / 6694329825
95%
master: 91%

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 30 Oct 2023 02:40PM UTC
Jobs 1
Files 58
Run time 8s
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

30 Oct 2023 02:33PM UTC coverage: 97.186% (-0.003%) from 97.189%
6694329825

push

github

web-flow
fix: change seed for variantutils to ensure fair distribution (#160)

* fix: change seed for variantutils to ensure fair distribution

# What
Uses a new seed for ensuring a fair distribution for variants.

# Background
After a customer reported that variant distribution seemed skewed we performed some testing and found that since we use the same hash string for both gradual rollout and variant allocation we'd reduced the set of groups we could get to whatever percentage our gradual rollout was set.

# Example
Take a gradualRollout of 10%, this will select normalized hashes between 1 and 10, when we then again hash the same string that gave us between 1 and 10, but with modulo 1000 for variants, this will only give us 100 possible groups, instead of the expected 1000.

# Fix
Force the normalization to accept a seed, and make sure to use a new seed when normalizing the variant distribution hash.

# Worth noting
This will require release 5.0.0, since we are changing how hashing works.

21 of 21 new or added lines in 8 files covered. (100.0%)

2521 of 2594 relevant lines covered (97.19%)

533.4 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run- - 6694329825.1 30 Oct 2023 02:41PM UTC 58
97.19
GitHub Action Run
Source Files on build 6694329825
  • Tree
  • List 58
  • Changed 26
  • Source Changed 0
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 96630355 on github
  • Prev Build on main (#6571551169)
  • Next Build on main (#6694841691)
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