-
-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add test execution at the end of build process #243
Comments
For MacOS and Windows try to start local ZooKeeper and Apache Kafka broker then execute the tests |
The test execution reports:
|
Add a check in
ex.BridgeInstance is not null, otherwise cast to JVMBridgeException and retrieve Message . The problem comes from masesgroup/JNet#429 and how Java.Lang.Throwable manages the information.
|
Within https://github.com/masesgroup/KEFCore/actions/runs/9655461268 many tests fails. Here the summary:
The errors occurs always in net8.0, and sparsely for many JDK 21, when the array of bytes of key related to the Kafka record is retrieved from the JVM. |
Executing other tests, some exceptions are raised within KEFCore itself:
and the process fails due to unhandled exception in the thread used to prefetch the information. The specific exception is The previous condition pairs with the following:
where The first kind of exception shall be managed in KEFCore, while the second one is related to KNet. |
Windows is not a supported OS to run Apache Kafka and many tests fails on Windows because the broker, or ZooKeeper, closes. Try use Docker, only on Windows, since it seems to be installed in Windows 2022 image, the command shall be something like: docker run -e KNET_DOCKER_RUNNING_MODE=server -p 9092:9092 ghcr.io/masesgroup/knet:latest maybe the access to ghcr.io will be forbidden, so it is needed an authentication. |
The docker version available in Windows runner cannot activate linux images due to virtualization limitation, so there is no chance to use this method. To avoid problems on OSes not supporting Apache Kafka maybe it is mandatory to activate an external container/VM, but the network can be a bottleneck. |
Some tests fails for other reason than the previous: specifically under windows and with JDK 17. Looking at the available dumps, sometime there is an access violation during preparation of the
It is possible to highlight that |
Is your feature request related to a problem? Please describe.
Currently no tests are executed.
Describe the solution you'd like
The build workflow can execute some unit tests to verify execution.
Meanwhile the test projects can be enhanced to use the Microsoft.NET.Test.Sdk and/or Microsoft.TestPlatform.TestHost
Describe alternatives you've considered
N/A
Additional context
N/A
The text was updated successfully, but these errors were encountered: