26 lines
1.6 KiB
Markdown
26 lines
1.6 KiB
Markdown
|
---
|
||
|
stage: Growth
|
||
|
group: Adoption
|
||
|
info: To determine the technical writer assigned to the Stage/Group associated with this page, see https://about.gitlab.com/handbook/engineering/ux/technical-writing/#assignments
|
||
|
---
|
||
|
|
||
|
# Experiment code reviews
|
||
|
|
||
|
Experiments' code quality can fail our standards for several reasons. These
|
||
|
reasons can include not being added to the codebase for a long time, or because
|
||
|
of fast iteration to retrieve data. However, having the experiment run (or not
|
||
|
run) shouldn't impact GitLab availability. To avoid or identify issues,
|
||
|
experiments are initially deployed to a small number of users. Regardless,
|
||
|
experiments still need tests.
|
||
|
|
||
|
Experiments must have corresponding [frontend or feature tests](../testing_guide/index.md) to ensure they
|
||
|
exist in the application. These tests should help prevent the experiment code from
|
||
|
being removed before the [experiment cleanup process](https://about.gitlab.com/handbook/engineering/development/growth/experimentation/#experiment-cleanup-issue) starts.
|
||
|
|
||
|
If, as a reviewer or maintainer, you find code that would usually fail review
|
||
|
but is acceptable for now, mention your concerns with a note that there's no
|
||
|
need to change the code. The author can then add a comment to this piece of code
|
||
|
and link to the issue that resolves the experiment. The author or reviewer can add a link to this concern in the
|
||
|
experiment rollout issue under the `Experiment Successful Cleanup Concerns` section of the description.
|
||
|
If the experiment is successful and becomes part of the product, any items that appear under this section will be addressed.
|