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

Unleash / unleash-client-java / #1474
85%
master: 89%

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 27 Oct 2023 12:46PM UTC
Jobs 1
Files 101
Run time 10s
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

27 Oct 2023 12:46PM UTC coverage: 83.978% (-1.5%) from 85.526%
#1474

push

GitHub
fix: change seed for variantutils to ensure fair distribution (#220)

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 9.0.0, since we're changing the signature of public methods.

14 of 14 new or added lines in 6 files covered. (100.0%)

1845 of 2197 relevant lines covered (83.98%)

0.84 hits per line

Jobs
ID Job ID Ran Files Coverage
1 #1474.1 27 Oct 2023 12:46PM UTC 0
83.98
Source Files on build #1474
Detailed source file information is not available for this build.
  • Back to Repo
  • 11a9625a on github
  • Prev Build on main
  • Next Build on main
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