Skip to content

test(providers): restore and mount codex inventory integration tests - #7082

Merged
M4n5ter merged 1 commit into
rust-previewfrom
test/restore-codex-inventory-tests
Nov 20, 2026
Merged

M4n5ter merged 1 commit into
rust-previewfrom
test/restore-codex-inventory-tests

Conversation

@M4n5ter

@M4n5ter M4n5ter commented Nov 20, 2026 •

Copy link
Copy Markdown
Member

Summary

Restores and mounts the five Codex inventory and discovery integration tests that were deleted in #7069 (after #6713 removed codex/mod.rs and mod codex; from plugins/agent/providers/tests/integration/main.rs).

Instead of restoring the full deleted harness, this adds a minimal DiscoveryTransport in plugins/agent/providers/tests/integration/codex.rs and mounts mod codex; in main.rs, restoring behavioral coverage in maka-providers for:

  • serverSideCompaction opt-in gating capabilities.native_compaction
  • decode_model_inventory + Codex::resolve preserving comp_hash and known max_output_tokens
  • Codex::discover account-ID mismatch rejection and Responses wire encoding
  • invalid comp_hash rejection and >128-char comp_hash preservation

Verification

  • cargo fmt -p maka-providers -- --check
  • cargo test --locked -p maka-providers (17 unit + 14 integration passed, including all 5 codex::* tests)
  • cargo clippy --locked -p maka-providers --all-targets --no-deps -- -D warnings

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
@M4n5ter
M4n5ter merged commit bfc42bf into rust-preview Nov 20, 2026
@M4n5ter
M4n5ter deleted the test/restore-codex-inventory-tests branch November 20, 2026 07:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant