Repository navigation
test(setup): keep the Windows Kimi profile fixture on a supported profile - #11725
IvenKooLab wants to merge 1 commit into
Conversation
…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.
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
[Low impact] This test-only change appears safe to merge. SummaryRepairs the Kimi test fixture without changing runtime behavior.
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 |
|
This change is now on Closing as superseded rather than leaving a duplicate open. |
Summary
The Windows-only case
tests/boundary/filesystem/clientConfigurationEnvironment.test.ts > preserves a lowercase explicit Kimi schema profile instead of inserting a conflicting defaultwritesrea_mcp_input_schema_profile: "full". That profile was retired: the reader refuses it,configureClientConfigurationreturnsfailed/readbackbefore writing, and the case fails on every Windows run — including main's ownWindows 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:
The configuration is left untouched, and the reader's own diagnostic names the cause:
Expected: the case exercises a supported explicit profile, and it runs wherever the behaviour it covers exists.
Change and scope
compact, the only accepted value, keeping the lowercase explicit key the case is about.it.skipIf(process.platform !== "win32")guard. It has no Windows dependency — it passes an explicitconfigPath, 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 offullis 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
maind6bcfc10, driving the same fixture throughconfigureClientConfiguration(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"}withcompact.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
platformparameter.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
Author readiness
Human owner: @IvenKooLab