跨项目脆弱性:OpenStack生态系统的案例研究
Cross-Project Flakiness: A Case Study of the OpenStack Ecosystem
AI总结:
通过分析OpenStack生态系统中649个项目,研究跨项目脆弱性(影响多个项目的脆弱测试)和不一致脆弱性(测试在某些项目中脆弱而在其他项目中稳定)的现象,发现跨项目脆弱性影响55%的项目,并显著增加审查时间和计算成本,单元测试中70%表现出跨项目脆弱性,主要原因为CI中的竞态条件、不一致的构建配置和依赖不匹配。
摘要:
自动化回归测试是现代软件开发的基石,通常直接贡献于代码审查和持续集成(CI)。然而,一些测试存在脆弱性,其结果非确定性地变化。脆弱性削弱了开发者对测试结果的信任,浪费计算资源,并破坏CI的可靠性。虽然先前的研究已经检查了单个项目内的测试脆弱性,但其更广泛的生态系统级影响仍未得到充分探索。在本文中,我们对OpenStack生态系统中的测试脆弱性进行了实证研究,重点关注(1)跨项目脆弱性,即脆弱测试影响多个项目,以及(2)不一致脆弱性,即测试在某些项目中表现出脆弱性,但在其他项目中保持稳定。通过分析649个OpenStack项目,我们识别出1,535个跨项目脆弱测试和1,105个不一致脆弱测试。我们发现跨项目脆弱性影响55%的OpenStack项目,并显著增加审查时间和计算成本。令人惊讶的是,70%的单元测试表现出跨项目脆弱性,挑战了单元测试本质上不受集成和系统级测试等跨模块问题影响的假设。通过定性分析,我们观察到CI中的竞态条件、不一致的构建配置和依赖不匹配是不一致脆弱性的主要原因。这些发现强调了在复杂生态系统中需要更好的协调、标准化的CI配置以及改进的测试隔离策略。
英文摘要:
Automated regression testing is a cornerstone of modern software development, often contributing directly to code review and Continuous Integration (CI). Yet some tests suffer from flakiness, where their outcomes vary non-deterministically. Flakiness erodes developer trust in test results, wastes computational resources, and undermines CI reliability. While prior research has examined test flakiness within individual projects, its broader ecosystem-wide impact remains largely unexplored. In this paper, we present an empirical study of test flakiness in the OpenStack ecosystem, which focuses on (1) cross-project flakiness, where flaky tests impact multiple projects, and (2) inconsistent flakiness, where a test exhibits flakiness in some projects but remains stable in others. By analyzing 649 OpenStack projects, we identify 1,535 cross-project flaky tests and 1,105 inconsistently flaky tests. We find that cross-project flakiness affects 55% of OpenStack projects and significantly increases both review time and computational costs. Surprisingly, 70% of unit tests exhibit cross-project flakiness, challenging the assumption that unit tests are inherently insulated from issues that span modules like integration and system-level tests. Through qualitative analysis, we observe that race conditions in CI, inconsistent build configurations, and dependency mismatches are the primary causes of inconsistent flakiness. These findings underline the need for better coordination across complex ecosystems, standardized CI configurations, and improved test isolation strategies.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。