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

Check subfeature state before reading rollout data #2152

Merged
merged 3 commits into from
Feb 7, 2024

Conversation

dus7
Copy link
Contributor

@dus7 dus7 commented Feb 2, 2024

Task/Issue URL: https://app.asana.com/0/414235014887631/1206494747562366/f

Description:
This fix comprises of two parts:

Fix subfeature state resolution logic

Rollout state is checked before the global subfeature state, resulting in reporting invalid reason for it being disabled. This rearranges the rollout check so it’s performed as the last one.

Fix (flaky) test

Because the test subject was given a real randomizer, it produced mixed results - in 85% of chances leaning towards an invalid value. Passing mocked randomizer makes it stable.

Steps to test this PR:

  1. Ensure CI is green

Internal references:

Pull Request Review Checklist
Software Engineering Expectations
Technical Design Template
Pull Request Documentation

@dus7 dus7 self-assigned this Feb 2, 2024
@github-actions github-actions bot added the bot: not in app board Added by automation for pull requests with tasks not added to macOS App Board Asana project label Feb 2, 2024
@github-actions github-actions bot removed the bot: not in app board Added by automation for pull requests with tasks not added to macOS App Board Asana project label Feb 2, 2024
@dus7 dus7 marked this pull request as ready for review February 2, 2024 16:05
@github-actions github-actions bot added the bot: not in app board Added by automation for pull requests with tasks not added to macOS App Board Asana project label Feb 2, 2024
@dus7 dus7 removed the bot: not in app board Added by automation for pull requests with tasks not added to macOS App Board Asana project label Feb 2, 2024
@github-actions github-actions bot added the bot: not in app board Added by automation for pull requests with tasks not added to macOS App Board Asana project label Feb 2, 2024
@dus7 dus7 removed the bot: not in app board Added by automation for pull requests with tasks not added to macOS App Board Asana project label Feb 2, 2024
Copy link
Collaborator

@ayoy ayoy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@dus7 dus7 merged commit df23d49 into main Feb 7, 2024
17 checks passed
@dus7 dus7 deleted the mariusz/fix-rollout-check branch February 7, 2024 11:01
alessandroboron pushed a commit that referenced this pull request Feb 7, 2024
Task/Issue URL:
https://app.asana.com/0/414235014887631/1206535983618950/f

**Description**:
BSK pointed to private branch instead of released version. Caused by
#2152
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.

2 participants