-
Notifications
You must be signed in to change notification settings - Fork 8
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
Re-use script from OSI repo #55
Comments
|
It would be nice if the different osi trace formats described iun the documentation do also have script examples along with them. |
@ClemensLinnhoff Protobuffer changed its version schema (OMG). The question: why? What does that mean for the "on the wire compatibility"? What breaks? |
CMAKE says protobuf 2.6.1: https://github.com/OpenSimulationInterface/open-simulation-interface/blob/master/CMakeLists.txt |
They changed it in v21. It says in the release notes:
That means, that it is 3.21.0 for C++ but 4.21.0 for python. Why you ask? Probably because they don't like the people who have to work with protobuf 😄 |
Well 2.6.1 is now almost 10 years old. Should it be updated in the CMakeLists? Or do we want to support 10 year old trace files? |
@jdsika I have generated some test trace files, e.g. with different protobuf versions. Where would you put them? Should we put them in the open-simulation-interface repo to perform unit tests on OSITrace and the formatting tools? Or should we put them in the osi-validation repo to test the validator? Of course we could also put them in the open-simulation-interface and use them also for the validator. |
We should keep the OSI Standard working with Proto 2.6.1. This does not mean that we do not recommend a newer proto version e.g. through using it in the pipeline OR that we PIN and recommend a specific version e.g. in a project using OSI like osi-validation. So you see these are three different topics somehow. I will come back to you regarding where to put the traces but my initial thought would be that they are part of OSI and that there is a set of unit tests that e.g. use OSITrace including those traces. Also those traces could then be used for test purposes of other projects having osi as a git submodule. I think we should put some thought into what should be the content of those traces. For osi-validation we somehow need to test the range of signals that have constraints through rules AND the overall set of rules. What do you think? |
To test OSItrace we need different protobuf versions and different trace file formats (.osi, .txt and .lzma). I think the actual contents of the trace file is not really relevant for that. For osi-validation, we then need separate trace files for testing the behavior of the validator. However, we could generate these trace files on the fly, as e.g. done in the osi_trace unittest: https://github.com/OpenSimulationInterface/open-simulation-interface/blob/master/tests/test_osi_trace.py. |
I am asking myself, if we should have a script in OSI handling traces and in this repo again? Souldn't we have ONE place that shows how to handle traces and then re-use it?
https://github.com/OpenSimulationInterface/open-simulation-interface/blob/master/format/OSITrace.py
The text was updated successfully, but these errors were encountered: