Skip to content

fix: windows compatibility issues - #2139

Merged
lbroudoux merged 1 commit into
microcks:masterfrom
vleon1a:fix/windows
May 28, 2026
Merged

lbroudoux merged 1 commit into
microcks:masterfrom
vleon1a:fix/windows

Conversation

@vleon1a

@vleon1a vleon1a commented May 27, 2026 •

Copy link
Copy Markdown
Contributor

Description

When building Microcks on my Windows 11 machine, I am facing some unit tests failures In the webapp module:

[ERROR] Failures: 
[ERROR]   ServiceServiceTest.testImportServiceDefinitionMainGrpcAndSecondaryExamples:717 No MockRepositoryImportException should have be thrown
[ERROR]   ServiceServiceTest.testImportServiceDefinitionMainGrpcAndSecondaryPostman:641 No MockRepositoryImportException should have be thrown
[ERROR]   MockRepositoryImporterFactoryTest.testGetMockRepositoryImporter:155 Getting importer for Protobuf should not fail!
[ERROR]   GraphQLMcpToolConverterTest.testGetToolDescription:137 expected: <Adds enterprise members to an organization within the enterprise.> but was: <
>dds enterprise members to an organization within the enterprise.                                                                                                                                                                  
[ERROR]   ProtobufImporterTest.testProtobufWithComplexRemoteDependenciesImport:280 Exception should not be thrown
[ERROR]   ProtobufImporterTest.testProtobufWithComplexRemoteDependenciesImport2:317 Exception should not be thrown
[ERROR]   ProtobufImporterTest.testProtobufWithDependenciesImport:107 Exception should not be thrown
[ERROR]   ProtobufImporterTest.testProtobufWithEnumDependenciesImport:174 Exception should not be thrown
[ERROR]   ProtobufImporterTest.testProtobufWithOptionsImport:205 Exception should not be thrown
[ERROR]   ProtobufImporterTest.testSimpleProtobufImport:48 Exception should not be thrown
[ERROR] Errors: 
[ERROR]   GrpcMcpToolConverterTest.setUp:73 » MockRepositoryImport Protobuf schema file parsing error on target\test-classes\io\github\microcks\util\grpc\61586c7d-ec18-4e6f-9cc7-edf59fb28db2\org\acme\petstore\v1\petstore-v1.proto: C:\dev\git\oss\microcks\webapp\target\test-classes\io\github\microcks\util\grpc\61586c7d-ec18-4e6f-9cc7-edf59fb28db2\org\acme\petstore\v1\petstore-v1.proto.pbb (The system cannot find the file specified)                    
[INFO] 
[ERROR] Tests run: 414, Failures: 10, Errors: 1, Skipped: 0
[INFO] 
[ERROR] There are test failures.

Both are related to Windows specific characters:

  • CRLF characters in the MCP tool description: used .trim() to get rid of them (like it is done in the second if branch)
  • \ that does not work with protoc

Related issue(s)

Fixes #2138

@vleon1a
vleon1a marked this pull request as ready for review May 27, 2026 16:08
@SebastienDegodez SebastienDegodez added kind/task java Pull requests that update Java code labels May 27, 2026
@SebastienDegodez SebastienDegodez added this to the 1.15.0 milestone May 27, 2026

@SebastienDegodez SebastienDegodez left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@lbroudoux lbroudoux left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks all good to me. Thanks for pushing a fix.

@lbroudoux
lbroudoux merged commit 432f1db into microcks:master May 28, 2026
14 of 15 checks passed
@github-actions

Copy link
Copy Markdown

🎉 @vleon1a

You are now a Microcks community contributor! 💖

Thanks and congrats 🚀 on merging your first pull request! We are delighted and very proud of you! 👏

📢 If you're using Microcks in your organization, please add your company name to this list. 🙏 It really helps the project to gain momentum and credibility. It's a small contribution back to the project with a big impact.

If you need to know why and how to add yourself to the list, please read the blog post "Join the Microcks Adopters list and Empower the vibrant open source Community 🙌"

Kudos and please keep going, we need you 🙌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Windows compatibility issues?

3 participants