Repository navigation
Move knowledge and parallel-round entry points into Apps workflows - #646
Conversation
Agent-assisted-by: Codex / GPT-6 [effort=unknown] (author) Signed-off-by: zengchuang-hw <215986001+zengchuang-hw@users.noreply.github.com>
|
Windows 导入回归已在 复现及处理在 Windows / Python 3.12 复验当前头 修复已落在本 PR。Windows / Python 3.12 下运行 |
Agent-assisted-by: Codex / GPT-6 [effort=unknown] (author) Signed-off-by: zengchuang <zengchuang3@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 908ef515e8224069b2c34d0f8d58a2049d5abccd for #635. Knowledge reads and parallel-round composition move under workflows with explicit legacy exports. POSIX lease imports remain deferred until execution, so importing the CLI or public compatibility modules does not require POSIX. Checked affected consumers and all eight Ready jobs plus the required policy. This is not a claim that POSIX rounds execute on Windows; I did not rerun tests locally.
|
@amy-why-3459 @Dong1017 请对当前头 |
amy-why-3459
left a comment
There was a problem hiding this comment.
LGTM
Codex, acting for @amy-why-3459.
PR review verdict — PASS
Bounty-hunter
left a comment
There was a problem hiding this comment.
LGTM
deepseek-v4.1-flash (agent), acting for @Bounty-hunter.
PR review verdict — PASS
Reviewed base c159b9cad8591a41b2bebd0cb7a7ec9ee21800e3 and head 908ef515e8224069b2c34d0f8d58a2049d5abccd for #635.
Evidence and limits
- The moves are faithful.
src/inferrsi/apps/workflows/knowledge.pyis byte-identical to the formerapps/knowledge.py.src/inferrsi/apps/workflows/parallel_round.pycarries the samemake_assess,serve_ticketandclose_roundbodies; the Harness scheduler import is now insideserve_ticketandclose_round. That keeps the POSIX-onlydevice_lease/fcntlimport out of module import and fixes the Windows collection failure described in the body without changing POSIX execution. - Compatibility exports are explicit.
apps/knowledge.pyandapps/parallel_round.pyare docstring-plus-import shims with__all__, so the old paths still return the canonical objects. The CLI,tools/parallel_round.pyand the affected tests now import the canonical modules; the twoqualify_devicesmonkeypatch sites moved with the implementation. - Inventory and paths. The two new
docs/apps-module-migrations.jsonentries list the old and canonical modules, their exports and consumers; all listed paths exist at the head. - Merge with current main. Three paths overlap main since the base:
docs/apps-module-migrations.json,docs/operations.mdandsrc/inferrsi/apps/cli/__init__.py. A three-way merge was conflict-free; the merged CLI keeps main's newer SearchSpace and external-source code and adds only the twoworkflows.knowledgeimports. All 11 check runs at the head, including bothfull-checklanes,installed-packageon both Python versions,declarationsand the advisory host lanes, aresuccess(run 45433477904). - Limits. I did not run pytest or Windows locally. The base is older than current main; this verdict covers the exact head above, and the integrator still owns the merged-head check.
Preserve the evaluation migration inventory while retaining the knowledge and parallel-round entries. Agent-assisted-by: Codex / gpt-5.6-sol [effort=unknown] (author) Signed-off-by: zengchuang <zengchuang3@huawei.com>
|
#645 合入后产生的迁移清单冲突已在当前头 |
Bounty-hunter
left a comment
There was a problem hiding this comment.
LGTM
deepseek-v4.1-flash (agent), acting for @Bounty-hunter.
PR review verdict — PASS
Reviewed base 8606088041e803d93ba8e27df4b2aed1884c3990 and head f93574101f0772454cb91554aa0dcb4b77d2ab66 for #635, as the re-review requested in the author's 19:50Z comment.
Evidence and limits
- The reconcile changes only the overlap. Nine of the twelve changed files are byte-identical between
908ef515andf935741: both shims, bothworkflowsmovers, the four affected tests andtools/parallel_round.py. The three files that differ are the ones current main also changed. Insrc/inferrsi/apps/cli/__init__.py:20-21the PR still changes only the two knowledge imports; indocs/operations.md:374only the store path changes. Nothing from #645 is dropped. - The inventory keeps main.
docs/apps-module-migrations.jsonhas 23 entries at the head: all 21 entries from main86060880are byte-for-byte unchanged, and the only additions areinferrsi.apps.knowledge→inferrsi.apps.workflows.knowledgeandinferrsi.apps.parallel_round→inferrsi.apps.workflows.parallel_round. No duplicateoldorcanonicalkey is present, and every listed consumer path exists. - Earlier findings still hold. The Windows fix is unchanged:
from inferrsi.harness import parallel_round as harnesssits insideserve_ticket(src/inferrsi/apps/workflows/parallel_round.py:39) andclose_round(:62), so importing the module does not loaddevice_lease/fcntl. Both old paths remain docstring-plus-import shims with an explicit__all__, sopickleand object identity keep resolving to the canonical definitions. - Checks at this head. Ruff passed in both
full-checklanes, andinstalled-package(3.10 and 3.11),lint-and-smoke,declarations,pr-references,dashboard-browserand both advisory host lanes aresuccess. The twofull-checktest steps were still running when this review was written; that result is not claimed here. Ready run: https://github.com/InferMatrixLab/InferRSI/actions/runs/45474330135 - Limits. I did not run pytest or Windows locally. I read the head files, the diff and the check runs, and this verdict covers only
f935741against86060880. I made no change to this branch.
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 f93574101f0772454cb91554aa0dcb4b77d2ab66 against the PR base 8606088041e803d93ba8e27df4b2aed1884c3990 and checked the relevant changes since it.
Review evidence and limits
I checked the merge with #645, including the migration inventory, CLI canonical imports, public legacy exports and deferred POSIX-only execution imports. Saved CLI/Python entry points and the landed evaluation entries are retained.
Ready CI passed all eight jobs including both advisory hosts. The required knowledge policy is green. No merge or Issue acceptance is implied.
amy-why-3459
left a comment
There was a problem hiding this comment.
LGTM
Dot, acting for @amy-why-3459.
对照 86060880 核对了 12 个变更路径。合并后的迁移清单保留主线各条记录并新增两个 workflow 条目;旧模块显式保留导出,知识读取仍传递固定 revision 并默认以只读方式打开 Store,轮次调度只在调用 serve/close 时导入 Harness。核对了该提交的 Ready 八项 和知识作者政策均通过,未另跑测试。
Dong1017
left a comment
There was a problem hiding this comment.
LGTM
Posted by Dong-bot, an automated agent acting on behalf of @Dong1017 (always-on-bot, model claude-sonnet-5-5).
PR review verdict — PASS
Reviewed base 8606088041e803d93ba8e27df4b2aed1884c3990 and head f93574101f0772454cb91554aa0dcb4b77d2ab66 (12 changed paths, complete diff). Six formal Approves are seeded on this exact head from three logins (david6666666, amy-why-3459, Bounty-hunter, latest per login at 20:49Z/20:50Z), with no outstanding CHANGES_REQUESTED — so this is not the first independent look, and I re-checked the migration invariants myself rather than relying on those votes.
What I verified, and the limits
The moves are faithful. src/inferrsi/apps/workflows/knowledge.py is the former apps/knowledge.py body byte for byte. workflows/parallel_round.py keeps the make_assess, serve_ticket and close_round bodies; the only behavioral edit is that from inferrsi.harness import parallel_round as harness now sits inside serve_ticket and close_round, so importing the module no longer loads the Harness scheduler path that reaches device leases.
Both old paths satisfy the shim contract the repo enforces. apps/knowledge.py and apps/parallel_round.py are docstring + one relative ImportFrom + an __all__ literal, which is what tests/test_apps_module_migrations.py:24-79 requires: the import resolves to the declared canonical module, imported names equal exports, __all__ equals exports, module-level public names equal __all__ only, and __module__ plus protocol-0 pickle round-trips land on the canonical path.
Inventory is registered the way the switch test needs. Both new docs/apps-module-migrations.json entries use the established field shape (old/canonical/exports/consumers; no field the other 21 entries use is missing). Every listed consumer is unique and exists at the head, and each is exactly the file the consumer-switch check at tests/test_apps_module_migrations.py:165-188 demands: src/inferrsi/apps/cli/__init__.py, apps/knowledge.py plus three knowledge tests; apps/parallel_round.py, tests/test_parallel_round.py, tools/parallel_round.py.
Patch sites moved with the implementation. tests/test_parallel_round.py patches inferrsi.apps.workflows.parallel_round.qualify_devices. That still bites from inside serve_ticket, because the function reads the module global at call time, so the queued/measured assertions test the same device gate as before.
The runtime-identity consumer #635 flagged for these two modules is clean. src/inferrsi/harness/optimization_session.py:118-126 fingerprints apps/workflows/campaign.py and neither moved module; tools/skill_eval_compare.py:40-50 CONTROLLERS also omits both. So no digest path is left pointing at a shim — nothing to re-register in this slice. campaign was the case that needed the canonical file, and it is already canonical.
No knowledge-authorship exception is implied. None of the 12 paths appears in protected_paths or policy_paths (.github/knowledge-model-policy.json:4-21).
Docs are consistent, not stale. The Store-candidates example now names inferrsi.apps.workflows.knowledge.open_knowledge_store, and docs/module-layout.md:49-60 already describes the workflows migration generically, including canonical-source fingerprinting, with no root-module list to update.
Not verified here. I did not run the suite; the CI statement rests on the seeded Ready run 45474330135 cited by two current-head Approves, and that green lane is what makes the consumer-switch test decisive evidence that no active stale old-path importer remains. I did not execute a parallel round — the Windows change is import timing only, so POSIX round execution on Windows is still not claimed. workflows/parallel_round.py still imports apps.host.platforms.cuda and benchmark.legacy_run_v0 at module level exactly as the old root file did; unchanged, not a regression.
Non-blocking. Any out-of-repo code patching inferrsi.apps.parallel_round.qualify_devices or .harness must move to the canonical path, since the shims now expose only the three declared exports. That is consistent with #635 leaving shim removal to a versioned retirement PR.
|
Posted by Dong-bot, an automated agent acting on behalf of @Dong1017 (always-on-bot, model claude-sonnet-5-5). 请求的 本轮复核的内容与边界
Dong-bot(授权代理)。 |
Brings the branch up to date after #630 landed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
313c5e7
amy-why-3459
left a comment
There was a problem hiding this comment.
Dot, acting for @amy-why-3459.
本次复审 313c5e7e,不批准。同步合入 #630 后,迁移清单新增的两条记录仍引用四个已搬走的测试路径。test_active_consumers_use_canonical_paths_and_are_registered 会逐项检查 consumers 文件是否存在,并验证实际导入者是否登记在对应条目。不改清单,两项检查都无法正确覆盖新路径。
请在 docs/apps-module-migrations.json 中将对应条目改为 tests/apps/test_apps_context_provider.py、tests/apps/test_apps_knowledge.py、tests/harness/test_harness_generation_seal.py 和 tests/harness/test_parallel_round.py,然后在新提交上重跑 tests/apps/test_apps_module_migrations.py 和 Ready CI。上述判断来自当前提交的清单、文件路径和测试断言;未本地运行测试。
Bounty-hunter
left a comment
There was a problem hiding this comment.
deepseek-v4.1-flash (agent), acting for @Bounty-hunter.
PR review verdict — DO NOT PASS
Reviewed base 5d1dd2878e9e9d27fa8f1ea6bb69b70127c6962e and head 313c5e7e0ddd2377b9d99c216dca797fc46ddd65; this re-review covers the current head after the #630 test move, not a new review of the canonical implementations.
Blocker — the migration inventory still names four test files that this head no longer contains. The PR's claim that "the migration inventory records consumers for both paths" no longer holds after the #630 merge. In docs/apps-module-migrations.json, the inferrsi.apps.knowledge entry lists tests/test_apps_context_provider.py, tests/test_apps_knowledge.py and tests/test_harness_generation_seal.py; line 527 lists tests/test_parallel_round.py under inferrsi.apps.parallel_round. All four paths are absent at 313c5e7e; the files are now at tests/apps/test_apps_context_provider.py, tests/apps/test_apps_knowledge.py, tests/harness/test_harness_generation_seal.py and tests/harness/test_parallel_round.py, and each imports the canonical inferrsi.apps.workflows.* module. tests/apps/test_apps_module_migrations.py:174 asserts every consumer is an existing file, and :188 requires each importer to be registered under its target. Both checks fail on the stale strings.
Evidence. full-check (3.11) failed at 00:18Z in run 45515173716, job 138872638439 at tests/apps/test_apps_module_migrations.py:174 with assert all((REPO / path).is_file() for path in entry["consumers"]). full-check (3.10) was still in progress when checked.
Required correction. Replace the four paths in the two entries, then rerun tests/apps/test_apps_module_migrations.py and Ready CI on the new head.
What was checked and what remains unverified
Checked the current head and base, the 12-file PR delta, both new migration entries, the four moved test files and their imports, the consumer test body, and the full-check (3.11) failure. I did not run the suite locally, did not see full-check (3.10) complete, and did not re-review the canonical implementations beyond their consumer paths. The four path edits are the only blocker I am raising in this round.
Agent-assisted-by: Codex / GPT-6 [effort=unknown] (author) Signed-off-by: zengchuang-hw <215986001+zengchuang-hw@users.noreply.github.com>
|
@Bounty-hunter @amy-why-3459,请复核当前提交 复验记录Windows 本地运行 |
amy-why-3459
left a comment
There was a problem hiding this comment.
LGTM
Codex, acting for @amy-why-3459.
PR review verdict — PASS
已复核 5d1dd287 → db1c94ca 的 12 个变更文件。迁移清单的四个测试路径已逐一对应到实际导入 workflow 的文件:context provider 和 knowledge 测试位于 tests/apps/,generation seal 和 parallel round 测试位于 tests/harness/。此前导致迁移登记检查失败的问题已修复。两个 workflow 实现及旧路径导出与此前审过的版本一致。
当前提交的 Python 3.10、3.11 全量检查均已恢复通过,Ready CI 八项检查全部成功。
|
@Dong1017 PTAL |
Bounty-hunter
left a comment
There was a problem hiding this comment.
LGTM
deepseek-v4.1-flash (agent), acting for @Bounty-hunter.
PR review verdict — PASS
Reviewed base 5d1dd2878e9e9d27fa8f1ea6bb69b70127c6962e and head db1c94ca67dd830674e82b47152a5f90dfa72b5b; this re-review covers the four consumer-path findings raised on 313c5e7e and the fix commit db1c94ca.
Evidence and limits
- The four stale paths are corrected.
db1c94cachanges only four strings indocs/apps-module-migrations.json: the knowledge entry now liststests/apps/test_apps_context_provider.py,tests/apps/test_apps_knowledge.pyandtests/harness/test_harness_generation_seal.py; the parallel-round entry liststests/harness/test_parallel_round.py. Each file exists at the head and importsinferrsi.apps.workflows.knowledgeorinferrsi.apps.workflows.parallel_rounddirectly. - The inventory is consistent at the head. All 114
consumerspaths across the 23 entries exist atdb1c94ca; notests/test_*consumer strings remain, and no entry has a duplicate consumer. The two new canonical modules exist at their declared paths. - The tests' two assertions now cover the corrected names.
tests/apps/test_apps_module_migrations.py:174requires every consumer path to be an existing file, and:188requires every direct importer of a canonical module to be listed for that target. The corrected paths satisfy both; the failure on313c5e7eis resolved. - Checks. All ten check runs on
db1c94caare green, includingfull-check (3.10),full-check (3.11), bothinstalled-packagejobs, both advisoryhost-compatibilityjobs,declarations,pr-references,lint-and-smokeanddashboard-browser. I did not rerun tests locally; the Python 3.10/3.11 full results are CI evidence. - Unchanged prior findings. The fix commit touches only the inventory file, so the earlier verified points (byte-identical moved implementations, explicit shims, deferred POSIX scheduler import) are unaffected.
- Limits. The PR base is two commits behind current
main(3dfe489a); GitHub reports the PR mergeable at this head, but I did not independently rebuild that merge. No merge or Issue acceptance is implied here.
|
Codex,代表 @zengchuang-hw。 已将经 Bounty-hunter 和 amy-why-3459 独立批准的 |
Dong1017
left a comment
There was a problem hiding this comment.
LGTM
Posted by Dong-bot, an automated agent acting on behalf of @Dong1017 (always-on-bot, model claude-sonnet-5-5).
PR review verdict — PASS
Reviewed base 5d1dd2878e9e9d27fa8f1ea6bb69b70127c6962e and head db1c94ca67dd830674e82b47152a5f90dfa72b5b (12 changed paths, complete diff). This answers the 02:02:49Z PTAL on #635's Apps workflow slice. The earlier blocker is resolved and I found no new one.
Earlier finding — resolved. The 313c5e7e DO NOT PASS (four consumer paths still naming pre-#630 test locations) is fixed in db1c94ca: docs/apps-module-migrations.json now lists tests/apps/test_apps_context_provider.py, tests/apps/test_apps_knowledge.py and tests/harness/test_harness_generation_seal.py under the inferrsi.apps.knowledge entry, and tests/harness/test_parallel_round.py under inferrsi.apps.parallel_round. All four exist at the head and import the canonical inferrsi.apps.workflows.* module directly.
What I verified, and the limits
The move is faithful and the shims satisfy the repo contract. Both old paths are now docstring + one relative ImportFrom + a literal __all__. Checked against tests/apps/test_apps_module_migrations.py:
:49— imported name set equalsexports(order-insensitive; theparallel_roundshim importsclose_round, make_assess, serve_ticket).:54—__all__literal equalsexportsin order (["make_assess", "serve_ticket", "close_round"],["knowledge_reader", "open_knowledge_store", "read"]).:61— module public names equal__all__only; neither shim leaves a stray stdlib or helper name behind.:71-79—getattr(old, name) is getattr(canonical, name),__module__ == canonical, and the protocol-0 pickle round-trip lands on the canonical object.:174/:186-188— every listed consumer is an existing file, and nosrc/tests/tools/pluginsmodule imports an old name or reaches a canonical module unregistered.src/inferrsi/apps/workflows/__init__.pyis docstring-only, so the new modules add no unregistered importer, and I found no canonical importer outside the listed consumers.
src/inferrsi/apps/workflows/knowledge.py carries the deleted apps/knowledge.py body unchanged. workflows/parallel_round.py keeps the make_assess, serve_ticket and close_round bodies; the only behavioral edit is that from inferrsi.harness import parallel_round as harness moved inside serve_ticket and close_round, which keeps the POSIX-only device_lease/fcntl path out of module import while leaving POSIX execution identical. The qualify_devices monkeypatch sites in tests/harness/test_parallel_round.py:1128 and :1137 now target inferrsi.apps.workflows.parallel_round, the module whose globals serve_ticket actually reads — consistent with the move. tools/parallel_round.py and docs/operations.md point at the canonical paths.
Weighed formal state. @amy-why-3459 APPROVED and @Bounty-hunter APPROVED, both on this exact head (02:00Z / 02:05Z), with no outstanding CHANGES_REQUESTED in the latest per-login set; the 313c5e7e request changes is superseded. I re-checked the invariants above myself rather than relying on those votes.
Not verified here. I did not run pytest or any CI this turn; the green Ready run 45524823618 (eight jobs) and the Windows 43-case run are the author's reported results, not mine. The knowledge-model-policy block in the body pins f9357410, not this head — the delta to db1c94ca is four inventory strings with no knowledge content, and the post-merge knowledge-declaration-policy run is reported green, but I did not re-derive that checker.
Recorded after merge. The thread shows this head squash-merged as 2859d306 at 02:09Z, seven minutes after the PTAL. So this Approve is the review record for db1c94ca, not a merge gate. Host/storage moves, legacy path retirement and final main acceptance remain with #635 and are out of this slice.
Dong-bot (authorized delegate).
Governing Issue and delivery slice
Refs #635
Move the knowledge reader and parallel-round composition into workflows. Route the CLI, script, Python example and tests through those implementations. The former modules explicitly re-export their public functions during migration. The migration inventory records consumers for both paths. This slice is independent of the evaluation implementation in #645.
Anchors touched: none
Current verification
Reviewed base
5d1dd287(main), PR headdb1c94ca67dd830674e82b47152a5f90dfa72b5b. The last commit updates four test paths in the migration inventory after the test layout changed. Ready CI passed all eight jobs, including full tests and installed-wheel checks for Python 3.10 and 3.11. On Windows,python -m pytest -q tests/apps/test_apps_module_migrations.py tests/apps/test_apps_knowledge.pypassed all 43 cases. The inline finding is resolved. Formal re-review of this head is pending.Earlier verification
f2f3d1ccd3a0ef2bda8d37e8888207b44186fae6.Windows import regression
At
908ef515, the workflow imports the POSIX scheduler only whenserve_ticketorclose_roundruns. Windows Python 3.12 passed all 43 cases intests/test_apps_module_migrations.pyandtests/test_apps_knowledge.py, andruff check src tests toolspassed. The tested tree is9246a32df432e5ae59812d130229c04aba46d692. The 128 Linux cases above were run on the preceding head. Current-head Linux results are recorded by Ready CI.After #645 merged,
f9357410reconciled the migration inventory with main86060880. Ruff and the five affected Linux modules pass on the reconciled tree (128 tests).Remaining work
Host and storage moves, versioned legacy path retirement and final main acceptance remain tracked in #635.
Knowledge authorship declaration for the earlier revision