Repository navigation
Group test support by module and consolidate overlapping coverage - #660
Conversation
Move the remaining root test, checkout probes and process helpers to their owners. Update the installed-wheel and host checks to run them in the same environments. Keep explicit coverage for each writer and shell case, share common setup and fold the PR diagnostic suite into the existing diagnostics module. Agent-assisted-by: Codex / unknown [effort=unknown] (coordination, repository and Skill Eval implementation) Agent-assisted-by: Codex / unknown [effort=unknown] (Apps and Campaigns audit and implementation) Agent-assisted-by: Codex / unknown [effort=unknown] (Knowledge and Skill Eval audit and implementation) Agent-assisted-by: Codex / unknown [effort=unknown] (Harness, Benchmark, Contracts and Skill Eval audit and implementation) Signed-off-by: dongxinwen <d00949542@china.huawei.com>
|
Codex acting for @Dong1017. Verification against main Both Linux full-suite jobs, Windows, macOS, packaged installs and Chromium passed on the submitted head Each Linux smoke/unit run recorded 7,099 passed, 47 skipped, one deselected and 674 passing subtests. The deselected architecture-anchor test passed in its dedicated step on each runner. GitHub tested |
Preserve the incoming search benchmark consumers and point the installed-wheel probe and gate-policy helper at their module-owned test directories. Agent-assisted-by: Codex / unknown [effort=unknown] (upstream integration and validation) Signed-off-by: dongxinwen <d00949542@china.huawei.com>
Feed each helper its valid example on stdin and in a regular file at its byte limit and one byte beyond it. Preserve the suite-specific cases and existing pytest selectors. Agent-assisted-by: Codex / unknown [effort=unknown] (test implementation) Agent-assisted-by: Codex / unknown [effort=unknown] (coverage audit and validation) Signed-off-by: dongxinwen <d00949542@china.huawei.com>
Keep the new skill-evaluation guide location and core-wheel CI instructions while directing both consumers to the relocated installed-package check. Agent-assisted-by: Codex / unknown [effort=unknown] (conflict resolution and verification) Signed-off-by: dongxinwen <d00949542@china.huawei.com>
Freeze the clean task copy for this regression before corrupting the protocol. Assert the exact failure and that the loader is never invoked. Keep the published run specification and its historical input hashes intact. Agent-assisted-by: Codex / unknown [effort=unknown] (test fixture and verification) Signed-off-by: dongxinwen <d00949542@china.huawei.com>
Dong1017
left a comment
There was a problem hiding this comment.
PR review verdict — PASS
Posted by Dong-bot, an automated agent acting on behalf of @Dong1017 (always-on-bot, model claude-sonnet-5-5).
Reviewed base d30adb8af5b3b3ccc9c56e2918396b4523e48714 and head fbc87b4658888b1832a51947a10160048c214dc6 from pr/diff.patch (diffComplete: true) against #656's accepted scope. This is a self-review: the posting account authors #660, so it is a COMMENT review, not an independent approval, and it does not count toward #656's two-eligible-approval gate.
Blocker status. The single blocker I recorded at 7152656073 — a knowledge-model-policy block pinning head_sha: 7800f227 — is discharged: the body now declares head_sha: fbc87b4658888b1832a51947a10160048c214dc6, matching pr/head.sha, and the by-hand 04:18Z record on #656 reports the required status green on that SHA (run 45545651220). No new blocker found in this diff.
Verified at this head
- Relocation callers: both workflow hunks move
tests/repository/check_installed.pyandtests/harness/session_lock_probe.py, and theINFERRSI_PRE_CHANGE_SESSIONSfixture stays on its unchanged absolute path. - Windows selector retarget: the two dropped Apps nodes are replaced by
tests/repository/test_artifact_helper_copies.py::test_harness_writer_bytes_equal_the_apps_writerand::test_every_writer_writes_the_same_bytes[atomic_write_json]; both IDs exist at head. - NaN cleanup per implementation:
_assert_writer_copieswrites into a freshoutputdir and the test assertslist(tmp_path.iterdir()) == [output]after each writer'sValueError. That is the restatement I required at 7151481815, not a copied== []. - Evidence paths: the campaign-root equality survives at
tests/contracts/test_evidence_paths.py:82insidetest_segments_and_subpaths_are_unchanged, and the dropped dir-creation node is literally covered bytest_ensure_layout_creates_exactly_four_directories_and_returns_the_map:193-205. - Historical neutral-leaf list:
test_knowledge_compatibility_shells.pyassertsretired_leaf["symbols"] == ["REPO_TYPES", "repository_pack"]; the identity, absent-attribute and contribution-tuple half runs intest_repository_packs_facade.pyper the by-hand 03:29Z/7151971204 record. - Plan-template links:
test_template_layout.pyadds the non-recursiveevidence/_template/plan/*.mdglob to the maintained-documentation resolver. - Shell-form trim: each dropped direct/wrapped pair survives in
test_codex_search_shell_forms.pyat:26,:27,:30and:36-38, and the quoted&>,2>&1,|&cases landed at:104-106. - CLI byte limits:
tests/knowledge/_repo_to_skill_support.pysends each script's valid example at the limit (exit 0) and one byte over (exit 2, empty stdout, no traceback), on stdin and a regular file — the earlier all-whitespace probes could not test the limit at all. - Root-relative paths:
_gate_policy_support.pyandrun_store_child.pyrecomputeparents[2], and the moved.cjs/probe callers resolve by sibling path.
Not verified here. I ran no pytest, collection, ruff, wheel install or host job, so the node counts (7,471 vs 7,479), the Linux/Windows/macOS/Chromium results and the 771-resource inventory remain the author's records and run links. The old test paths still named in docs/legacy-knowledge-manifest.json, docs/module-layout.md, the CHANGELOG and three pinned source comments are the historical references the destination map allows.
Open gates, unchanged and not diff blockers. Two eligible independent approvals, the high-risk merge procedure for ci-ready.yml and release.yml, then verification on the squash commit.
Non-blocking follow-up
The revised GVO test recomputes packaged_task_sha256 from the clean copy before corrupting optimization.py, which is the right fix for upstream drift after 7bc51f21, but it means CI no longer exercises the published pin for that file. The eight digests that still match d30adb8a are a one-off comparison, not an assertion. Pinning those eight names and digests in the module later would keep drift detection in CI instead of in a comment.
Self-review: the PR author and the posting account are the same, so this review is not an independent approval.
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 d30adb8af5b3b3ccc9c56e2918396b4523e48714 and head fbc87b4658888b1832a51947a10160048c214dc6 for #656.
What I checked, evidence and limits
tests/now keeps onlyREADME.mdand__init__.pyat the root. All 15 root test, support and probe files moved to the owning directories, and everytests/...path referenced by the five workflow files resolves at this head. Nosrc/file is touched.- The dedup is traceable. The removed repo-types tuple test is covered by
tests/knowledge/test_repository_packs_facade.py::test_one_repo_types_object_reaches_every_consumer, with the historical symbol assertion retained. The writer cases moved intotests/repository/test_artifact_helper_copies.pywith the per-implementation no-leftover check. The layout test duplicates the stronger four-directory test; the plan-template link check moved into the shared resolver; the PR diagnostic tests moved intotest_skill_eval_diagnostic.py. - The three hash-pinned fixture directories are untouched. The migration inventory keeps its 23 old names, and all registered consumer paths exist.
- The earlier red check was the #488/#588 Qwen evidence-hash conflict.
fbc87b46isolates the protocol-identity test from laterbenchmark.pychanges by freezing the clean hashes before corruptingoptimization.py; this is test-only and does not rewrite the published pin. - Both
full-checkjobs pass on this head: 7,384 passed, 89 skipped, 1 deselected and 674 subtests on Python 3.10 and 3.11. Declarations, pr-references, lint-and-smoke, installed-package (3.10/3.11), dashboard-browser and the advisory Windows/macOS host checks are also green.
This PR also edits .github/workflows/ci-ready.yml and release.yml, so it needs the high-risk merge procedure. @Bounty-hunter is on .github/high-risk-approvers.json at protected main d30adb8af5b3… and has write permission; this approval is from that account. I did not run pytest locally; the node-count and Windows-local claims are the author's records. This review covers the 84-file diff against the stated base; a later head needs re-review.
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 d30adb8af5b3b3ccc9c56e2918396b4523e48714 and head fbc87b4658888b1832a51947a10160048c214dc6 (PR #660, 84 changed files).
Evidence and scope
Revision and declaration. PR #660 is open, non-draft and mergeable at the reviewed head. The knowledge-model-policy block pins head_sha: fbc87b46…, and the required declarations check passed on that SHA (run 45545651220, 04:16:53Z). This clears the stale-declaration blocker recorded on #656 at 04:14Z.
Final commit. fbc87b46 changes only tests/campaigns/test_qwen_gvo_diagnostic.py (+19/−2). In validator/check.py the packaged-task digest loop (for name, expected_hash in spec["packaged_task_sha256"].items(): require(...)) runs before task_protocol.run(...). The revised test hashes the nine clean files into a temporary plan, corrupts only optimization.py, asserts the exact ^optimization\.py$ error, and makes task_protocol.run fail if the loader is reached. That isolates the negative test from later packaged-benchmark updates without loosening the assertion.
Consolidation spot checks.
test_plan_segment_documentation_links_resolveis absorbed bytests/repository/test_template_layout.py, whose document list now includesevidence/_template/plan/*.md; the original link regex and resolver are reused.tests/contracts/test_evidence_paths.pyfolds the campaign-root assertion into the surviving segments test.tests/knowledge/test_knowledge_compatibility_shells.pyfolds the retired-leaf symbol assertion into the history test.- The writer byte/NaN cases removed from
test_legacy_run_split.pyare covered intests/repository/test_artifact_helper_copies.py(test_every_writer_writes_the_same_bytes, including NaN rejection and residue checks); the removed copies were duplicates. - The CI selectors updated in
ci-ready.ymlpoint at these surviving node IDs.
Workflow files (high-risk). .github/workflows/ci-ready.yml and release.yml only update moved test/probe paths and replace one removed selector. No trigger, permission, secret or publish change. This approval is submitted for @Bounty-hunter, a listed high-risk approver with repository write access.
Checks on this head. full-check (3.10) and full-check (3.11) passed, together with installed-package (3.10/3.11), dashboard-browser, lint-and-smoke, pr-references and declarations. The Windows and macOS host-compatibility jobs also passed (advisory).
Stop check. No bot:stop label or stop comment on PR #660 or governing issue #656; #656 has no parent issue.
Not independently verified. The 7,479 → 7,471 collection counts, the 337 Mistral/Swift tests, the 12 retained targets and the wheel/resource counts are the author's and the author-delegate audit's records; I did not rerun pytest or a wheel install locally. The passing full-suite CI on this head is the executed evidence relied on here.
Map the new Apps migration entries to their test owners and preserve the merged PR diagnostics. Exercise protocol tampering against a complete temporary Qwen plan and assert that the loader is never reached. Agent-assisted-by: Codex / unknown [effort=unknown] (integration and verification) Signed-off-by: dongxinwen <d00949542@china.huawei.com>
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 62949701cb03d7ade1c9d6fe71fb7923191cb627 and head ccdb52bdfcbc933f1e2580aa6c710fa8fb360302 (PR #660, 84 changed files).
Evidence and scope
Revision and declaration. The PR is open, non-draft and mergeable; main is still 62949701, so the base is current. The body's knowledge-model-policy block pins head_sha: ccdb52bdfcbc933f1e2580aa6c710fa8fb360302, and the declarations checks succeeded on this head (runs 45550226826 and 45550332126). My earlier approval covered fbc87b46 and was dismissed when the branch moved; this review covers the new merge head.
What changed since fbc87b46. The integration of main@62949701 keeps the same 84-file set, adds no src/ file to the PR diff, and the resolution edits are import/path adaptations to the Apps move: inferrsi.apps.artifacts → inferrsi.apps.storage.artifacts in the Skill Eval suites and tests/apps/test_legacy_run_split.py, plus the relocated probe and Repository-check paths in docs/apps-module-migrations.json. I found no behavioral change to the reorganized tests in the delta.
Spot checks at this head.
- The
tests/root holds onlyREADME.mdand__init__.py; the 15 relocated entry points and the movedcheck_installed.py,_gate_policy_support.pyandsession_lock_probe.pyexist at their new paths, and the tree has 764 tracked files undertests/, matching the author's count. - The Qwen negative test keeps its isolation: it copies the published plan, recomputes
packaged_task_sha256from the clean task, patchestask_protocol.runto fail, then corruptsoptimization.pyand requires^optimization\.py$. The "benchmark.py rejected first" failure mode is still excluded. - The dedup removals in
tests/apps/test_legacy_run_split.pyand the writer byte/NaN coverage intests/repository/test_artifact_helper_copies.pyare unchanged apart from imports. - Workflow edits remain path and selector retargets only; no trigger, permission, secret or publish change. Every
tests/...path referenced by the two changed workflows exists at this head. This approval is submitted for @Bounty-hunter, a listed high-risk approver with repository write access. - Stop check: no
bot:stoplabel or stop comment on PR #660 or governing issue #656.
Checks on this head. full-check (3.10) and full-check (3.11) passed. installed-package (3.10/3.11), lint-and-smoke, dashboard-browser, pr-references, declarations and both host-compatibility jobs also passed.
Not independently verified. The 7,481 → 7,473 collection counts, the 32 one-to-one ID mappings and the link/selector totals are the author's records; I did not rerun pytest or a wheel install locally. The passing CI on this head is the executed evidence.
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.
PR review verdict: PASS
Reviewed base 62949701cb03d7ade1c9d6fe71fb7923191cb627 and head ccdb52bdfcbc933f1e2580aa6c710fa8fb360302 for #656. This is a high-risk review because it changes Ready and release workflow consumers, not approval to integrate.
I checked the relocated wheel smoke script and standalone lock probe in both workflows, including the release path with the installed wheel outside the checkout, and the replacement Windows writer selectors. Retained tests still cover byte parity and NaN cleanup. The isolated Qwen fixture still corrupts only the protocol, requires its exact rejection, and now trips if the loader runs. Complete Git tree comparison confirms identical runtime and published evidence bytes, all 32 protected fixture blobs, and eight exact renames. I checked the dedup mappings and the reported Windows moved/covering runs. Exact-head Ready CI is green on both Python versions, both wheel jobs, Chromium and both advisory hosts; the exact-head policy passed. I did not publish a release or rerun the full suite locally. The integrator still needs the checked-base interlock and the post-merge verification in #656.
|
Codex, acting for @Dong1017. High-risk integration for ccdb52bThe candidate and its checked base are ccdb52b and 6294970. Both formal approvals cover that pair, both accounts are listed at that base with write or admin access, and CI passed. The Issue has no linked branch or closing PR reference. Bounty-hunter review · david6666666 review · Verification. Following the integration point in the second review, I checked the live main rules and merge queue. The current merge API can require the PR head SHA. The queue is disabled and the main ruleset does not require the branch to be up to date. The earlier maintainer record describes manual coordination for high-risk changes without identifying an active reservation for this PR. Main ruleset · Current policy · Earlier maintainer record. @david6666666, is there an existing merge entry point that rejects a changed main SHA, or a repository-wide coordination mechanism I can acquire as Dong1017 that covers all high-risk merges and approver-list updates, both manual and automated? A link to the entry point or the name of the mechanism is sufficient. If a maintainer uses that procedure to squash this PR first, please record the protected main SHA, method and resulting commit here. I will verify the installed wheel, relocated probes and node mapping on that commit and record the results on the governing Issue. |
|
Codex, acting for @Dong1017 as the integrator. merge-audit: head=ccdb52bdfcbc933f1e2580aa6c710fa8fb360302 approvals=@Bounty-hunter #660 (review), @david6666666 #660 (review) approver=@david6666666 list=62949701cb03d7ade1c9d6fe71fb7923191cb627 merge=ae6c218a5692e7626e687865fae3cc486209a472 by=@Dong1017 The maintainer confirmed exclusive coordination of manual and automated high-risk merges and approver-list updates by Dong1017 before the final checks, through GitHub’s merge result. I re-read protected main and its approver list, verified both reviewers’ current write/admin permissions and formal approvals on the reviewed head, checked the required policy and Ready CI, checked the PR and governing Issue for stops and closing links, and synchronously squash-merged with the reviewed head SHA. Native auto-merge was off. GitHub reports Dong1017 as the merger. The squash has one parent, the checked main SHA, and its complete Git tree equals the reviewed head. Squash commit · Ready CI · Acceptance and post-merge verification |
Governing Issue and delivery slice
Refs #656
Dong1017 accepted the follow-up to #630. It covers the remaining files at the test root, a file-by-file review of every collected test module, deduplication with traceable replacement assertions, and verification of checkout, installed-package and CI entry points.
Anchors touched: none
Knowledge authorship declaration
The four Codex contributors covered coordination and Repository, Apps and Campaigns, Knowledge and Skill Eval, and Harness, Benchmark, Contracts and Skill Eval. Exact run settings were not available to verify.
Changed artifacts and evidence
tests/, test modules decrease from 251 to 250, and the root goes from 17 files to two.The file review covers root, Apps, Benchmark, Campaigns and Contracts and Harness, Knowledge, Repository and Skill Eval. The second record also shows all 40 changed pytest IDs and their retained assertions.
The update integrating 979d48b retained all seven new test modules, the shared search fixture, and changes to the child protocol and evidence inventory. The integration changed two test-consumer paths in
docs/apps-module-migrations.jsonand retained every new upstream consumer. Upstream change.Updated file-by-file review and validation on
c57ff4becovers the seven new modules, the 43 executed assertion targets and local batch reruns. Ready CI.Checks and dependencies
ruff check src tests toolsandgit diff --checkpassed on c57ff4b. The ten workflows contain 26 explicit pytest selectors on each revision. All resolve, selecting 31 leaf nodes on each side. The repository-wide scan covered 979 Markdown and eight HTML files on each tree. Local references grew from 3,198 to 3,200, with 368 anchors on each side. The five pre-existing unresolved references are identical on both revisions.979d48b9on this machine: one CRLF/LF byte mismatch, three symlink privilege errors and one unavailable FIFO operation. The standalone DSH SSH check previously produced the same assertion error on both revisions. CI runs host-specific and Linux checks separately.Review follow-up on c1cdb68
The two engine suites now exercise each helper's valid example on stdin and in a regular file, at the byte limit and one byte above it. The original all-whitespace input could fail JSON parsing at any size. The five scripts retain their suite-specific parameters and CLI behavior. On Windows Python 3.12 with UTF-8 enabled, all 337 tests across the two modules passed, and the five boundary tests passed a second independent run. Their complete ordered pytest IDs match the previous head. The 43 mapped assertion targets also passed. Boundary assertion · Verification, including the default GBK baseline and fresh wheel.
Ruff and Git whitespace checks passed. A separate Windows full-suite run again stopped with 209 passed, four skipped and the same five baseline failures described above. Local Windows does not execute the POSIX FIFO branches. Merge and Issue acceptance evidence will be recorded on the actual squash commit.
Integration on 7800f22
This head integrates main at
d30adb8a. The package migration inventory uses the relocated Skill Evaluation guide and the installed-wheel probe in Repository. The contributing guide retains the Linux core-wheel installation without extras. The moved WorkSwarm guide invokes the Apps probe. The new plugin-release link regression and the existing campaign-template link coverage are both present.The Windows collection comparison is 7,479 → 7,471. All 26 workflow selectors resolve. The link scan covers 980 Markdown and eight HTML files on both revisions. It checked 3,169 → 3,171 local references and 375 fragments on each side, with the same five historical exceptions. Ruff and the whitespace check passed. The local Windows full run stopped after five failures. I ran the five selectors on
d30adb8aand reproduced each one. On this revision the then-current base wasd30adb8a. Both full Linux jobs failed in the Qwen GVO test. The test, byte-identical to that base, corruptedoptimization.pybut the checker rejectedbenchmark.pyfirst because its packaged bytes had changed since the published run. Failed Python 3.10 job · Failed Python 3.11 job.Qwen protocol regression on fbc87b4
The same test in the previous Linux 3.10 and Linux 3.11 jobs expected the corrupted protocol to be rejected as
optimization.py. It stopped earlier onbenchmark.py. The same node failed on an independent checkout ofd30adb8a. The upstream benchmark update changed that file after the historical run was frozen. The other eight published task digests match the base and the candidate.The revised test records all nine clean files in a temporary fixture before deliberately corrupting the protocol. The real checker must report exactly
optimization.pybefore it can invoke the protocol loader. The published run specification, validator and software package are byte-identical to main. All ten cases in the diagnostic module passed on Windows Python 3.12, and Ruff passed. Separately, substituting the actual historical benchmark bytes into a temporary copy also produced the precise protocol rejection with the original published specification. This verifies the negative test without making a new historical measurement claim.The fixture deliberately tests the order of rejection when exactly one copied file is corrupt. It does not require today's package to match a historical experiment. The published validator still enforces all nine original pins during replay. A separate comparison found nine of nine matches at the recorded software revision, and eight of nine at both
d30adb8aandfbc87b46. The one changed file wasbenchmark.py. Published RunSpec · Green CI on fbc87b46.Integration with main on ccdb52b
The candidate incorporates main at 62949701. The new Apps storage and host-inspection inventory entries point to the relocated probes and Repository checks. The four PR-diagnostic tests live together in Skill Eval. The Qwen negative test now copies the complete published plan, pins the clean temporary task with the real hashing helper, and verifies the exact failing filename before the loader can run. The PR changes no production source relative to this base.
Windows Python 3.12 collected 7,481 unique nodes on the base and 7,473 on the candidate. The two upstream compatibility-shim parameters are collected on both revisions. The directory guide and 15 relocated entry points are linked below. Before · After · Directory guide.
The current head
ccdb52bdpassed both Linux full suites, both installed-package jobs and the Chromium dashboard check. All eight subsumed nodes passed on the base, and all 43 moved or covering nodes passed on the candidate. The verification record includes the assertion map, all 35 files re-reviewed after main advanced, Windows results and the source and installed-package probes. Ready CI · Verification on #656.Remaining work and Issue closure
The Linux CI suite passed on
fbc87b46with Python 3.10 and 3.11. Each job reported 7,384 tests passed, 89 skipped, 1 deselected and 674 subtests passed. Python 3.10 · Python 3.11.Independent approvals and the repository's high-risk merge procedure govern squash integration. Dong1017 will check the actual squash commit against the maintainer's acceptance criteria and record the results on #656.