Repository navigation
ci(conpty): 2022 基线改为记录制 (#21) - #258
Merged
Merged
Conversation
#21 The 2022 job sets TERMFORGE_CONPTY_RECORD_HANDLES so a platform-duplicated Job handle per session is recorded, while every other contract still gates.
本分支修改了 experiments/conpty/run.py(2022 基线改为记录制),但没有同步 benchmarks/tools/results/2026-10-29-c0-settings-*/ 里 source_files_sha256 记录的哈希, 导致 Windows 回归的 windterm_c0_settings_contract 断言失败: 54fb4187…(快照记录)!= 3766879c…(工作区实际) 三处同步为当前 run.py 的 SHA-256(3766879c…): - 2026-10-29-c0-settings-proposal/plan.json - 2026-10-29-c0-settings-reference/plan.json - 2026-10-29-c0-settings-reference/validation.json 不变的是契约本身:断言仍然要求快照与工作区一致,只是把记录更新到该分支的实际内容。
上一提交同时改了 c0-settings-reference/validation.json。那是该次运行的固定记录, 不是计划快照:契约测试断言的是 plan['source_files_sha256'],没有理由改写运行记录。 本次回退该文件,只保留两个 plan.json 的哈希更新。
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
决策:Server 2022 基线改为「记录、不强制零增长」
依据 #21 的完整证据链:
session_job的值每轮都正确关闭,残留的是平台复制的另一个值);steady_resources(要求单条样本内句柄不变)在 2022 永不满足,该基线必然长期红。改动
experiments/conpty/run.pyTERMFORGE_CONPTY_RECORD_HANDLES;置位时跳过valid与steady_resources断言,但保留其余全部契约(ready/echo/resized/子进程回收/退出码/记录数/无强制取消等)conpty-compat.ymlwindows-2022-conpty作业设置该变量,并在注释里指向 #21保留的严格面
只有这一项被放宽:句柄/线程的"零增长"。句柄计数仍完整记录在 artifact 里,可用于后续趋势观察。
验证
python -m unittest discover -s experiments/conpty -p 'test_*.py'→ 27 tests OK。边界
Refs #21