Skip to content

Test that force_disable overrides hostname-hash experiment rollout. - #638

Draft
copybara-service[bot] wants to merge 1 commit into
masterfrom
test_974520832
Draft

Test that force_disable overrides hostname-hash experiment rollout.#638
copybara-service[bot] wants to merge 1 commit into
masterfrom
test_974520832

Conversation

@copybara-service

Copy link
Copy Markdown

Test that force_disable overrides hostname-hash experiment rollout.

SelectExperiments applies force_disable after rollout enablement, so a
force_disabled experiment stays disabled even when the host falls within its
rollout bucket. No production experiment is simultaneously force_disabled and
in rollout, so this ordering was previously untested. Add a configs
parameter to SelectExperiments
so a test can inject a synthetic experiment that is both force_disabled and at
100% rollout and assert it remains disabled. A positive control confirms
rollout still enables the same experiment once force_disable is cleared.

SelectExperiments applies force_disable after rollout enablement, so a
force_disabled experiment stays disabled even when the host falls within its
rollout bucket.  No production experiment is simultaneously force_disabled and
in rollout, so this ordering was previously untested.  Add a `configs`
parameter to SelectExperiments
so a test can inject a synthetic experiment that is both force_disabled and at
100% rollout and assert it remains disabled.  A positive control confirms
rollout still enables the same experiment once force_disable is cleared.

PiperOrigin-RevId: 974520832
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant