Skip to content

test: remove unmounted codex inventory tests - #7069

Merged
liugddx merged 1 commit into
rust-previewfrom
chore/remove-unmounted-codex-inventory-test
Nov 20, 2026
Merged

liugddx merged 1 commit into
rust-previewfrom
chore/remove-unmounted-codex-inventory-test

Conversation

@liugddx

@liugddx liugddx commented Nov 20, 2026

Copy link
Copy Markdown
Member

Summary

Removes plugins/agent/providers/tests/integration/codex/inventory.rs. It was added in 158d79f51 (#7006), but nothing declares its module: the integration main.rs only has mod api;, so its five tests never run.

It cannot be mounted as is. It uses helpers (Resolve, Exchange, connection, Context, Credential) from a parent module that does not exist, and cargo check fails with 40 errors when the module is declared. Mounting it would need that parent module, which is a separate change. If the coverage is wanted, re-add the file together with that module.

Verification

  • Nothing references the file: git grep for codex/inventory and the module name finds only unrelated codex_inventory modules in plugins/agent/native.
  • cargo check --locked -p maka-providers --tests passes on the base.

Review focus

Deletion only. Please confirm that #7006's author did not intend these tests to run without the parent module.

AI use

  • No generative tool made a substantive contribution
  • Generative tooling made a substantive contribution

Tool(s) and scope: Claude Code found the unmounted file and checked references and the compile error. The commit carries Generated-by: Claude Code.

Checklist

  • Tests cover the change and fail without it — N/A: deletes tests that never ran.
  • Format, typecheck and the affected suites pass locally (affected crates only)

Does this PR entail a change in behavior?

  • No
中文

概要:删除 plugins/agent/providers/tests/integration/codex/inventory.rs。该文件由 158d79f51(#7006)新增,但没有任何模块声明它(集成测试 main.rs 只有 mod api;),五个测试从未运行。

它不能直接挂载:依赖父模块中不存在的 Resolve、Exchange、connection 等辅助类型,挂载后编译报 40 个错误。如需保留这些测试,应连同父模块一起恢复,那是单独的改动。

验证:没有其它引用;maka-providers 的 --tests 编译通过。

评审重点:请确认 #7006 的作者是否希望这些测试在没有父模块的情况下运行。

🤖 Generated with Claude Code

plugins/agent/providers/tests/integration/codex/inventory.rs was added by
158d79f (#7006) but nothing declares its module: the integration main.rs
only has `mod api;`. Its five tests have never run, and the file uses
helpers (`Resolve`, `Exchange`, `connection`) from a parent module that does
not exist. Keeping it implies coverage that is not there.

Removing it rather than mounting it: making it compile needs a parent module
that is not part of this change. Re-add it with that module if the coverage
is wanted.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Generated-by: Claude Code
@github-actions github-actions Bot added the effort/M Under 500 readable lines label Nov 20, 2026
@liugddx
liugddx merged commit b775604 into rust-preview Nov 20, 2026
13 of 15 checks passed
@liugddx
liugddx deleted the chore/remove-unmounted-codex-inventory-test branch November 20, 2026 07:15
M4n5ter added a commit that referenced this pull request Nov 20, 2026
…7082)

Restore the five Codex inventory and discovery integration tests removed in #7069 (originally orphaned when #6713 deleted codex/mod.rs) and mount them from tests/integration/main.rs with a minimal DiscoveryTransport harness.

Covers serverSideCompaction opt-in, comp_hash preservation/validation, ChatGPT-Account-ID mismatch rejection during discovery, and Responses wire encoding.

Generated-by: Maka
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

effort/M Under 500 readable lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant