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

构建系统中自承认技术债务克隆的量化与特征化

Quantifying and Characterizing Clones of Self-Admitted Technical Debt in Build Systems

Tao Xiao, Zhili Zeng, Dong Wang, Hideaki Hata, Shane McIntosh, Kenichi Matsumoto

AI总结:

对50,608条构建系统SATD注释开展大规模研究,发现构建系统中SATD克隆普遍率(62%-95%)远高于源代码(41%-65%),76%克隆语句相似度>0.8,1/4由原作者引入入,外部因素为主要位置、工具库限制为原因,为设计自动偿还SATD推荐系统奠定基础。

摘要:

自承认技术债务(Self-Admitted Technical Debt, SATD)标注了有意以长期软件制品质量换取短期目标的开发决策。近期工作探索了源代码中 SATD 克隆(重复或近似重复的 SATD 注释)的存在。构建系统(例如 CMake 和 Maven)中 SATD 的克隆可能传播次优设计选择,威胁利益相关者所依赖的构建系统质量(例如可维护性、可靠性、可重复性)。因此,我们对从 Autotools、CMake、Maven 和 Ant 构建系统中提取取得 50,608 条 SATD 注释开展大规模研究,以调查 SATD 克隆的普遍性并特征化其发生事件。我们观察到:(i)先前工作表明源代码中 41-65% 的 SATD 注释是克隆,但在我们所研究的构建系统背景下,该比例范围为 62% 到 95%,表明 SATD 克隆在构建系统中比源代码中现象更为普遍;(ii) SATD 克隆周围的语句高度相似,76% 的出现相似度得分大于 0.8;(iii)四分之一的 SATD 克隆由原始 SATD 语句的作者引入;(iv)在最常被克隆的 SATD 注释中,外部因素(例如平台和工具配置)是最频繁的位置,工具和库中的限制是最频繁的原因,开发者经常复制描述待后续修复问题的 SATD 注释。我们的工作提出了系统理解构建系统中 SATD 克隆的第一步,并为未来工作开辟了途径,例如区分不同的 SATD 克隆行为,以及设计基于已解决克隆有效偿还 SATD 的自动推荐系统。

英文摘要:

Self-Admitted Technical Debt (SATD) annotates development decisions that intentionally exchange long-term software artifact quality for short-term goals. Recent work explores the existence of SATD clones (duplicate or near duplicate SATD comments) in source code. Cloning of SATD in build systems (e.g., CMake and Maven) may propagate suboptimal design choices, threatening qualities of the build system that stakeholders rely upon (e.g., maintainability, reliability, repeatability). Hence, we conduct a large-scale study on 50,608 SATD comments extracted from Autotools, CMake, Maven, and Ant build systems to investigate the prevalence of SATD clones and to characterize their incidences. We observe that: (i) prior work suggests that 41-65% of SATD comments in source code are clones, but in our studied build system context, the rates range from 62% to 95%, suggesting that SATD clones are a more prevalent phenomenon in build systems than in source code; (ii) statements surrounding SATD clones are highly similar, with 76% of occurrences having similarity scores greater than 0.8; (iii) a quarter of SATD clones are introduced by the author of the original SATD statements; and (iv) among the most commonly cloned SATD comments, external factors (e.g., platform and tool configuration) are the most frequent locations, limitations in tools and libraries are the most frequent causes, and developers often copy SATD comments that describe issues to be fixed later. Our work presents the first step toward systematically understanding SATD clones in build systems and opens up avenues for future work, such as distinguishing different SATD clone behavior, as well as designing an automated recommendation system for repaying SATD effectively based on resolved clones.

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

↑