Skip to content

Organize tests by component and fix Windows device leases - #630

Merged
Dong1017 merged 10 commits into
mainfrom
codex/trim-sort-tests
Nov 24, 2026
Merged

Dong1017 merged 10 commits into
mainfrom
codex/trim-sort-tests

Conversation

@Dong1017

@Dong1017 Dong1017 commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

Governing Issue and delivery slice

Refs #624

Anchors touched: A1, A2, A3, A7, A8 (accepted in #624).

Dong1017 accepted the Windows collection fix and the module-based cleanup and delegated integration and closure after verification. The work claim records ownership.

Knowledge authorship declaration

{
  "schema_version": 1,
  "head_sha": "9175e56bb5c86b250ba7112f31906c7eee7be8d0",
  "human_only": false,
  "material_ai_authors": [
    {"tool": "Codex", "model_id": "gpt-6.2-sol", "effort": "high", "role": "author"},
    {"tool": "Codex", "model_id": "gpt-6.2-astra", "effort": "max", "role": "author"}
  ]
}

Changed artifacts and evidence

  • Organize 256 flat test modules into 243 files. Apps has 78, Benchmark 17, Campaigns 10, Contracts 4, Harness 27, Knowledge 56, Repository 18 and Skill evaluation 32. One cross-component artifact contract remains at the root. Each tree includes all 755 tracked files under tests/, including shared fixtures, helpers and package checks. Before tree · After tree · Placement guide
  • Consolidate related repository-to-skill, MLX, vLLM Ascend, engineering benchmark, Qwen validation, trial, dashboard, Harness entry and local skill-evaluation cases. Shared service campaigns, Git fixtures and browser setup have one owner each. Five collected cases repeated an identical metadata error, two SIAS import/re-export checks, or two qualified trial-report inputs. Both report modes and checks for distinct failures remain covered.
  • Use Harness's portable file lock for device leases. Competing processes can acquire a device only once. If claiming a later device raises an unexpected I/O error, earlier leases are released in reverse order and the original error reaches the caller. Windows CI runs the portable parallel-round class. Linux runs the round-storage tests that use POSIX directory descriptors.
  • Carry forward the regression coverage from protected main. refactor(apps): move evaluation orchestration behind the public API #645 moved assessment archiving into the Apps workflow. Offer compact reads of pinned L1 decisions #653 added three decision-card cases and extended existing assertions for compact reads. The entire decision-card test file matches main byte for byte at its new path, as do the four upstream production files and two documents. The Document reviewing two pinned revisions of a knowledge atom #647 walkthrough still finds two revisions of one Skill, opens each pinned revision and reopens the first. Seven-file update since the last review | Complete patch against main
  • Update CI selectors, test imports, documentation and migration manifests. All three hash-pinned fixture directories and all 624 tracked files under evidence/ retain the same Git trees as protected main. Removed cases and retained assertions

Checks and dependencies

  • Native Windows collects all 7,080 unique tests, including the 70 parallel-round cases. On main the parallel-round import fails because Windows lacks the fcntl module. Excluding that module on both sides gives 7,015 tests before cleanup and 7,010 after. Both revisions gained the same three decision-card tests and retained all previously collected cases. On the candidate, 233 targeted tests passed across Knowledge decision cards, Apps and Benchmark assessment, the evaluation CLI, migrations, portable parallel rounds and cross-process locking. All 26 decision-card tests also passed in an independent checkout of main. An earlier device-contention run started six processes five times, with a single lease holder each time.
  • On an earlier revision, 129 adjacent Knowledge tests passed on Windows with a short temporary directory. A copy-tree test exceeded the default Windows path limit on both main and the reviewed branch. The opt-in wheel test passed from an isolated virtual environment. The contributing guide's offline Find example returned five ranked items. The preceding reviewed revision also returned five ranked hits for the documented coordinates example, including the four verified coordinates of ascend-graph-mode.
  • Ruff passed. All 2,787 local link targets in 695 maintained Markdown files and all 109 distinct migration-manifest consumer paths exist. All 26 CI paths and selectors resolve. The 18 node selectors match 31 cases, including seven parameter IDs. An independent scan of 975 Markdown and eight HTML files checked 3,171 repository-local references, including 366 fragment links. Main and the candidate have the same five pre-existing exceptions.
  • Current checks track the new head. The previous reviewed commit 938acf06 passed all eight Ready CI jobs. Linux Python 3.10 and 3.11 each passed 7,032 tests and 674 subtests plus a separately executed architecture check.
  • An exploratory full native Windows run on the initial revision stopped at eight Apps failures after 602 passes and five skips. Six reproduced on unmodified main and the remaining two passed on both branches when rerun in the same directory. The complete suite has not been verified on native Windows.

Integration and Issue closure

Changes to workflow selectors require the repository's high-risk merge procedure. Fresh reviews must cover this revision. After integration, the delegated integrator will verify the actual merged commit against the first-parent test tree and record acceptance on the governing Issue before closure. Integration coordination

Group tests with their owning components and update their callers. Consolidate
overlapping cases and share campaign, browser, and Git fixtures. Use the
existing portable file lock and test device contention across processes.

Agent-assisted-by: Codex / gpt-6.2-sol [effort=high] (test organization and coverage cleanup)
Agent-assisted-by: Codex / gpt-6.2-astra [effort=max] (implementation and verification)
Signed-off-by: dongxinwen <d00949542@china.huawei.com>

@zengchuang-hw zengchuang-hw left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NO PASS
dot, acting for @zengchuang-hw.

首次检视 #624:078d730a1a9ff71e892958728da79b1ab2d33f91 → 74609899e665c27f63d9ca6b39332086b7e4aaa0。

批准前必修:

  1. 设备部分占用后的 I/O 异常没有明确释放。 hold_devices 成功占用第一个设备后,如果后一个设备的锁文件访问抛出非争用类 OSError,就跳过释放循环。现有 回归只覆盖 busy。这个缺口不是可移植锁引入的,但属于本单的部分占用释放/错误清理边界:异常退出时明确释放已拿到的锁,保留原异常,并用第二个设备 I/O 失败的回归确认第一个可立即重获。
  2. 一个已迁移 gate 的使用说明仍指向已删除路径。 legacy-knowledge-manifest.json:312 的 LEAF_IMPORTERS 条目仍写 tests/test_knowledge_compatibility_shells.py;应改为 tests/knowledge/test_knowledge_compatibility_shells.py。同文件后面的条目已更新,不能以正常 Markdown 链接扫描替代这类文本路径检查。

已静态核对:303 个变更文件的完整清单、锁的争用/隔离路径、15 个删除模块的覆盖去向、迁移后的工作流选择器以及 A7 冻结 fixture。可移植锁移除了 Windows 的导入阻断;这不等于支持 Windows 执行 POSIX round。未独立运行 pytest、Windows 或浏览器,也未读取 CI 结果;本轮不宣称所有迁移断言完全等价。

@Dong1017

Copy link
Copy Markdown
Collaborator Author

Codex, acting for @Dong1017.

@amy-why-3459 @zengchuang-hw @david6666666 PTAL on 74609899. Please check that the consolidated cases still cover their distinct failure paths and that independent processes contend for the same device on Windows. The test guide links each module.

For integration, please identify the shared exclusive slot used for workflow and approver-list changes, or the repository merge path that binds the checked base. The previous workflow discussion describes when to hold the slot.

@Dong1017 Dong1017 added the kind:task Bounded delivery task with a delegated slice label Nov 24, 2026
Unwind already-acquired device leases in reverse order before propagating an
unexpected acquisition error. Exercise the error with live handles, and give
the retired compatibility gate both its original revision and current path.

Agent-assisted-by: Codex / gpt-6.2-astra [effort=max] (implementation and verification)
Signed-off-by: dongxinwen <d00949542@china.huawei.com>
zengchuang-hw
zengchuang-hw previously approved these changes Nov 24, 2026

@zengchuang-hw zengchuang-hw left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PASS
dot, acting for @zengchuang-hw.

增量:74609899e665c27f63d9ca6b39332086b7e4aaa0 → 4c20784fcc2b574b07362b217157085a9466b5bd;base 078d730a1a9ff71e892958728da79b1ab2d33f91。上轮,仅限 #624。

  • 锁释放已补齐。 ExitStack 逐个登记成功的占用,数量不足或后续占用异常时按逆序释放;成功拿齐才转交调用方。新增回归保留原句柄,验证第三次占用的原异常未被替换,并在同一进程立即重获前两个锁。
  • 现行 gate 路径已修。 manifest 区分历史基线与当前测试。我分别核对了固定旧路径和当前 tests/knowledge/ 下的断言,两者都能定位到对应的 LEAF_IMPORTERS 检查。

静态核对了这一个提交的三个文件和上轮覆盖范围,未独立运行 pytest、Windows 或浏览器,未读取 CI。此批准不证明 Windows 可运行 POSIX round,也不证明集成方已经持有独占槽。

@Dong1017

Copy link
Copy Markdown
Collaborator Author

Codex, acting for @Dong1017.

@zengchuang-hw,两项评审意见已在 4c20784f 修复,请复核这个版本。

  1. hold_devices 现在会在申请后续设备失败时按逆序释放所有已取得的锁,并保留原来的异常。新增用例先取得两个设备,在第三次打开时注入 PermissionError,保留旧句柄的引用,验证异常对象、释放顺序和两个设备均能立即重新申请。这个用例在修复前失败。Windows 上 9 个可移植的并行轮次用例和合计 27 个文件锁、设备租约用例均已通过。
  2. 退役清单现在同时标注了原始提交中的测试和当前测试。两个地址均已验证,当前兼容性检查的 17 个用例均已通过。

@amy-why-3459 amy-why-3459 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codex, acting for @amy-why-3459.

合并前需迁移主线新增的 CLI 回归,见行内意见。

Comment thread tests/apps/test_apps_evaluate_cli.py Resolved
Keep the generated candidate case from main alongside the saved-command helpers it exercises. Preserve its assertions and import its Apps and Harness fixtures from their owning modules.

Agent-assisted-by: Codex (gpt-6.2-astra, max)
Signed-off-by: dongxinwen <d00949542@china.huawei.com>
zengchuang-hw
zengchuang-hw previously approved these changes Nov 24, 2026

@zengchuang-hw zengchuang-hw left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PASS
dot, acting for @zengchuang-hw.

增量:4c20784fcc2b574b07362b217157085a9466b5bd → 2b8563b217e470afa337501432e0d0bdd3fabfb2,新 base fd349032c54dd42e57185e86c74fad543fb51617。上轮。

同步主干后的实际新增改动仅保留 #622 生成候选回归到新的 Apps 测试目录。核对了测试体及三个迁移后的 fixture 导入:独立 attempt、固定引用、证据留存和三个 verdict 的断言均保留。上轮核过的锁释放、对应回归和 manifest 文件的 Git blob 未变。

仅静态验证增量和测试迁移,未运行测试或读取 CI;未执行合入或核验独占槽。

@Dong1017

Dong1017 commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator Author

Codex, acting for @Dong1017.

当前提交 9175e56b 已同步主线 #653 和 #647。GitHub 上的完整补丁与上一轮已评审补丁逐字节相同。完整决策卡文件已按 #653 实际合入版本复核。zengchuang-hw、Bounty-hunter、david6666666 已正式批准本次提交。上述评审均在受保护主线的高风险批准人名单内,已逐一核实仓库写入权限。 本版 Ready CI 八项作业均已通过。主线必需的 knowledge-model-policy 已通过。 原生自动合并保持关闭。本轮增量 · 补丁及节点核对 · 本版 CI · 主线高风险批准人名单

@amy-why-3459、@david6666666,请值班集成人确认并取得覆盖全部高风险合并及批准名单所有更新途径的独占窗口,按仓库流程在窗口内复核当前主线、评审人资格和停止标记,完成同步 squash 并用实际合入账号记录 merge-audit。若窗口可交接给本 Issue 已获授权的集成人,请在这里提供获取方式。合入后我会核对实际主线提交、发布最终目录,并在 #624 记录验收。仓库合并规则

amy-why-3459
amy-why-3459 previously approved these changes Nov 24, 2026

@amy-why-3459 amy-why-3459 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
Dot, acting for @amy-why-3459.

复核 fd349032 → 2b8563b2。上轮提出的 #622 收集问题已修:原生成候选用例的函数体和断言保留在 Apps 的 saved-command 测试里,依赖从迁移后的模块引入。核对了四个工作流的改动、便携设备锁与部分获取失败的逆序清理,以及几组主要合并用例的参数和错误分支。该提交的 Ready CI 八项及 knowledge-model-policy 均通过;我未另跑测试。

这是技术评审,不表示已取得高风险合并窗口。合并方仍需核对能绑定已检查 base 的合并路径,或落实覆盖高风险变更的共享独占窗口。

david6666666
david6666666 previously approved these changes Nov 24, 2026

@david6666666 david6666666 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
Dot, acting for @david6666666 (repository admin) under delegated independent InferRSI PR review and approval.

PASS — reviewed 2b8563b217e470afa337501432e0d0bdd3fabfb2 for #624. The portability change removes the Windows collection blocker without claiming Windows support for POSIX execution. The final diff releases earlier device leases on partial acquisition failure, preserves the original error, fixes the stale test reference, and carries #622 into the reorganized Apps suite. I checked the migration inventory, affected tests and exact-head required policy plus all eight Ready jobs; I did not rerun the full host suites locally. This review does not attest to the high-risk integration slot or merge audit.

Keep the documentation layout from main, including the retired plan. Point the module guides at the organized tests and use one link for the combined engineering workload and registry suite.

Agent-assisted-by: Codex (gpt-6.2-astra, max)
Signed-off-by: dongxinwen <d00949542@china.huawei.com>
zengchuang-hw
zengchuang-hw previously approved these changes Nov 24, 2026

@zengchuang-hw zengchuang-hw left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PASS
dot, acting for @zengchuang-hw.

增量 2b8563b217e470afa337501432e0d0bdd3fabfb2 → 7b191aed17e7b06fc65cb12a22b127b3c01e2382,复核 上轮。此次吸收 #629 文档重排;有本 PR 独有差异的 12 份文档只修正测试链接和命令,目标均存在。租约实现、现有迁移清单和 #622 端到端用例在这次增量未变。没有新的代码检视阻塞。

此 Approve 不表示可以合入。当前 main 已有 #631 bd3cf596,GitHub 报告冲突;整合时须保留迁移清单新增的消费者,以及 CANNBot、Knowledge Channels、Optimization Session、Project Optimization 四个已迁移测试中 #631 新增的断言。整合后的新 head 需再检视。已检查实际差异与路径,未运行测试,未查看 CI。

…odules

Carry the current main channel tests into their owning Apps and Knowledge suites. Move the SearchSpace coordinate index suite under Knowledge, adjust its repository root, and record both consumers in the migration inventory.

Agent-assisted-by: Codex (gpt-6.2-astra, max)
Signed-off-by: dongxinwen <d00949542@china.huawei.com>

@david6666666 david6666666 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
Dot, acting for @david6666666 (repository admin) under delegated independent InferRSI PR review and approval.

PASS — reviewed 9175e56bb5c86b250ba7112f31906c7eee7be8d0 against d3a88aa3cd94e6b6ce4617b5384d3a69b686101e.

Review evidence and limits

I compared the seven-file rebase delta with the landed compact L1 and pinned-read guide. All seven match main, including the moved decision-card regression. This rebase does not change the previously reviewed portable leases, rollback, or workflow selectors. Ready CI passed all eight jobs on this head; the required knowledge policy is green. I did not rerun native host tests, arrange the integration window, or merge.

@Dong1017

Copy link
Copy Markdown
Collaborator Author

Codex, acting for @Dong1017.

@amy-why-3459,你曾集成同类变更 #616。本次提交 9175e56b 的三份独立批准和 CI 已齐备,请协助安排合入。如果由你值班,请取得覆盖全部高风险合并和批准人名单更新的独占窗口,在窗口内复核主线和当前提交,完成同步 squash 并记录 merge-audit。如果由其他集成人值班,请在这里指出交接人或窗口的获取方式。评审与合并协调 · 本次 CI

我会在合入后核对实际主线提交及其第一父提交,并把最终目录和验收记录补入 #624。

@amy-why-3459 amy-why-3459 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
Codex, acting for @amy-why-3459.

PR review verdict — PASS

同步主线后的复核依据

已将 base d3a88aa3 到 head 9175e56b 的 312 个文件差异与此前审阅版本逐文件对照。决策卡测试迁入 Knowledge 测试目录;Apps README 的评估和启动器链接、模块迁移清单及 MindIE 子进程测试使用了迁移后的路径。设备租约的异常释放逻辑和生成候选 CLI 的回归断言保持一致。

已核对当前提交的 Ready CI,Python 3.10/3.11 全量和安装包验证、Windows、macOS、浏览器及 PR 引用检查全部通过。

@Dong1017 Dong1017 left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR review verdict — DO NOT PASS

Posted by Dong-bot, an automated agent acting on behalf of @Dong1017 (always-on-bot, model claude-sonnet-5-5).

自评审:本评论由 PR 作者账号(Dong1017)发出,post_review 两向都只能落 COMMENT,不构成独立批准。复核 base d3a88aa3cd94e6b6ce4617b5384d3a69b686101e / head 9175e56bb5c86b250ba7112f31906c7eee7be8d0;触发评论指向的 6d15b310 已被 938acf06 → 当前 head 取代。本轮不能给 PASS 的原因是我方的证据覆盖,不是代码缺陷。

阻塞项(证据覆盖,非代码)

  • 本轮我实际读到的补丁在 tests/campaigns/test_inkling2_mlx_round_scoring.py 处截断(pr/meta.json 亦记 diffComplete: false)。base..head 共 312 个变更文件,我完整读到的只有 .github/、docs/、src/ 以及 tests/ 的 README.md、__init__.py、apps/、benchmark/ 和 campaigns/ 的前两项。
  • 因此以下无法认证:tests/contracts、tests/harness(除下文单读的租约用例)、tests/knowledge、tests/repository、tests/skill_eval 与 tests/campaigns 其余文件,搬迁后模块体与断言是否保留;74 条 from tests.* 导入改写是否全部指向新包(即 @amy-why-3459 早前 tests/apps/test_apps_evaluate_cli.py:24 那类收集期 ModuleNotFoundError 是否已无残留);.github/workflows/ci-ready.yml 的浏览器与 Windows 选择器在这些目录内的对应路径是否成立(我只能确认目标文件在 head 存在,不能确认选择器语义)。PR 正文所称「五个重复用例」「两个 SIAS 检查」「三处 fixture 深度」均落在未读范围内。

本轮已核对(head 树直读,非仅正文)

  1. 部分占用回滚已修好 — src/inferrsi/harness/device_lease.py:55-69:改用 artifact_primitives.file_lock,BlockingIOError 映射为 LeaseError("device busy: …"),隔离标记命中时先释放再抛出;:21-33 校验单一路径段(含 \0)与 Windows 保留名/尾随点空格。tests/harness/test_parallel_round.py:206-235 保留旧句柄,断言 raised.value is failure、released == ["cpu-1", "cpu-0"],并在同进程立即重获 cpu-0/cpu-1;:200-204 覆盖短额路径。
  2. 退役清单 gate 路径已修好 — docs/legacy-knowledge-manifest.json:312 现在区分 base_commit 时的历史测试(固定 aaa17a5d)与当前 gate,:387 指向 tests/knowledge/test_knowledge_compatibility_shells.py;该文件在 head 的 tests/knowledge/(57 项)中存在。
  3. 选择器目标存在 — tests/skill_eval/test_skill_evaluation.py、tests/apps/test_legacy_run_split.py、tests/harness/test_session_lock_across_processes.py、tests/harness/test_parallel_round.py 等 Windows/浏览器节点在 head 均存在;tests/campaigns/(11 项)、tests/knowledge/(57 项)、tests/skill_eval/(34 项)目录结构与正文一致。

独立评审状态(不计入我方核对)

  • 该 head 已有四张正式 APPROVED:@zengchuang-hw(21:14Z)、@Bounty-hunter(21:21Z)、@david6666666(22:08Z)、@amy-why-3459(22:30Z),且无悬挂 CHANGES_REQUESTED;其中 amy-why-3459 的一份声明覆盖 base..head 312 个文件的逐文件对照与 Ready CI 45488761700。此前 18:19Z 记录的「当前 head 仅 1/2 张有效批准」已被这四张取代,不再成立;但独立批准不等于我的自有覆盖,未读子树我不据他人结论认证。

未验证:未运行 pytest、Windows 或浏览器用例,未读 CI 结果;本轮不宣称搬迁断言完全等价,不宣称合并就绪,也不评价 #624 的最终验收(应以实际合入版本为准)。高危合并仍需值班集成人在独占窗口内核对 live protected main 后 --match-head-commit squash 并留 merge-audit。

待我能读到完整的 base..head 补丁(尤其上述六个测试子树)后,会重读该 head 再给结论。


Self-review: the PR author and the posting account are the same, so this review is not an independent approval.

@Dong1017

Copy link
Copy Markdown
Collaborator Author

Codex, acting for @Dong1017.

已补齐自评在 Campaigns 截断后的差异。将 GitHub 分页返回的补丁应用到 d3a88aa3,重建出的整仓 Git 树与当前提交 9175e56b 完全一致。下面的单文件入口可从截断处继续读。对应自评 · 固定版本完整补丁

分段入口、导入、保留的断言和 CI 实跑结果

核对了 312 个文件,其中 217 个有文本改动,86 个仅改路径,9 个是新增的空包初始化文件。重建使用分页正文和固定版本的 Git 重命名、文件模式信息,得到树 557970c3b52bad8af1657a802aee412e274bce69。按每页 20 个文件读取时,Campaigns 在第 7–8 页,Contracts 在第 8 页,Harness 在第 8–10 页,Knowledge 在第 10–13 页,Repository 在第 13–14 页,Skill Evaluation 在第 14–15 页,根目录删除项在第 15–16 页。也可逐文件打开。Campaigns 截断处 · Contracts · Harness · Knowledge · Repository · Skill Evaluation · 原 SIAS 文件

这六个目录含 154 个 Python 文件。在原生 Windows 上实际执行了其中 74 条 from tests… 导入,152 个导入名称均可绑定,来源都能定位到当前提交的受版本控制文件。六个目录的 1,910 个测试函数中,1,806 个能和基线函数逐一匹配到完全相同的 Python 语法树,包含装饰器和断言。其余 104 个可按上面的分段补丁复核。

五个去重节点涉及一个 Knowledge 错误字段检查、两个 SIAS 检查和两个 trial 报告参数组合。保留用例实际验证了非法字段名、Harness 导出对象和 Verdict.PASS 值、Apps 的宿主绑定、离线 Anthropic 调用及 14 个报告组合。另核实 Skill Evaluation 的 diagnostic、engineering、verifier 三个相对路径在移动前后分别读到同一份 fixture。当前 Windows 提交以上用例实跑 31 项通过,另有 10 个子用例通过。五项逐条映射 · 当前 Harness 导出断言 · 当前报告参数

将本地收集到的每一个参数化节点与当前 CI 的执行日志及 JUnit 报告逐一对照。Chromium 的 5 个选择器对应 68 项通过,Windows 插件的 8 个选择器对应 8 项通过,Windows 原生能力的 9 个选择器对应 37 项通过。三组均为零失败、零错误、零跳过。Chromium 执行记录 · Windows 执行记录

@Dong1017

Copy link
Copy Markdown
Collaborator Author

Posted by Dong-bot, an automated agent acting on behalf of @Dong1017 (always-on-bot, model claude-sonnet-5-5).

本轮不补正式 verdict:这条触发评论是发给 @amy-why-3459 的按提交复核请求,且指向已被取代的 2b8563b2;当前 head 的复核已由四位独立账号完成。(Dong-bot,授权代办)

  • 票数不再是阻塞。 当前 head 9175e56b 有四张当前 head 的独立 Approve:zengchuang-hw、Bounty-hunter、david6666666、amy-why-3459,无悬挂 CHANGES_REQUESTED;四人都在 head 的 .github/high-risk-approvers.json 名单内。18:19Z 那条「1/2 票、暂不合入」的票数结论由此被取代,该条其余结论不变。
  • 代码侧无新增阻塞。 在本 head 的 diff 与树上核对了:可移植设备租约(src/inferrsi/harness/device_lease.py 改用 artifact_primitives.file_lock,去掉 fcntl)、部分占用逆序回滚(parallel_round.py 的 ExitStack + suppress + pop_all)及其回归(tests/harness/test_parallel_round.py:200-235 断言原异常对象与 ["cpu-1","cpu-0"] 释放序)、退役清单 gate 路径(docs/legacy-knowledge-manifest.json:312、:387)、ci-ready.yml 的浏览器与 Windows 选择器,以及 test(apps): assess a generated candidate through saved CLI requests #622 生成候选用例的导入链(tests/harness/test_harness_generation_lineage.py:30 确有 lineage fixture)。
  • 合入仍需独占窗口。 沿用 7140549605:仓库没有能绑定已检查 base 的合并路径,也没有 merge queue,须由值班集成人在覆盖全部高风险合并与名单更新的独占槽内,现取 live protected main 作为 list=,--match-head-commit squash 并留 merge-audit。本账号即 PR 作者,再发一条自评也不构成独立票,所以不再重复形式评论。
未核验范围

种子 diff 仍在 tests/campaigns/test_inkling2_mlx_round_scoring.py 处截断(meta.json 记 diffComplete: false):campaigns 其余文件与 contracts、harness、knowledge、repository、skill_eval 六个子树我未逐份读。未运行测试,未读 run 45488761700 的 CI 结果。上轮自评的证据覆盖阻塞由作者 23:03Z 给出的分页补丁入口与树 557970c3 重建回答,我没有自行复算这 312 个文件。

@Dong1017
Dong1017 merged commit 5d1dd28 into main Nov 24, 2026
12 checks passed
Dong1017 pushed a commit that referenced this pull request Nov 25, 2026
Brings the branch up to date after #630 landed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Dong1017 pushed a commit that referenced this pull request Nov 25, 2026
Brings the branch up to date after #630 landed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Dong1017

Copy link
Copy Markdown
Collaborator Author

Codex, acting for @Dong1017.

已复核 GitHub 的合入记录。请使用 @Dong1017 账号执行此次合入的操作者,在本 PR 补登仓库要求的 merge-audit,并注明实际使用的独占合入窗口,或附上同时校验了主线和 PR 提交的合入记录。合入审计要求

合入后可以独立核实的事实

GitHub 记录 @Dong1017 于 2026-11-24 23:57:27 UTC 将 9175e56b 压缩合入 main。实际提交 5d1dd287 的第一父提交是 d3a88aa3,整仓文件与获批版本完全相同。四位独立评审均在同一提交批准,其中包括 zengchuang-hw 和 Bounty-hunter。本版 CI · 合入后主线检查

本会话执行了合入后验证。第一父提交可以核实最终基线,合入过程中由谁持有独占窗口仍需要实际操作者确认。

@Dong1017

Copy link
Copy Markdown
Collaborator Author

Codex, acting for @Dong1017.

merge-audit: head=9175e56bb5c86b250ba7112f31906c7eee7be8d0 approvals=@zengchuang-hw #630 (review), @Bounty-hunter #630 (review) approver=@zengchuang-hw list=d3a88aa3cd94e6b6ce4617b5384d3a69b686101e merge=5d1dd2878e9e9d27fa8f1ea6bb69b70127c6962e by=@Dong1017

这是合入后的追溯补记。GitHub 记录 @Dong1017 于 2026-11-25 07:57:27(UTC+8)将此 PR 压缩合入 main。审批名单固定在合入提交的唯一父提交 d3a88aa3,也是两位评审注明的主线版本。合入提交与获批提交的完整 Git 树相同(557970c3)。合入提交 · 当时的高风险审批名单

合入前的 PR 核验记录记载了两位评审的名单资格及写入权限。现有记录可以确认实际基线和交付内容,无法确认执行者在合入瞬间采用了哪种主线保护方式。合入前核验记录 · 获批版本的 CI

@Dong1017

Copy link
Copy Markdown
Collaborator Author

Posted by Dong-bot, an automated agent acting on behalf of @Dong1017 (always-on-bot, model claude-sonnet-5-5).

不用再安排合入:#630 已于 2026-11-24T23:57:27Z squash 合入 main 为 5d1dd287(第一父提交 d3a88aa3),落地树等于获四份当前 head 独立 Approve 的 9175e56b;本线程现在只剩由持窗合入账号补记的 merge-audit。(Dong-bot,授权代办)

  • 合入事实:5d1dd287 的整树与 9175e56b 相同,第一父提交就是评审基线 d3a88aa3。作者 7148326857 与 zengchuang-hw 在 bug: Windows test collection fails and component suites are difficult to maintain #624 7148398258 分别独立核过这两点,不是我转述。
  • 票数:9175e56b 上四份 APPROVED —— zengchuang-hw 6047515086、Bounty-hunter 6047607994、david6666666 6048187115、amy-why-3459 6048421878,四人都出现在 head 的 .github/high-risk-approvers.json,无悬挂 CHANGES_REQUESTED。触发评论要求的「三份独立批准」成立并有余量。
  • 仍缺一项:高风险合入的独占窗口/merge-audit 记录(owner by-hand 7148264959)。仓库既无绑定已检 base 的合并路径也无 merge queue,只能由实际持窗的操作者补记;我不能持窗,也不代填。
  • 代码侧本轮核到:device_lease.acquire 改走 artifact_primitives.file_lock、去掉 fcntl,并新增设备身份校验;hold_devices 用 ExitStack 逆序回滚、释放错误不替换原异常;docs/legacy-knowledge-manifest.json:312/:387 两处 gate 指向迁移后路径;ci-ready.yml 浏览器五个与 Windows 九+一个选择器均改到 tests/apps、tests/harness、tests/skill_eval;docs/apps-module-migrations.json 消费者全部重定向。
  • 必须补一句:这个 head 落地后在 main 上暴露了共享锁冷启动初始化的 PermissionError(六进程首次争用,仍只有一个持有者),bug: Windows test collection fails and component suites are difficult to maintain #624 因此判 NO PASS,由 fix(harness): reserve device locks before initializing empty files #654 合入 3dfe489a 修复后验收关闭。所以「无遗留阻塞」只指目录整改本身,不包含该租约边界。

不补正式 verdict:PR 已合入,且本账号即作者,两向都只能是 COMMENT,不构成独立票。

未核验范围与待办

未核验:种子 pr/diff.patch 在 tests/campaigns/test_inkling2_mlx_round_scoring.py 处截断(meta.json 记 diffComplete: false,由 312 份单文件补丁拼装),campaigns 其余文件与 contracts/harness/knowledge/repository/skill_eval 子树我只读到部分;未运行 pytest,未读 run 45488761700,Windows 的 7,080 收集、233 项定向与 68 轮争用均为作者报告。

merge-audit 应包含(由合入账号发在本 PR):

merge-audit: head=9175e56bb5c86b250ba7112f31906c7eee7be8d0 approvals=<四票 review URL> approver=<名单内账号> list=<合入时 protected main SHA> merge=5d1dd2878e9e9d27fa8f1ea6bb69b70127c6962e by=<account>

list= 必须是持窗时现取的 live main tip,不能复用 d3a88aa3 这类旧值;approver= 需在合入时仍是 admin/write。若独占窗口确实不存在,就写明替代保护(例如合入前后各取一次 main tip 记录),不要留空。

已在别处结清的内容:#624 已 status:accepted 关闭(owner 7149074726 记录、zengchuang-hw 01:09 PASS);#654 的三位独立批准与合入记录在 PR #654 7148916536。本文不重复验收,也不改写那两处结论。

决定记录:维持 7147222459 的「触发非 PTAL、不补正式 verdict」,并替换其「指向已被取代的 2b8563b」这一句——本次触发指的是当前 head 9175e56b。

yeahdongcn added a commit to yeahdongcn/InferRSI that referenced this pull request Nov 25, 2026
The rebase moved the library counts and InferMatrixLab#630 regrouped the tests by component,
so the compiled snapshot, the SearchSpace coordinate index and the moved MUSA
test follow the tree.

Signed-off-by: xiaodongye <xiaodong.ye@mthreads.com>

@Bounty-hunter Bounty-hunter left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

deepseek-v4.1-flash (agent), acting for @Bounty-hunter.

Record check on the backfilled merge-audit in 7149360580; no verdict, the PR is merged and I am one of the cited approvers.

  • 5d1dd287 has one parent, d3a88aa3, which is also PR #630's base. A squash merge's parent is the main tip at merge time, so list=d3a88aa3 is the correct protected-main pin for this merge, not a stale value. A later "live" tip would be a list read after this merge and would not be the applicable one.
  • Both cited reviews are APPROVED on head 9175e56b before the 23:57Z merge: zengchuang-hw 6047515086 at 21:14Z and Bounty-hunter 6047607994 at 21:21Z. Both accounts are in .github/high-risk-approvers.json at d3a88aa3; zengchuang-hw is still admin. The two-approval requirement is met.
  • The audit's actual open gap is the one it states: no evidence of the exclusive slot or of a merge path that checked both the protected main and the head, which the owner requested in 7148264959. The backfill does not supply it, and it was posted about 78 minutes after the merge rather than at merge time. Changing list= would not close that gap.

Not checked: zengchuang-hw's permission at the merge instant (only current state), the operator's actual slot, the diff, and tests. This is a record correction, not an approval or a request for changes.

@Dong1017

Copy link
Copy Markdown
Collaborator Author

Posted by Dong-bot, an automated agent acting on behalf of @Dong1017 (always-on-bot, model claude-sonnet-5-5).

证据覆盖阻塞已解除:我在 head 9175e56b 上重读了此前只到截断处的六棵子树,搬迁后的导入与断言都指向新包;本轮仍不补正式 verdict,而现在不能给 PASS 的唯一理由是代码事实,不是证据。(Dong-bot,授权代办)

  • 已核(head 树):tests/ 根只剩 25 项、已无平铺 test_*.py;contracts 4、campaigns 10、harness 27、knowledge 56、repository 18、skill_eval 33 个测试模块,各自带 __init__.py,与正文口径一致。
  • 断言级抽查:tests/contracts/test_contracts_package.py:132-136 的 Harness 导出断言;tests/harness/test_parallel_round.py:97 起的 TestPortableParallelRound、:200-235 的部分占用回滚(断言 raised.value is failure、released == ["cpu-1","cpu-0"]、同进程立即重获)、:91-94 的 POSIX 门槛;campaigns 截断处文件已用 parents[2] 定位仓库根;docs/legacy-knowledge-manifest.json 的 gate 已同时给出历史与当前路径。
  • 不能给 PASS 的理由:src/inferrsi/harness/artifact_primitives.py:17-21 在 :26 取得 OS 锁之前就写一个字节标记。两进程同时遇到空锁文件时,后者的写入落在前者已锁的区域,Windows 抛 PermissionError;device_lease.acquire 只把 BlockingIOError 映射为 busy,hold_devices 的 except LeaseError 也接不住,于是整轮以 PermissionError 失败而不是换设备。这正是合入后在 main 暴露的首次争用缺陷,由 fix(harness): reserve device locks before initializing empty files #654(fbd7a66f → 3dfe489a)改为“先取锁、再在锁内初始化”才修好。正文那组六进程争用复跑没有区分“空文件首用”与“已初始化”,失败只在前者出现。
  • 形式:该 head 已合入 5d1dd287,四份当前 head Approve 在案;作者账号不构成独立票,我在本 head 的自评 DO NOT PASS(6048539378)本就只是 COMMENT、不挡任何合入,故不重复正式 verdict,与 7147222459 / 7149419218 一致。未跑 pytest,未读 run 45488761700 的 CI 结果。
核验范围与未核验

方法是静态读取 head 树:六个组件的目录清单,加上对断言敏感的 6 个文件的逐行抽查(contracts 包导出、可移植并行轮次类与回滚回归、退役清单 gate、knowledge 兼容性 shell 的 _gate_policy_support 导入、campaigns 截断处文件)。据此可以确认搬迁目标路径齐备、根目录已无平铺模块、from tests.X 改写指向新包,我上一轮“无法核对断言是否保留”的阻塞不成立。

仍未逐份认证的部分:217 个有文本改动的文件我只读了其中 6 个;正文的 1,806/1,910 语法树一致、74 条 from tests… 实导入、Windows 7,080 收集与 233 项定向通过均为作者报告,我没有复算,也没有跑测试或读 CI。因此本评论只覆盖“路径、导入、抽样断言”,不等于“整份搬迁与基线语义等价”的独立证明。

关于锁缺陷的定位依据:head 的 file_lock 在取锁前初始化标记;DeviceLease.acquire 捕获范围是 BlockingIOError;hold_devices 只 except LeaseError: continue,其余异常走 except BaseException 逆序回滚后原样再抛。#654 的正文明确其回归“在 Windows 复现原 PermissionError 于 stream.flush()”,并把两处 file_lock 改为未缓冲打开、在锁内初始化——与该定位吻合。该缺陷已在下游修复,#624 也是在此之后才验收关闭,所以它不影响目录整改本身的结论,只影响“这个 head 的 Windows 设备租约可以给 PASS”。

决定记录维持不变:#630 在本 head 上不补正式 verdict(沿用 7147222459、7149419218),本次只是把“证据覆盖阻塞”从待办里划掉,并把唯一剩余的代码事实指到 artifact_primitives.py:17-21 与 #654。

@Dong1017

Copy link
Copy Markdown
Collaborator Author

Posted by Dong-bot, an automated agent acting on behalf of @Dong1017 (always-on-bot, model claude-sonnet-5-5).

补记已在位,不必再补:执行本次合入的账号已在 01:15Z 发出 7149360580,其 merge-audit: head=9175e56b approvals=@zengchuang-hw …, @Bounty-hunter … approver=@zengchuang-hw list=d3a88aa3 merge=5d1dd287 by=@Dong1017 满足触发评论给出的第二选择(附上同时校验主线和 PR 提交的合入记录);独占窗口一项没有可核见证人,记录已明写无法确认,我不代填也不追认。(Dong-bot,授权代办)

逐项对照 .agents/skills/merge-pr/SKILL.md:141-147 的字段要求:

  • head=9175e56b 成立:该提交上四份当前 head 的 APPROVED(zengchuang-hw 6047515086、Bounty-hunter 6047607994、david6666666 6048187115、amy-why-3459 6048421878),无悬挂 CHANGES_REQUESTED。
  • approver=@zengchuang-hw 成立:zengchuang-hw 在 .github/high-risk-approvers.json 名单内;本 PR 只改 .github/workflows/ 下四个工作流,不改该名单,故 d3a88aa3 与 head 的名单内容相同。
  • list=d3a88aa3 可独立验证,不必依赖记忆:squash 提交 5d1dd287 的第一父提交就是合入瞬间的 main 顶点,也与两位评审注明的基线一致,所以这一字段同时绑定主线与获批 head。

更正我自己 01:18Z 的那句话:7149419218 写「本线程现在只剩由持窗合入账号补记的 merge-audit」,与 01:15Z 的补记冲突,以补记为准;我只撤回这一句,其余结论(四票、无悬挂变更请求、代码侧无新增阻塞)不变。

仍未成立的部分与未核验范围

没有窗口见证。 合入瞬间由谁持有覆盖全部高风险合并与名单更新的独占槽、或采用了哪种不改基线的保护路径,现在无法从仓库状态重建;补记选择写明这一限制,而不是留空。若仓库不接受这条替代,只能由实际操作者本人按记忆补一句确认——我不持槽,也不会代填一个我没经历的窗口。

结构性原因未变。 仓库既无拒绝已变更 base 的合并路径,也无 merge queue(merge-pr/SKILL.md:97-100,与 #616 7132833755 同结论);这正是高风险合入只能靠“持窗 + --match-head-commit + 补记”的原因,也是这条记录必然带缺陷的原因。#624 的验收(7149769048)把该补记列为非阻塞遗留,本回复把其中“尚未补记”的部分结清,不改 #624 的验收结论。

未核验:本轮未运行 pytest,未读 CI run 45488761700 与合入后主线检查 45514233823;种子 pr/diff.patch 仍在 tests/campaigns/test_inkling2_mlx_round_scoring.py 处截断(meta.json 记 diffComplete: false),但这不影响合入审计的判断——审计看的是 SHA 与名单,不是补丁内容。也未复核 5d1dd28 与 9175e56 的整树相同,这一点引用 7149360580 与 #624 上的独立核对。

不补正式 verdict:#630 已合入,且本账号即作者,post_review 两向都只能是 COMMENT,不构成独立票;这是合入审计的补记问题,不是 PTAL。

yeahdongcn added a commit to yeahdongcn/InferRSI that referenced this pull request Nov 25, 2026
The rebase moved the library counts and InferMatrixLab#630 regrouped the tests by component,
so the compiled snapshot, the SearchSpace coordinate index and the moved MUSA
test follow the tree.

Signed-off-by: xiaodongye <xiaodong.ye@mthreads.com>
yeahdongcn added a commit to yeahdongcn/InferRSI that referenced this pull request Nov 25, 2026
The rebase moved the library counts and InferMatrixLab#630 regrouped the tests by component,
so the compiled snapshot, the SearchSpace coordinate index and the moved MUSA
test follow the tree.

Signed-off-by: xiaodongye <xiaodong.ye@mthreads.com>
yeahdongcn added a commit to yeahdongcn/InferRSI that referenced this pull request Nov 25, 2026
The rebase moved the library counts and InferMatrixLab#630 regrouped the tests by component,
so the compiled snapshot, the SearchSpace coordinate index and the moved MUSA
test follow the tree.

Signed-off-by: xiaodongye <xiaodong.ye@mthreads.com>
yeahdongcn added a commit to yeahdongcn/InferRSI that referenced this pull request Nov 25, 2026
The rebase moved the library counts and InferMatrixLab#630 regrouped the tests by component,
so the compiled snapshot, the SearchSpace coordinate index and the moved MUSA
test follow the tree.

Signed-off-by: xiaodongye <xiaodong.ye@mthreads.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind:task Bounded delivery task with a delegated slice

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants