paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Discovering feature flag interdependencies in Microsoft office

发现 Microsoft Office 中的 feature flag 相互依赖关系
FSE Proceedings of the 30th ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering2022匹配度 3/10 · 论文使用日志概率推理发现feature flag依赖,属于软件工程与程序分析范畴,但未涉及用户核心关注的LLM/Agent、浮点程序分析或贝叶斯程序分析,且方法非静态分析或形式化验证;工业落地案例是加分项,但整体方向匹配度低。引用 2 inbox
Michael Schröder, Katja Kevic, Dan Gopstein, Brendan Murphy, Jennifer Beckmann
crossref: 2026-09-12

AI 速览

一句话:提出基于日志概率推理的 feature flag 依赖发现方法,在 Office 中精度超过 90%。

Feature flag 能加速开发与部署,但在 Microsoft Office 这类大型系统中会积累技术债:相互依赖的 flag 可能分散在代码各处,其未知交互容易引发严重 bug,而穷举所有组合测试不可行(Office 约有 12000 个活跃 flag)。本文提出一种自动发现 feature flag 相互依赖的方法,利用概率推理从 flag 查询日志中推断因果关系。该方法与语言无关、可扩展至大型异构代码库,并能容忍代码漂移和日志噪声。作者在 Office 真实查询日志上评估,发现跨源文件的非平凡间接依赖时精度超过 90%,还总结了重复出现的关系模式,并讨论了面向定向测试、部署速度判定、错误缓解和诊断的应用。

问题
Feature flag 的复杂交互常被忽视,尤其在大型系统中穷举组合测试不可行,未知依赖会导致严重 bug。
方法
利用概率推理从 feature flag 查询日志中推断因果关系,语言无关、可扩展且抗噪。
评估
在 Microsoft Office 真实查询日志上评估,发现跨文件间接依赖的精度超过 90%,并总结关系模式及其在定向测试、错误缓解和诊断中的应用。
原文摘要(Abstract)

Feature flags are a popular method to control functionality in released code. They enable rapid development and deployment, but can also quickly accumulate technical debt. Complex interactions between feature flags can go unnoticed, especially if interdependent flags are located far apart in the code, and these unknown dependencies could become a source of serious bugs. Testing all possible combinations of feature flags is infeasible in large systems like Microsoft Office, which has about 12000 active flags. The goal of our research is to aid product teams in improving system reliability by providing an approach to automatically discover feature flag interdependencies. We use probabilistic reasoning to infer causal relationships from feature flag query logs. Our approach is language-agnostic, scales easily to large heterogeneous codebases, and is robust against noise such as code drift or imperfect log data. We evaluated our approach on real-world query logs from Microsoft Office and are able to achieve over 90% precision while recalling non-trivial indirect feature flag relationships across different source files. We also investigated re-occurring patterns of relationships and describe applications for targeted testing, determining deployment velocity, error mitigation, and diagnostics.

链接与引用

DOI 原文 · PDF(开放获取) ·

BibTeX
@inproceedings{paperbot6998,
  title = {Discovering feature flag interdependencies in Microsoft office},
  author = {Michael Schröder and Katja Kevic and Dan Gopstein and Brendan Murphy and Jennifer Beckmann},
  booktitle = {FSE},
  year = {2022},
  doi = {10.1145/3540250.3558942}
}