-
Notifications
You must be signed in to change notification settings - Fork 4
Opencmw-cpp interoperability fixes and testing #239
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
Open
wirew0rm
wants to merge
4
commits into
main
Choose a base branch
from
interop-tests
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
serialiser/src/main/java/io/opencmw/serialiser/spi/WireDataFieldDescription.java
Fixed
Show fixed
Hide fixed
b59e823 to
ca0c7f5
Compare
ca0c7f5 to
f7d90f9
Compare
client/src/test/java/io/opencmw/client/OpenCmwCppInteropTest.java
Dismissed
Show dismissed
Hide dismissed
serialiser/src/main/java/io/opencmw/serialiser/spi/FastByteBuffer.java
Dismissed
Show dismissed
Hide dismissed
Opencmw-java and opencmw-cpp used different metadata entries for the field descriptions. While opencmw-cpp serialised [description(string), unit(string), modifier(byte/enum)], opencmw-java used [description(string), unit(string), direction(string), groups(string[])]. This lead to failures in deserialising c++ serialised field medatadata. These changes make opencmw-java use the same format as c++. Signed-off-by: Alexander Krimm <[email protected]>
Signed-off-by: Alexander Krimm <[email protected]>
char in c++ is usually represented as 1 byte, while java chose 2 bytes. To allow for interoperability, this changes the serialisation to only use a single byte. Since this replaces a memcpy by a naive for loop, it could probably be improved by doing it in a tight loop, and using more efficient conversion functions. This first step gets the 2 implementations to be consistent, performance improvements can be added later on. Signed-off-by: Alexander Krimm <[email protected]>
f7d90f9 to
c68ae1b
Compare
To run the tests locally, copy the Compatibility test executable from opencmw-cpp to the repository root. The CI will fetch it from the artifact of opencmw-cpp. If it is not available, the tests will be skipped. Signed-off-by: Alexander Krimm <[email protected]>
c68ae1b to
1a14a65
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Follow-up of #223 and companion PR to fair-acc/opencmw-cpp#389
Should be merged after that one, to ensure that the compatibility test is correctly run.
Changes:
missing functionality: