Using master branch of MSL - without parts #4720
Replies: 1 comment 2 replies
-
As I recall it, this is what we already decided in the meeting yesterday. I would prefer if the directory with files related to testing uses a name with lower case initial to make it more easily distinguishable from the directories for Modelica code hierarchies. Perhaps reference-results or references would be good names, unless we foresee the use of this directory for more general test-related content? In particular, I can see how we at some point might want to also include some specification of how to perform the comparison against a particular reference result, and then a name such as tests would make more sense. Within the directory, the only structure I can see how it would work is the one we already have in use in MAP-LIB_ReferenceResults – up to what we call the files inside the directory corresponding to an example. In my opinion, it is a bit odd that we have standardized names for all files but the CSV result; calling it Rectifier/reference.csv could be a better alternative to calling it Rectifier/Rectifier.csv. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
At the latest meeting there were a discussion about putting references inside the MSL, and one concern was that if people want to get access to the latest build, then adding the references would substantially increase the download size and possibly discourage some users.
TL;DR: It works, but we should have reference-(results) in a separate top-level directory.
My question was if there's a solution with the following constraints:
I know that several companies (like Microsoft) have switched to large mono-repos so I assumed it would be possible now (note that some of the commands are "new").
The preliminary answer seems to be that it seems possible, and we just have to do a minimal restructuring.
The restructuring is just that references (preferably including the existing comparisonSignals.txt) should be outside of the Modelica-directory (so still in the repo on the same branch). No need for a separate sub-module, just a separate directory.
To me that seems like a good solution regardless of this goal, and I don't think it will be that problematic to update our CI/CD scripts handle that.
There are still some things that could be improved, but it is clearly good enough for some uses.
The commands needed to get the relevant parts of the master branch are:
git clone --depth=1 --filter=blob:none --sparse https://github.com/modelica/ModelicaStandardLibrary.git; See https://git-scm.com/docs/git-clone - this is also normal to use for CI/CD as I understand.ModelicaStandardLibrary)git sparse-checkout set Modelica ModelicaReferencegives the main parts withoutModelicaTestand withoutModelicaServices- but they can be added if desired, of course. If we had a directoryReferenceResultsthat would be skipped as well. See https://git-scm.com/docs/git-sparse-checkoutI checked and we don't need to change anything to support this - except that it would be good to move
Modelica/Resources/Reference/Modelicato a separate directory, e.g.,ReferenceResults/Modelicaand either add the actual results to the same directory or have one sub-directory for what to compare and one for the references.Notes:
--depth=1, butgit annotatedoesn't work well in either case - either you don't get any history or it has to download the history for each command, which even if using less disk-space in practice is slower than getting the entire repository. There might be some better solution, but I anyway usually use GitHub for that.Other related issues that are are mostly solved:
Have I missed something? Do people agree that the minimal restructuring is worth the effort, if so we can then just document it.
Beta Was this translation helpful? Give feedback.
All reactions