debian-mirror-gitlab/.gitlab/issue_templates/Experiment Rollout.md

121 lines
6 KiB
Markdown
Raw Normal View History

2022-03-02 08:16:31 +05:30
<!-- Title suggestion: [Experiment Rollout] feature-flag-name - description of experiment -->
2021-04-17 20:07:23 +05:30
2021-11-11 11:23:49 +05:30
## Summary
2021-04-17 20:07:23 +05:30
2021-11-11 11:23:49 +05:30
This issue tracks the rollout and status of an experiment through to removal.
2021-04-17 20:07:23 +05:30
2022-03-02 08:16:31 +05:30
1. Feature flag name: `<feature-flag-name>`
2021-11-11 11:23:49 +05:30
1. Epic or issue link: `<issue or epic link>`
2021-04-17 20:07:23 +05:30
2021-11-11 11:23:49 +05:30
This is an experiment rollout issue
using the scoped [experiment label](https://about.gitlab.com/handbook/engineering/development/growth/experimentation/#experiment-rollout-issue).
2021-04-17 20:07:23 +05:30
As well as defining the experiment rollout and cleanup, this issue incorporates the relevant
[`Feature Flag Roll Out`](https://gitlab.com/gitlab-org/gitlab/-/edit/master/.gitlab/issue_templates/Feature%20Flag%20Roll%20Out.md) steps.
## Owners
- Team: `group::TEAM_NAME`
- Most appropriate slack channel to reach out to: `#g_TEAM_NAME`
- Best individual to reach out to: NAME
2021-11-11 11:23:49 +05:30
- Product manager (PM): NAME
### Stakeholders
<!--
Are there any other stages or teams involved that need to be kept in the loop?
- PM: Name
- Group: `group::TEAM_NAME`
- The Support Team
- The Delivery Team
-->
2021-04-17 20:07:23 +05:30
## Expectations
### What are we expecting to happen?
2021-11-11 11:23:49 +05:30
<!-- Describe the expected outcome when rolling out this experiment. -->
2021-04-17 20:07:23 +05:30
### What might happen if this goes wrong?
2021-11-11 11:23:49 +05:30
<!-- Any MRs that need to be rolled back? Communication that needs to happen? What are some things you can think of that could go wrong - data loss or broken pages? -->
2021-04-17 20:07:23 +05:30
### What can we monitor to detect problems with this?
2021-11-11 11:23:49 +05:30
<!-- Which dashboards from https://dashboards.gitlab.net are most relevant? -->
## Tracked data
2021-04-17 20:07:23 +05:30
<!-- brief description or link to issue or Sisense dashboard -->
2021-11-11 11:23:49 +05:30
Note: you can use the [CXL calculator](https://cxl.com/ab-test-calculator/) to determine if your experiment has reached significance. The calculator includes an estimate for how much longer an experiment must run for before reaching significance.
2021-04-17 20:07:23 +05:30
2021-11-11 11:23:49 +05:30
## Rollout plan
<!-- Add an overview and method for modifying the feature flag -->
2021-04-17 20:07:23 +05:30
2021-11-11 11:23:49 +05:30
- Runtime in days, or until we expect to reach statistical significance: `30`
- We will roll this out behind a feature flag and expose this to `<rollout-percentage>`% of actors to start then ramp it up from there.
2021-04-17 20:07:23 +05:30
2022-03-02 08:16:31 +05:30
`/chatops run feature set <feature-flag-name> <rollout-percentage> --actors`
2021-04-17 20:07:23 +05:30
2021-11-11 11:23:49 +05:30
### Status
2021-04-17 20:07:23 +05:30
2021-11-11 11:23:49 +05:30
#### Preferred workflow
2021-04-17 20:07:23 +05:30
2021-11-11 11:23:49 +05:30
The issue should be assigned to the Product manager (PM) or Engineer (Eng) as follows:
1. PM determines and manages the status of the experiment (assign this issue to the PM)
1. PM asks for initial rollout on production, or changes to the status (assign to an Eng)
1. Eng changes the status using `chatops` (reassign to the PM)
1. When concluded, PM updates the 'Roll Out Steps' and adds a milestone (assigns to an Eng)
The current status and history can be viewed using the:
- [API](https://gitlab.com/api/v4/experiments) (GitLab team members)
- [Feature flag log](https://gitlab.com/gitlab-com/gl-infra/feature-flag-log/-/issues?scope=all&utf8=%E2%9C%93&state=all) (GitLab team members)
- [Experiment rollout board](https://gitlab.com/groups/gitlab-org/-/boards/1352542)
In this rollout issue, ensure the scoped `experiment::` label is kept accurate.
2021-04-17 20:07:23 +05:30
### Experiment Results
<!-- update when experiment in/validated, set the scoped `~experiment::` status accordingly -->
## Roll Out Steps
2022-01-26 12:08:38 +05:30
- [ ] [Confirm that end-to-end tests pass with the feature flag enabled](https://docs.gitlab.com/ee/development/testing_guide/end_to_end/feature_flags.html#confirming-that-end-to-end-tests-pass-with-a-feature-flag-enabled). If there are failing tests, contact the relevant [stable counterpart in the Quality department](https://about.gitlab.com/handbook/engineering/quality/#individual-contributors) to collaborate in updating the tests or confirming that the failing tests are not caused by the changes behind the enabled feature flag.
2022-03-02 08:16:31 +05:30
- [ ] Enable on staging (`/chatops run feature set <feature-flag-name> true --staging`)
2021-04-17 20:07:23 +05:30
- [ ] Test on staging
- [ ] Ensure that documentation has been updated
2022-03-02 08:16:31 +05:30
- [ ] Enable on GitLab.com for individual groups/projects listed above and verify behaviour (`/chatops run feature set --project=gitlab-org/gitlab <feature-flag-name> true`)
2021-04-17 20:07:23 +05:30
- [ ] Coordinate a time to enable the flag with the SRE oncall and release managers
- In `#production` mention `@sre-oncall` and `@release-managers`. Once an SRE on call and Release Manager on call confirm, you can proceed with the rollout
- [ ] Announce on the issue an estimated time this will be enabled on GitLab.com
2022-03-02 08:16:31 +05:30
- [ ] Enable on GitLab.com by running chatops command in `#production` (`/chatops run feature set <feature-flag-name> true`)
2021-04-17 20:07:23 +05:30
- [ ] Cross post chatops Slack command to `#support_gitlab-com` ([more guidance when this is necessary in the dev docs](https://docs.gitlab.com/ee/development/feature_flags/controls.html#where-to-run-commands)) and in your team channel
- [ ] Announce on the issue that the flag has been enabled
- [ ] Remove experiment code and feature flag and add changelog entry - a separate [cleanup issue](https://gitlab.com/gitlab-org/gitlab/-/issues/new?issuable_template=Experiment%20Successful%20Cleanup) might be required
- [ ] After the flag removal is deployed, [clean up the feature flag](https://docs.gitlab.com/ee/development/feature_flags/controls.html#cleaning-up) by running chatops command in `#production` channel
2021-04-29 21:17:54 +05:30
- [ ] Assign to the product manager to update the [knowledge base](https://about.gitlab.com/direction/growth/#growth-insights-knowledge-base) (if applicable)
2021-04-17 20:07:23 +05:30
## Rollback Steps
- [ ] This feature can be disabled by running the following Chatops command:
```
2022-03-02 08:16:31 +05:30
/chatops run feature set <feature-flag-name> false
2021-04-17 20:07:23 +05:30
```
2021-12-11 22:18:48 +05:30
## Experiment Successful Cleanup Concerns
_Items to be considered if candidate experience is to become a permanent part of GitLab_
<!--
Add a list of items raised during MR review or otherwise that may need further thought/consideration
before becoming permanent parts of the product.
Example: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/70451#note_727246104
-->
2021-11-11 11:23:49 +05:30
/label ~"feature flag" ~"devops::growth" ~"growth experiment" ~"experiment-rollout" ~Engineering ~"workflow::scheduling" ~"experiment::pending"
/milestone %"Next 1-3 releases"