arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2309.10205cs.SE
收藏

持续集成与软件质量:一项因果解释性研究

Continuous Integration and Software Quality: A Causal Explanatory Study

Eliezio Soares, Daniel Alencar da Costa, Uirá Kulesza

AI总结:

本文运用因果有向无环图并结合文献综述与软件仓库挖掘,分析70个开源项目,揭示了持续集成对软件质量的直接和间接因果效应及项目年龄的混杂作用。

摘要:

持续集成(CI)是一种软件工程实践,旨在降低团队之间代码集成的成本和风险。近期的实证研究已经确认了CI与软件质量(SQ)之间的关联。然而,现有研究尚未考察CI与SQ之间的因果关系。本文通过应用因果有向无环图(DAGs)技术来研究这一问题。我们结合另外两种策略来支持该技术:文献综述和软件仓库挖掘(MSR)研究。在第一阶段,我们回顾文献以发现CI与SQ之间已有的关联,这有助于我们在第二阶段构建一个“基于文献的因果DAG”。该DAG概括了文献中关于CI及其对SQ影响的假设。在第三阶段,我们通过挖掘软件仓库分析了70个开源项目共12个活动月的数据——其中35个CI项目和35个非CI项目。这项MSR研究并非典型的“相关不等于因果”研究,因为它被用来验证前几个阶段所构建的因果DAG中揭示的关系。第四阶段包括在我们的数据集上检验“基于文献的因果DAG”所蕴含的统计推断。最后,在第五阶段,我们结合文献和数据集中的观察结果构建了一个DAG,即“文献-数据DAG”。除了CI对SQ的直接因果效应外,我们还发现了CI存在间接效应的证据。例如,CI会影响团队沟通,而团队沟通对SQ有积极影响。我们还强调了项目年龄的混杂效应。

英文摘要:

Continuous Integration (CI) is a software engineering practice that aims to reduce the cost and risk of code integration among teams. Recent empirical studies have confirmed associations between CI and the software quality (SQ). However, no existing study investigates causal relationships between CI and SQ. This paper investigates it by applying the causal Direct Acyclic Graphs (DAGs) technique. We combine two other strategies to support this technique: a literature review and a Mining Software Repository (MSR) study. In the first stage, we review the literature to discover existing associations between CI and SQ, which help us create a "literature-based causal DAG" in the second stage. This DAG encapsulates the literature assumptions regarding CI and its influence on SQ. In the third stage, we analyze 12 activity months for 70 opensource projects by mining software repositories -- 35 CI and 35 no-CI projects. This MSR study is not a typical "correlation is not causation" study because it is used to verify the relationships uncovered in the causal DAG produced in the first stages. The fourth stage consists of testing the statistical implications from the "literature-based causal DAG" on our dataset. Finally, in the fifth stage, we build a DAG with observations from the literature and the dataset, the "literature-data DAG". In addition to the direct causal effect of CI on SQ, we find evidence of indirect effects of CI. For example, CI affects teams' communication, which positively impacts SQ. We also highlight the confounding effect of project age.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑