04-19-2018 08:47 AM
I'm working on a tool to programmatically interact with Git to identify changed files and test only those to give a developer a quick pre-commit check.
One problem I have is that the configuration file I have seems to take quite a while to load (15-25 seconds). Is this common or should I be looking for something in the configuration which will cause this delay?
04-19-2018 10:49 AM
Loading a config file in the UI or the API also loads all VI Analyzer tests into memory. If you have any custom tests on your system that aren't saved in the current LabVIEW version, that could cause test load times to increase, which would then cause .cfg file load time to increase.
Can you use the VI Analyzer CFG Exporter in your process? I'm pretty sure this tool just looks at the file contents and does not load the tests into memory.
Also, VI Analyzer configuration files in LabVIEW 2018 and later will be XML-based, which should make the kind of tooling you're describing a lot easier to manage.
04-19-2018 10:53 AM
Hi Darren,
I do actually want to run the tests as well so the load will be necessary.
There are a number of custom tests that it refers to so this seems like a likely culprit. I created a VI package to install them that I would expect should mass compile them? But I will look into their versioning and see if it might be to blame.
Cheers,
James
04-19-2018 10:54 AM
I have seen numerous times over the past few years where VIPM claimed to mass compile after install but didn't actually do it. In fact, I know that the DQMH Toolkit package has a custom step after install that mass compiles source to avoid this issue.