Repository navigation
test: remove unmounted codex inventory tests - #7069
Merged
liugddx merged 1 commit intoNov 20, 2026
Merged
Conversation
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
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Removes
plugins/agent/providers/tests/integration/codex/inventory.rs. It was added in158d79f51(#7006), but nothing declares its module: the integrationmain.rsonly hasmod 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, andcargo checkfails 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
git grepforcodex/inventoryand the module name finds only unrelatedcodex_inventorymodules inplugins/agent/native.cargo check --locked -p maka-providers --testspasses 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
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
Does this PR entail a change in behavior?
中文
概要:删除
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