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

Unleash / unleash-client-java / #1475
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 7s
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:45PM UTC coverage: 85.467% (+1.4%) from 84.086%
#1475

push

web-flow
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%)

1876 of 2195 relevant lines covered (85.47%)

0.85 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
1
87.5
-6.25% src/main/java/io/getunleash/event/UnleashSubscriber.java
1
75.86
-1.72% src/main/java/io/getunleash/repository/OkHttpFeatureFetcher.java
2
73.08
-7.69% src/main/java/io/getunleash/repository/FeatureBootstrapHandler.java
Jobs
ID Job ID Ran Files Coverage
1 #1475.1 27 Oct 2023 12:46PM UTC 101
85.47
Source Files on build #1475
  • Tree
  • List 101
  • Changed 12
  • Source Changed 8
  • Coverage Changed 10
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • 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