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

对拉取请求描述中视觉制品的实证研究

An Empirical Study of Visual Artifacts in Pull Request Descriptions

Queen’s University(女王大学)

Tianzi Hao, Kazi Amit Hasan, Yuan Tian, Bram Adams

AI总结:

本文通过构建VisPR数据集开展大规模实证研究,发现GitHub视觉PR占比13.3%,其评审更严格,涉及UI相关评论及修复的频率更高,与更快评审无关。

摘要:

评审人员依赖拉取请求(PR)描述来理解变更内容,但部分变更(如UI更新或运行时行为)仅通过文本难以传达。PR作者会附加视觉制品以填补这一空白,不过他们使用视觉制品的频率、展示内容以及是否会改变PR评审方式仍不明确。本文对GitHub PR描述中的视觉制品开展大规模研究:从5012个代码仓库的6505113个已关闭PR中,构建了VisPR数据集,该数据集包含647个采用视觉制品实践的代码仓库中2473892个人类作者撰写的英文PR。其中329185个(占比13.3%)为视觉PR,即其描述包含至少一个视觉制品(总计479974个)。通过对891个已合并视觉PR中的1113个视觉制品样本进行手动标注,得出两类分类体系:11种内容类型(捕捉开发者展示的内容)和6种用途(捕捉开发者加入视觉制品的原因)。占主导的内容类型是交互与状态,展示界面对用户操作的响应方式,其占比从图像的37.0%升至GIF的63.5%、视频的79.7%;约四分之一的图像(23.4%)展示日志、代码或错误消息等文本。与按代码仓库、PR类型和变更规模匹配的1782个已合并非视觉PR相比,视觉PR获得的评审评论多43%、评审人员多17%,且从首次响应到合并的时间长72%;合并时间和经变更量归一化的评审效率无显著差异。对两组中10031条评审评论的大语言模型(LLM)辅助分类显示,两组评审均以代码为核心,但针对视觉PR的评论中,涉及UI外观或行为的频率是两倍(6.4% vs 3.3%),且评审后视觉输出修复的频率约为四倍(PR的4.7% vs 1.2%)。因此,视觉制品与对用户所见内容的更严格审查相关,而非与整体更快的评审相关。

英文摘要:

Reviewers rely on pull request (PR) descriptions to understand what a change does, yet some changes, such as UI updates or runtime behavior, are hard to convey in text alone. PR authors attach visual artifacts to fill this gap, but how often they do so, what they show, and whether they change how a PR is reviewed remain unknown. We present a large-scale study of visual artifacts in GitHub PR descriptions. From 6,505,113 closed PRs in 5,012 repositories, we built VisPR, a dataset of 2,473,892 English, human-authored PRs from 647 repos where visual artifacts are an established practice. Of these, 329,185 (13.3%) are visual PRs, i.e., their descriptions contain at least one visual artifact (479,974 in total). By manually labeling a sample of 1,113 visual artifacts from 891 merged visual PRs, we derived two taxonomies: 11 content types capturing what developers show and six purposes capturing why they include visual artifacts. The dominant content type is Interaction & State, which shows how the interface responds to user actions. its share rises from 37.0% of images to 63.5% of GIFs and 79.7% of videos, whereas about a quarter of images (23.4%) show text such as logs, code, or error messages . Compared with 1,782 merged non-visual PRs matched on repository, PR type, and change size, visual PRs receive 43% more review comments and 17% more reviewers, and take 72% longer from first response to merge, time to merge and churn-normalized review efficiency do not differ significantly. LLM-assisted classification of 10,031 review comments in two groups shows that review centers on code in both, but comments on visual PRs address how the UI looks or behaves twice as often (6.4% vs.3.3%), and visual-output fixes after review are about four times as common (4.7% vs. 1.2% of PRs). Visual artifacts are thus associated with closer scrutiny of what users see, not with an overall faster review.

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

↑