Skip to content

test(agent-core-v2): resolve MCP stdio fixture paths with fileURLToPath - #2790

Open
jonathansampson wants to merge 2 commits into
MoonshotAI:mainfrom
jonathansampson:test/windows-mcp-fixture-file-urls
Open

test(agent-core-v2): resolve MCP stdio fixture paths with fileURLToPath#2790
jonathansampson wants to merge 2 commits into
MoonshotAI:mainfrom
jonathansampson:test/windows-mcp-fixture-file-urls

Conversation

@jonathansampson

Copy link
Copy Markdown
Contributor

new URL('./fixtures/...', import.meta.url).pathname yields a leading-slash path like /C:/Users/... on Windows, which is not a usable filesystem path. fileURLToPath is the documented, correct conversion — already used elsewhere in this suite (test/lint/op-uniqueness.test.ts, test/lint/vendor-name-gates.test.ts) for the same purpose.

Checklist

  • I have read the CONTRIBUTING document.
  • I have linked a related issue, or explained the problem above.
  • I have added tests that prove my feature works.
  • Ran gen-changesets skill, or this PR needs no changeset.
  • Ran gen-docs skill, or this PR needs no doc update.

new URL('./fixtures/...', import.meta.url).pathname yields a leading-slash
path like /C:/Users/... on Windows, which is not a usable filesystem path.
fileURLToPath is the documented, correct conversion — already used
elsewhere in this suite (test/lint/op-uniqueness.test.ts,
test/lint/vendor-name-gates.test.ts) for the same purpose.
@changeset-bot

changeset-bot Bot commented Aug 10, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 61ee2e1

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@pkg-pr-new

pkg-pr-new Bot commented Aug 10, 2026

Copy link
Copy Markdown
pnpm dlx https://pkg.pr.new/@moonshot-ai/kimi-code@61ee2e1
npx https://pkg.pr.new/@moonshot-ai/kimi-code@61ee2e1

commit: 61ee2e1

@jonathansampson

Copy link
Copy Markdown
Contributor Author

Failing test appears to be related to resource limitations. #2792 should resolve.

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