Skip to content

test(mcp): reuse advertised schema in inventory check - #2469

Merged
N0zoM1z0 merged 3 commits into
mainfrom
test/mcp-inventory-schema-reuse-20261013
Oct 13, 2026
Merged

N0zoM1z0 merged 3 commits into
mainfrom
test/mcp-inventory-schema-reuse-20261013

Conversation

@N0zoM1z0

@N0zoM1z0 N0zoM1z0 commented Oct 13, 2026 •

Copy link
Copy Markdown
Collaborator

The session inventory check lists the entire catalog and then calls binary_session. The first cached SDK call constructs output validators for all 187 tools, making this functional check repeatedly exceed its 10-second deadline in complete local coverage runs.

Pass the exact binary_session definition from the current listing to the SDK's supported toolDefinition option. The SDK still validates the actual reply; all existing inventory, availability, remediation, metadata and schema assertions, cleanup and the original 10-second deadline remain. Only this test file changes.

Validation:

  • Complete local coverage on f254f5ac2 + 2db5ee5d6: 1,005 files, 10,230 passed / 92 skipped / zero failures; all coverage thresholds pass. The inventory case completes in 1.32 seconds in that full run. No observed surviving process generation remains.
  • Latest bb154d1067 and 172407787 merged into the branch: static/type/architecture checks and website maintenance checks pass; discovery finds 1,013 files exactly once. All 16 changed/related capture, analysis-view, schema and inventory test files pass (210 cases, two expected capability skips); inventory completes in 1.04 seconds. An additional ten Flutter/runtime/shared-schema files pass all 123 cases on 172407787, including inventory in 0.87 seconds. The original complete local result is not attributed to these newer files. Initial combined-source PR CI passed all 1,010 files (10,272 passed / 94 skipped); the updated 1,013-file head must pass full CI before merge.
  • Three drift/fault mutants fail on catalog equality, exact metadata equality and genuine SDK output-schema rejection. Temporary fault/timing code was removed.
  • Six alternating covered measurements complete the same assertions: inventory 8.06–9.35 s before, 1.30–1.38 s after; focused-runner CPU 28.35–30.44 s before, 19.61–20.81 s after. Detailed memory/cold-warm/host limitations are in the issue. Focused coverage diagnostics retain the whole-repository thresholds and exit nonzero for incomplete overall coverage. This is a local case/file improvement; the full suite still takes approximately 36 minutes and no large whole-CI acceleration is claimed.

Updated Python gate: 20 cases passed. Real Chrome SVG/XHTML cases pass in both focused and complete covered runs. Website behavior was independently verified in an actual browser, including persisted theme, cross-tab updates and mobile RTL.

Closes #2453.

Validate the status reply with its current advertised definition while retaining
all inventory assertions, real SDK validation and the 10-second deadline.
Avoid initializing output validators for unrelated tools on this one call.

Assisted-by: Reimu (gensokyo-skills:reimu-incident-triage)
@N0zoM1z0 N0zoM1z0 self-assigned this Oct 13, 2026
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@N0zoM1z0
N0zoM1z0 merged commit a6efa4f into main Oct 13, 2026
34 checks passed
@N0zoM1z0
N0zoM1z0 deleted the test/mcp-inventory-schema-reuse-20261013 branch October 13, 2026 04:00
@morluto morluto added area: tests Test suite and verification area: mcp MCP server, transport, and tool registration labels Oct 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: mcp MCP server, transport, and tool registration area: tests Test suite and verification

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test: full inventory check times out after unrelated SDK schema compilation

2 participants