SmartPatchLinker:一种开源工具,用于代码审查中的变更检测链接
SmartPatchLinker: An Open-Source Tool to Linked Changes Detection for Code Review
AI总结:
SmartPatchLinker是一款基于浏览器的开源工具,用于在代码审查界面中发现相关变更,通过轻量级Chrome扩展和Gerrit集成,帮助审查人员高效识别语义关联的代码变更,提升代码审查效率。
摘要:
在大型软件生态系统中,语义相关的代码变更,如替代方案或重叠修改,往往在提交后数天才被发现,导致重复工作和延迟审查。我们提出了SmartPatchLinker,一个基于浏览器的工具,支持在代码审查界面中直接发现相关补丁。SmartPatchLinker实现为一个轻量级Chrome扩展,配有本地推理后端,并与Gerrit集成,当审查人员打开补丁时,该工具会检索并排名语义相关的变更。该工具允许审查人员配置搜索范围,查看带有置信度指标的排名候选项,并在不离开工作流或依赖服务器端安装的情况下检查相关工作。我们进行了有用性和可用性评估,研究SmartPatchLinker如何在代码审查中支持审查人员。SmartPatchLinker是开源的,其源代码、Docker容器和评估所用的复制包已公开在GitHub上(https://github.com/islem-kms/gerrit-chrome-extension)。一个展示该工具的视频也在线上可用(https://drive.google.com/drive/folders/1MCcTj5OSlT7lHVBFMq5m9iatas2joaGb)
英文摘要:
In large software ecosystems, semantically related code changes, such as alternative solutions or overlapping modifications are often discovered only days after submission, leading to duplicated effort and delayed reviews. We present SmartPatchLinker, a browser based tool that supports the discovery of related patches directly within the code review interface. SmartPatchLinker is implemented as a lightweight Chrome extension with a local inference backend and integrates with Gerrit to retrieve and rank semantically linked changes when a reviewer opens a patch. The tool allows reviewers to configure the search scope, view ranked candidates with confidence indicators, and examine related work without leaving their workflow or relying on server-side installations. We perform both usefulness and usability evaluations to study how SmartPatchLinker can support reviewers during code review. SmartPatchLinker is open source, and its source code, Docker containers, and the replication package used in our evaluation are publicly available on GitHub at https://github.com/islem-kms/gerrit-chrome-extension . A video demonstrating the tool is also available online at https://drive.google.com/drive/folders/1MCcTj5OSlT7lHVBFMq5m9iatas2joaGb
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。