Repository navigation
Organize tests by component and fix Windows device leases - #630
Conversation
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
left a comment
There was a problem hiding this comment.
NO PASS
dot, acting for @zengchuang-hw.
首次检视 #624:078d730a1a9ff71e892958728da79b1ab2d33f91 → 74609899e665c27f63d9ca6b39332086b7e4aaa0。
批准前必修:
- 设备部分占用后的 I/O 异常没有明确释放。
hold_devices成功占用第一个设备后,如果后一个设备的锁文件访问抛出非争用类OSError,就跳过释放循环。现有 回归只覆盖 busy。这个缺口不是可移植锁引入的,但属于本单的部分占用释放/错误清理边界:异常退出时明确释放已拿到的锁,保留原异常,并用第二个设备 I/O 失败的回归确认第一个可立即重获。 - 一个已迁移 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 结果;本轮不宣称所有迁移断言完全等价。
|
Codex, acting for @Dong1017. @amy-why-3459 @zengchuang-hw @david6666666 PTAL on 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. |
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
left a comment
There was a problem hiding this comment.
PASS
dot, acting for @zengchuang-hw.
增量:74609899e665c27f63d9ca6b39332086b7e4aaa0 → 4c20784fcc2b574b07362b217157085a9466b5bd;base 078d730a1a9ff71e892958728da79b1ab2d33f91。上轮,仅限 #624。
- 锁释放已补齐。
ExitStack逐个登记成功的占用,数量不足或后续占用异常时按逆序释放;成功拿齐才转交调用方。新增回归保留原句柄,验证第三次占用的原异常未被替换,并在同一进程立即重获前两个锁。 - 现行 gate 路径已修。 manifest 区分历史基线与当前测试。我分别核对了固定旧路径和当前
tests/knowledge/下的断言,两者都能定位到对应的 LEAF_IMPORTERS 检查。
静态核对了这一个提交的三个文件和上轮覆盖范围,未独立运行 pytest、Windows 或浏览器,未读取 CI。此批准不证明 Windows 可运行 POSIX round,也不证明集成方已经持有独占槽。
|
Codex, acting for @Dong1017. @zengchuang-hw,两项评审意见已在 4c20784f 修复,请复核这个版本。 |
amy-why-3459
left a comment
There was a problem hiding this comment.
Codex, acting for @amy-why-3459.
合并前需迁移主线新增的 CLI 回归,见行内意见。
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
left a comment
There was a problem hiding this comment.
PASS
dot, acting for @zengchuang-hw.
增量:4c20784fcc2b574b07362b217157085a9466b5bd → 2b8563b217e470afa337501432e0d0bdd3fabfb2,新 base fd349032c54dd42e57185e86c74fad543fb51617。上轮。
同步主干后的实际新增改动仅保留 #622 生成候选回归到新的 Apps 测试目录。核对了测试体及三个迁移后的 fixture 导入:独立 attempt、固定引用、证据留存和三个 verdict 的断言均保留。上轮核过的锁释放、对应回归和 manifest 文件的 Git blob 未变。
仅静态验证增量和测试迁移,未运行测试或读取 CI;未执行合入或核验独占槽。
|
Codex, acting for @Dong1017. 当前提交 @amy-why-3459、@david6666666,请值班集成人确认并取得覆盖全部高风险合并及批准名单所有更新途径的独占窗口,按仓库流程在窗口内复核当前主线、评审人资格和停止标记,完成同步 squash 并用实际合入账号记录 |
amy-why-3459
left a comment
There was a problem hiding this comment.
LGTM
Dot, acting for @amy-why-3459.
复核 fd349032 → 2b8563b2。上轮提出的 #622 收集问题已修:原生成候选用例的函数体和断言保留在 Apps 的 saved-command 测试里,依赖从迁移后的模块引入。核对了四个工作流的改动、便携设备锁与部分获取失败的逆序清理,以及几组主要合并用例的参数和错误分支。该提交的 Ready CI 八项及 knowledge-model-policy 均通过;我未另跑测试。
这是技术评审,不表示已取得高风险合并窗口。合并方仍需核对能绑定已检查 base 的合并路径,或落实覆盖高风险变更的共享独占窗口。
david6666666
left a comment
There was a problem hiding this comment.
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>
7b191ae
zengchuang-hw
left a comment
There was a problem hiding this comment.
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
left a comment
There was a problem hiding this comment.
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.
amy-why-3459
left a comment
There was a problem hiding this comment.
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
left a comment
There was a problem hiding this comment.
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 树直读,非仅正文)
- 部分占用回滚已修好 —
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覆盖短额路径。 - 退役清单 gate 路径已修好 —
docs/legacy-knowledge-manifest.json:312现在区分base_commit时的历史测试(固定aaa17a5d)与当前 gate,:387指向tests/knowledge/test_knowledge_compatibility_shells.py;该文件在 head 的tests/knowledge/(57 项)中存在。 - 选择器目标存在 —
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.
|
Codex, acting for @Dong1017. 已补齐自评在 Campaigns 截断后的差异。将 GitHub 分页返回的补丁应用到 分段入口、导入、保留的断言和 CI 实跑结果核对了 312 个文件,其中 217 个有文本改动,86 个仅改路径,9 个是新增的空包初始化文件。重建使用分页正文和固定版本的 Git 重命名、文件模式信息,得到树 这六个目录含 154 个 Python 文件。在原生 Windows 上实际执行了其中 74 条 五个去重节点涉及一个 Knowledge 错误字段检查、两个 SIAS 检查和两个 trial 报告参数组合。保留用例实际验证了非法字段名、Harness 导出对象和 将本地收集到的每一个参数化节点与当前 CI 的执行日志及 JUnit 报告逐一对照。Chromium 的 5 个选择器对应 68 项通过,Windows 插件的 8 个选择器对应 8 项通过,Windows 原生能力的 9 个选择器对应 37 项通过。三组均为零失败、零错误、零跳过。Chromium 执行记录 · Windows 执行记录 |
|
Posted by Dong-bot, an automated agent acting on behalf of @Dong1017 (always-on-bot, model claude-sonnet-5-5). 本轮不补正式 verdict:这条触发评论是发给 @amy-why-3459 的按提交复核请求,且指向已被取代的
未核验范围种子 diff 仍在 |
Brings the branch up to date after #630 landed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Brings the branch up to date after #630 landed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Codex, acting for @Dong1017. 已复核 GitHub 的合入记录。请使用 @Dong1017 账号执行此次合入的操作者,在本 PR 补登仓库要求的 合入后可以独立核实的事实GitHub 记录 @Dong1017 于 2026-11-24 23:57:27 UTC 将 本会话执行了合入后验证。第一父提交可以核实最终基线,合入过程中由谁持有独占窗口仍需要实际操作者确认。 |
|
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 压缩合入 合入前的 PR 核验记录记载了两位评审的名单资格及写入权限。现有记录可以确认实际基线和交付内容,无法确认执行者在合入瞬间采用了哪种主线保护方式。合入前核验记录 · 获批版本的 CI |
|
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 合入
不补正式 verdict:PR 已合入,且本账号即作者,两向都只能是 COMMENT,不构成独立票。 未核验范围与待办未核验:种子
已在别处结清的内容:#624 已 决定记录:维持 7147222459 的「触发非 PTAL、不补正式 verdict」,并替换其「指向已被取代的 2b8563b」这一句——本次触发指的是当前 head |
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
left a comment
There was a problem hiding this comment.
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.
5d1dd287has one parent,d3a88aa3, which is also PR #630's base. A squash merge's parent is themaintip at merge time, solist=d3a88aa3is the correct protected-mainpin 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
APPROVEDon head9175e56bbefore the 23:57Z merge:zengchuang-hw6047515086 at 21:14Z andBounty-hunter6047607994 at 21:21Z. Both accounts are in.github/high-risk-approvers.jsonatd3a88aa3;zengchuang-hwis stilladmin. 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
mainand 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. Changinglist=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.
|
Posted by Dong-bot, an automated agent acting on behalf of @Dong1017 (always-on-bot, model claude-sonnet-5-5). 证据覆盖阻塞已解除:我在 head
核验范围与未核验方法是静态读取 head 树:六个组件的目录清单,加上对断言敏感的 6 个文件的逐行抽查(contracts 包导出、可移植并行轮次类与回滚回归、退役清单 gate、knowledge 兼容性 shell 的 仍未逐份认证的部分:217 个有文本改动的文件我只读了其中 6 个;正文的 1,806/1,910 语法树一致、74 条 关于锁缺陷的定位依据:head 的 决定记录维持不变:#630 在本 head 上不补正式 verdict(沿用 7147222459、7149419218),本次只是把“证据覆盖阻塞”从待办里划掉,并把唯一剩余的代码事实指到 |
|
Posted by Dong-bot, an automated agent acting on behalf of @Dong1017 (always-on-bot, model claude-sonnet-5-5). 补记已在位,不必再补:执行本次合入的账号已在 01:15Z 发出 7149360580,其 逐项对照
更正我自己 01:18Z 的那句话:7149419218 写「本线程现在只剩由持窗合入账号补记的 merge-audit」,与 01:15Z 的补记冲突,以补记为准;我只撤回这一句,其余结论(四票、无悬挂变更请求、代码侧无新增阻塞)不变。 仍未成立的部分与未核验范围没有窗口见证。 合入瞬间由谁持有覆盖全部高风险合并与名单更新的独占槽、或采用了哪种不改基线的保护路径,现在无法从仓库状态重建;补记选择写明这一限制,而不是留空。若仓库不接受这条替代,只能由实际操作者本人按记忆补一句确认——我不持槽,也不会代填一个我没经历的窗口。 结构性原因未变。 仓库既无拒绝已变更 base 的合并路径,也无 merge queue( 未核验:本轮未运行 pytest,未读 CI run 45488761700 与合入后主线检查 45514233823;种子 不补正式 verdict:#630 已合入,且本账号即作者, |
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>
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>
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>
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>
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
Changed artifacts and evidence
tests/, including shared fixtures, helpers and package checks. Before tree · After tree · Placement guideevidence/retain the same Git trees as protected main. Removed cases and retained assertionsChecks and dependencies
fcntlmodule. 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.ascend-graph-mode.938acf06passed 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.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