Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: use a fixed hash seed for variant hashing #179

Merged
merged 3 commits into from Nov 3, 2023
Merged

Conversation

sighphyre
Copy link
Member

This forces the variant distribution to use a seeded hash, rather than falling back to the default of 0.

This fixes an issue in the variant distribution when gradual rollout is at play, since that narrows down the potential buckets before variants kick in. Previously, we'd see very non random distributions of variants in those cases. This change allows for a more statistically sane distribution

This PR hasn't updated the client-spec, since this requires dependent features to get merged first in order for the specs to pass. Manually validated by removing the dependent features test case and running the rest of the tests. Because of this, this PR won't pass until that feature gets merged or we backport a version for the client spec

@sighphyre sighphyre merged commit f511462 into main Nov 3, 2023
11 checks passed
@sighphyre sighphyre deleted the fix/variant-hashing branch November 3, 2023 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

2 participants