Skip to content

test(setup): keep the Windows Kimi profile fixture on a supported profile - #11725

Closed
IvenKooLab wants to merge 1 commit into
morluto:mainfrom
IvenKooLab:fix/windows-kimi-profile-fixture
Closed

IvenKooLab wants to merge 1 commit into
morluto:mainfrom
IvenKooLab:fix/windows-kimi-profile-fixture

Conversation

@IvenKooLab

Copy link
Copy Markdown
Contributor

Summary

The Windows-only case tests/boundary/filesystem/clientConfigurationEnvironment.test.ts > preserves a lowercase explicit Kimi schema profile instead of inserting a conflicting default writes rea_mcp_input_schema_profile: "full". That profile was retired: the reader refuses it, configureClientConfiguration returns failed/readback before writing, and the case fails on every Windows run — including main's own Windows capability and package lane (run 43834020751, 1014 passed / 1 failed), where it is the only failure.

Problem and expected behavior

Recorded on the Windows lane:

AssertionError: expected { Object (status, reason) } to match object { status: 'configured' }

The configuration is left untouched, and the reader's own diagnostic names the cause:

Configuration …\.kimi-code\mcp.json has an invalid REA server environment:
REA_MCP_INPUT_SCHEMA_PROFILE: REA_MCP_INPUT_SCHEMA_PROFILE accepts only "compact", the default.
The "full" input profile was removed: remove the setting from the client registration, or set it to "compact".

Expected: the case exercises a supported explicit profile, and it runs wherever the behaviour it covers exists.

Change and scope

  • The fixture uses compact, the only accepted value, keeping the lowercase explicit key the case is about.
  • The case loses its it.skipIf(process.platform !== "win32") guard. It has no Windows dependency — it passes an explicit configPath, and the Kimi write dialect is the same on every platform — so it now runs everywhere, which is what would have caught the retired value when it landed. This is the reason the failure went unnoticed: CI on Linux and macOS skipped it and only the Windows lane saw it.

Not included: the other Windows failures tracked in #10532 (McpClientRegistration.formats, ReleaseExposureReader), which #10533 and #11198 cover, and no product behaviour change — the reader's refusal of full is correct.

Contract and boundary impact

  • Semantic owner and earliest changed stage: the Windows-lane test fixture; no runtime stage changes.

  • Contribution scope fit and linked maintainer decision: test repair for the failure reported on [Bug] Five registration-format and release-exposure tests fail on Windows #10532, not applicable.

  • CLI and MCP/tool-catalog contract: unchanged.

  • Provider, bridge, target-format, or platform compatibility: unchanged.

  • Evidence, artifact, provenance, or reconstruction contract: unchanged.

  • Generated metadata, package, or installation impact: none.

  • Read existing files or captured data.

Evidence and regression coverage

  • On main d6bcfc10, driving the same fixture through configureClientConfiguration(client, {}, command, undefined, "win32") on a macOS host reproduced the Windows failure exactly: {"status": "failed", "reason": "readback"}, with the configuration file left unchanged. The same call now returns {"status": "configured"} with compact.
  • The first trace of the failure came from a throwaway draft PR (debug(windows): trace the Kimi configuration readback failure [do not merge] #11723) that printed the configuration stages on the Windows runner; it has been closed and its branch deleted.
  • tests/boundary/filesystem/clientConfigurationEnvironment.test.ts — 75 cases: 66 passed, 9 platform-conditioned skips, including the unskipped case on this macOS host.
  • npm run check:fast — typecheck, lint and the architecture guards pass (2818 source files).

Remaining proof gap: the Windows lane itself has not re-run with this change yet; the local reproduction covers the same code path through the explicit platform parameter.

Validation performed

  • npm run test:focused -- tests/boundary/filesystem/clientConfigurationEnvironment.test.ts — 66 passed, 9 skipped.
  • npm run check:fast — passes.

Compatibility, safety, and release

  • Breaking changes or migration steps: none; test-only.
  • Real Hopper/Ghidra, browser, or OS coverage: not applicable.
  • Package or release metadata impact: none.
  • Security, privacy, process, or containment review: none.

Author readiness

Human owner: @IvenKooLab

  • I reviewed the final diff and relevant existing code, understand the change and its edge cases, and take responsibility for the complete PR, including AI-assisted work.
  • I checked the evidence above, confirmed it supports the current change, and recorded meaningful validation gaps.
  • I declare this PR ready for initial maintainer review.

…file

The Windows-only case at `clientConfigurationEnvironment.test.ts:226` wrote
`rea_mcp_input_schema_profile: "full"`. That profile was retired: the reader
now refuses it ("REA_MCP_INPUT_SCHEMA_PROFILE accepts only \"compact\" …"),
so `configureClientConfiguration` returned `failed/readback` before writing
and the case failed on every Windows run, including main's own
`Windows capability and package lane`.

The case has no Windows dependency — it passes an explicit `configPath` and
the Kimi write dialect is the same everywhere — so it now runs on every
platform, which is what let the stale value rot unnoticed. The fixture keeps
the lowercase explicit key the case is about, with the supported value.

Verified on `main` `d6bcfc10`: the same fixture driven through
`configureClientConfiguration(..., "win32")` on this host reproduced
`{"status":"failed","reason":"readback"}` with the retired value and now
returns `{"status":"configured"}` with `compact`. The file's 75 cases pass
here (66 run, 9 platform-conditioned skips) and `check:fast` passes.
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-16T10:30:17.589636Z
We couldn’t complete this review. Comment @codex review to try again.
f810ad1 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@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.

@greptile-apps

greptile-apps Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] This test-only change appears safe to merge.

Summary

Repairs the Kimi test fixture without changing runtime behavior.

  • The Kimi profile test now runs everywhere with a supported value.

Tests were not run during this review. Checking whether another PR supersedes this one was blocked by unavailable GitHub authentication.

Reviews (2) · Last reviewed commit: "test(setup): keep the Windows Kimi profi..." · Reviewed by Greptile

@IvenKooLab

Copy link
Copy Markdown
Contributor Author

This change is now on main through #11727 (test(setup): keep the Windows Kimi profile fixture on a supported profile, with this branch's commit as a co-authored part), so the branch is a no-op against main:

git diff upstream/main -- tests/boundary/filesystem/clientConfigurationEnvironment.test.ts   # empty

Closing as superseded rather than leaving a duplicate open. main's Windows capability and package lane is green again at 552d1c710, and #11711 that was waiting on it now passes every check.

@IvenKooLab IvenKooLab closed this Nov 16, 2026
@morluto morluto added the area: setup Setup, packaging, upgrade, install, Doctor, and client registration label Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: setup Setup, packaging, upgrade, install, Doctor, and client registration

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants