Experimentation: after an experiment is completed, its rollout override keeps splitting identities, so the documented "end it, then update the flag" doesn't reach them
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 45/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- python
- 領域
- backend, documentation
調査の方向性
Read the experiment completion path in experimentation/services.py:624-625 and the rollout cleanup path at services.py:619-623,632-681; compare those behaviors with the flag save path in features/future/views.py:117. Decide how completion should handle the system segment override, then add or update tests for completing an experiment and evaluating identities after changing the flag default. Done means the documented completion flow reaches the winner for identities covered by the rollout.
索引モデルが issue の本文から書いたものです。
説明
Summary
The analysis docs say to end the experiment, then update the flag to the winning value
(docs/docs/experimentation/analyse-an-experiment.md:58-61). On 2.291.0, completing an experiment sets ended_at
but leaves its experiment-<id>-rollout system segment override in place. The override is only removed when the
flag's next experiment starts. So after following the docs, every identity the rollout covered keeps its old
variation, and the flag edit reaches none of them.
Reproduction (self-hosted 2.291.0, local-evaluation Node SDK, 300 fresh identities)
- Create a multivariate flag (
control,v2) and an experiment on it with a 50/50 split. Start it. - Evaluate 300 new identities: control 144, v2 156.
- Complete the experiment, then set the flag's environment default to
v2(the documented order). - Evaluate the same 300 identities again: control 144, v2 156. Nothing moved.
- Start a second experiment on the same flag: the first rollout override is removed (
services.py:619-623,632-681, PR #8770).
Script: spikes/07-round04.ts, log in spikes/RESULTS.md.
Where it happens
- The split is a system segment override, a percentage split on the identity key:
experimentation/services.py:757-775,937-939. - Complete sets
ended_atonly:services.py:624-625. - Saves through the flag API don't overwrite the override:
features/future/views.py:117.
Expected
Either Complete removes the rollout (or offers to, for example "Complete and roll out the winner"), or the docs say the
override stays until the next experiment and how to clear it.
Workaround I use
Pause → set the default to the winner → set the rollout to 0% with the winner's weights → Complete. Measured: 300 of
300 identities on the winner, and a later default edit back to control reaches all 300.
Found while building Turnout on self-hosted Flagsmith 2.291.0.
- 主要言語
- Python
- スター
- 9.9k
- フォーク
- 658
- 平均マージ
- 1日 15時間
- マージ済み PR(30日)
- 168
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Flagsmith/flagsmith のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
Flagsmith/flagsmith#9119 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Fix Button Alignment in SDK Installation Section対応中かも @manueldezman が 3 日前に担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
Flagsmith/flagsmith#9056 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
Cloud Python warehouse snippet omits the import needed by its short-lived-job guidance対応中かも @jcd1991 が 4 日前に担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 75/100
Flagsmith/flagsmith#9045 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Expose whether an organisation is blocked for API usage対応中かも @PiUnknown が 38 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
Flagsmith/flagsmith#8773 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
influx_query_manager doesn't catch ApiException, so Influx error responses 500対応中かも @SAY-5 が 13 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
Flagsmith/flagsmith#8510 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
Flagsmith/flagsmith の issue をすべて見る
似ている issue
-
ui
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
ARTPARK-SAHAI-ORG/calibrate-frontend#919 ·
メンテナーはふだん 1 日以内に返信
-
CI: MSYS2 jobs fail — mingw python3 package renamed upstream to python対応中かも @ronaldtse が今日担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 95/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
pydantic/pytest-examples#102 · コメント 1 件 ·