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 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 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 小时
- 30 天内合并 PR
- 168
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 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 条评论 ·