Breaking-Good:通过构建分析解释破坏性依赖更新
Breaking-Good: Explaining Breaking Dependency Updates with Build Analysis
AI总结:
针对依赖更新易引发编译错误且根因难定位的问题,提出工具Breaking-Good,通过日志与依赖树混合分析分类错误、生成解释及修复建议,在243个真实案例中70%可自动定位根因,且经用户研究验证有效。
摘要:
当新版本依赖引入与现有客户端代码不兼容的变更时,依赖更新通常会导致编译错误。修复破坏性依赖更新的难度极大,因为其根本原因可能深藏在依赖树中。我们提出了Breaking-Good,这是一款能自动生成破坏性更新解释的工具。Breaking-Good对编译错误进行了详细分类,识别出与直接和间接依赖变更、Java版本间不兼容性以及客户端特定配置相关的若干因素。通过对日志和依赖树的混合分析,Breaking-Good为每一次破坏性更新生成详细解释。这些解释可帮助开发者理解破坏性更新的成因,并提出可能的修复措施。我们在243个真实世界的破坏性依赖更新上评估了Breaking-Good。结果表明,Breaking-Good能准确识别根本原因,并为其中70%的破坏性更新生成自动解释。我们的用户研究证明,生成的解释对开发者有帮助。Breaking-Good是首个能自动识别破坏性依赖更新成因并据此解释故障的技术。
英文摘要:
Dependency updates often cause compilation errors when new dependency versions introduce changes that are incompatible with existing client code. Fixing breaking dependency updates is notoriously hard, as their root cause can be hidden deep in the dependency tree. We present Breaking-Good, a tool that automatically generates explanations for breaking updates. Breaking-Good provides a detailed categorization of compilation errors, identifying several factors related to changes in direct and indirect dependencies, incompatibilities between Java versions, and client-specific configuration. With a blended analysis of log and dependency trees, Breaking-Good generates detailed explanations for each breaking update. These explanations help developers understand the causes of the breaking update, and suggest possible actions to fix the breakage. We evaluate Breaking-Good on 243 real-world breaking dependency updates. Our results indicate that Breaking-Good accurately identifies root causes and generates automatic explanations for 70% of these breaking updates. Our user study demonstrates that the generated explanations help developers. Breaking-Good is the first technique that automatically identifies causes of a breaking dependency update and explains the breakage accordingly.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。