arXiv cs.AI· Henry Yeung·· 12 小时前AI 评分38
KG-AST:用预算化测试选择与 AI Bug 审查降低 CI/CD 成本
KG-AST for Cheaper CI/CD: Budgeted Test Selection and AI Bug Review
AI 导读
KG-AST 依据 git 历史和代码图特征为每次提交打风险分,把测试与 AI 审查预算优先分配给高风险提交。在 11 种语言、155 个开源项目上,跨语言模型让最 risky 20% 提交的重测试覆盖 49-64% 的引入 bug 提交,随机选择为 20%,优先测最大改动为 40-55%,每种语言均领先 3.8 至 13.2 个百分点。
正文 · 原文
Abstract:Continuous integration and AI-assisted review spend the same budget on every commit, although few commits introduce bugs. We study KG-AST, which scores each commit risk from git history and code-graph features before heavy tests or AI review run, so the budget goes to the riskiest commits first, and which hands the AI reviewer only a graph slice around the change. On 155 open-source projects in 11 languages, a single cross-language model trained on other projects ranks commits so that heavy testing of the riskiest 20% covers 49-64% of bug-introducing commits depending on the language, against 20% for random selection and 40-55% for testing the biggest change first.
Every language beats the biggest-change baseline, by 3.8 to 13.2 points. In 20 Java projects the gain at a 20% budget is 15.1 points (64.6% vs 49.5%, 95% interval +11.6 to +18.4), and the model wins in 19 of the 20 projects. About twelve training projects suffice; richer features, tuning and cleaner labels did not help. An AI reviewer that sees only a commit's diff finds 26% of later-fixed defects exactly (32% with graph context), and about half of its findings that did not match a later fix were judged real by independent AI judges. A static call-graph selector runs about 8% of a test suite while including a test written for the fix in 85% of 67 fix commits. The Poincare embedding used in our retrieval work adds nothing measurable here: commit-risk AUC, bug review and severity ranking are unchanged or worse. The labels are noisy and the budget metric assumes a heavy test catches the bug it covers; no CI minutes were measured.
| Subjects: | Software Engineering (cs.SE); Artificial Intelligence (cs.AI) |
| Cite as: | arXiv:2611.06950 [cs.SE] |
| (or arXiv:2611.06950v1 [cs.SE] for this version) | |
| https://doi.org/10.48550/arXiv.2611.06950 arXiv-issued DOI via DataCite |
Submission history
From: Henry Yeung [view email]
[v1]
Tue, 3 Nov 2026 16:28:29 UTC (116 KB)
来源:arXiv cs.AI · arxiv.org