arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2109.00659cs.SE
收藏

架构变更提交的语义切片:面向语义设计评审

Semantic Slicing of Architectural Change Commits: Towards Semantic Design Review

Amit Kumar Mondal, Chanchal K. Roy, Kevin A. Schneider, Banani Roy, Sristy Sumana Nath

摘要:

软件架构变更涉及多个模块或组件,与本地代码变更相比,分析起来很复杂。旨在审查变更提交的架构方面(设计)的开发团队考虑许多基本场景,例如访问规则和跨模块使用程序实体的限制。此外,当适当的架构公式对于开发和部署系统至关重要时,设计审查是必不可少的。理清架构更改、恢复语义设计和生成设计注释是设计评审过程的关键任务。为了支持这些任务,我们构建了一个轻量级工具[4],可以检测和分解包含架构实例的提交的语义切片。语义切片由变更实例中所涉及的模块、它们的类、方法和连接的模块的关系信息的描述组成,这对于审查者来说很容易理解。我们从源代码中提取各种目录和命名结构(DANS)属性来开发我们的工具。利用DANS属性,我们的工具首先根据我们定义的指标检测架构更改实例,然后分解切片(基于字符串处理)。我们对10个开源项目(用Java和Kotlin开发)的初步调查显示,DANS属性在检测和生成建筑切片时产生了高度可靠的精确度和召回率(93-100%)。我们提出的工具将作为初步的方法,语义设计恢复和设计摘要生成的项目版本。

英文摘要:

Software architectural changes involve more than one module or component and are complex to analyze compared to local code changes. Development teams aiming to review architectural aspects (design) of a change commit consider many essential scenarios such as access rules and restrictions on usage of program entities across modules. Moreover, design review is essential when proper architectural formulations are paramount for developing and deploying a system. Untangling architectural changes, recovering semantic design, and producing design notes are the crucial tasks of the design review process. To support these tasks, we construct a lightweight tool [4] that can detect and decompose semantic slices of a commit containing architectural instances. A semantic slice consists of a description of relational information of involved modules, their classes, methods and connected modules in a change instance, which is easy to understand to a reviewer. We extract various directory and naming structures (DANS) properties from the source code for developing our tool. Utilizing the DANS properties, our tool first detects architectural change instances based on our defined metric and then decomposes the slices (based on string processing). Our preliminary investigation with ten open-source projects (developed in Java and Kotlin) reveals that the DANS properties produce highly reliable precision and recall (93-100%) for detecting and generating architectural slices. Our proposed tool will serve as the preliminary approach for the semantic design recovery and design summary generation for the project releases.

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

↑