-
Notifications
You must be signed in to change notification settings - Fork 1
Add capability for gradual rollout of transition mode #5
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
Conversation
fce1213 to
9dee912
Compare
|
@cursor review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comment @cursor review or bugbot run to trigger another review on this PR
|
@cursor review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comment @cursor review or bugbot run to trigger another review on this PR
851944a to
e600a41
Compare
|
@cursor review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comment @cursor review or bugbot run to trigger another review on this PR
|
@cursor review |
Log domain, storage_mode, and rollout_bucket at each storage mode decision point to help observe the gradual rollout behavior.
|
@cursor review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅ Bugbot reviewed your changes and found no bugs!
Comment @cursor review or bugbot run to trigger another review on this PR
Replace brute-force test approach with targeted test cases that verify behavior at rollout boundaries (0%, 1%, 50%, 99%, 100%). Remove helper functions and large domain list that were only used for test generation.
This PR introduces a way to gradually roll out the new certificate storage format. Instead of switching every domain to the new system at once, we can now move them over in small groups to ensure everything is working correctly.
Percentage-Based Rollout
CERTMAGIC_STORAGE_MODE_ROLLOUT_PERCENTallows us to control the amount of domains which enter "transition" mode.10, only 10% of all domains fall into the "rollout buckets" and enter transition mode.Why this is helpful
Notes
Proof of work
ROLLOUT_PERCENT = 40
ROLLOUT_PERCENT = 0
ROLLOUT_PERCENT = 100