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

将运行时执行历史视为第一公民:与代码同步版本化运行时行为

Treating Run-time Execution History as a First-Class Citizen: Co-Versioning Run-time Behavior alongside Code

University of Mannheim(曼海姆大学)

Marcus Kessel

AI总结:

本文提出行为共版本化理念,通过将Git历史与行为档案结合,实现运行时行为的版本控制与分析,弥补软件演化分析和CI中的盲点。

摘要:

行为共版本化在主流实践中仍缺失:虽然开发者常用Git版本源代码,但很少保存和查询运行时行为在不同版本间的演变。本文认为这种不匹配导致软件演化分析和CI中的盲点,丰富的执行信息被丢弃并通常简化为通过/失败结果--尽管存在部分测试或acles、不稳定性和静默输出或性能漂移。我们提出行为共版本化,一种将Git历史与行为档案结合的范式:行为档案是只追加、可查询的存储,保存选定的运行时观察(如方法I/O和性能信号),在测试运行期间收集并按提交和测试上下文键值存储。这使语义差异分析、行为感知的回归定位和回顾审计成为可能,通过查询历史执行,补充主动的信号特定监控工具。我们首先概述了基于代码/测试/行为指纹的最小数据模型和变更诊断,然后通过笔记本规模的原型演示可行性,该原型重放历史提交的Python项目,将运行时观察存入本地Parquet支持的存储,并检测出文本差异中不明显的行为变化。

英文摘要:

Behavioral Co-Versioning remains absent from mainstream practice: while developers routinely version source code with Git, they rarely persist and query how run-time behavior evolves across revisions. This paper argues that this mismatch contributes to a blind spot in software evolution analysis and CI, where rich execution information is discarded and typically reduced to pass/fail outcomes -- despite partial test oracles, flakiness, and silent output or performance drift. We propose \textit{Behavioral Co-Versioning}, a paradigm that couples the Git history with a \textit{Behavioral Archive}: an append-only, queryable store of selected run-time observations (e.g., method I/O and performance signals) collected during test runs and keyed by commit and test context. This enables semantic diffing, behavior-aware regression localization, and retrospective auditing by querying historical executions, complementing proactive, signal-specific monitoring tools. We first outline a minimal data model and change diagnostics based on code/test/behavior fingerprints, and then demonstrate feasibility with a laptop-scale prototype that replays historical commits of a Python project, archives run-time observations in a local Parquet-backed store, and detects behavioral changes not apparent from textual diffs.

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

↑