LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW configuration to make a more reliable CI server

I am trying to setup a standalone CI server to automatically run unit tests written in Caraya. The ultimate goal is for it to also run VI Analyser on changed files and build an executable/RT build on commits made to the trunk.

 

My current setup is:

  • Jenkins running on a Windows 10 VM
  • LabVIEW 2019
  • Unit test framework is Caraya
  • Unit tests get called by the Jenkins pipeline using the G-CLI library with the command below 
    "\"C:\\Program Files\\G-CLI\\g-cli.exe\" --lv-ver 2019 \"C:\\Program Files (x86)\\National Instruments\\LabVIEW 2019\\vi.lib\\addons\\_JKI Toolkits\\Caraya\\CarayaCLIExecutionEngine.vi\" -- -s \"${WORKSPACE}\" -x \"${WORKSPACE}\\report.xml\""

 

I am struggling to get it work reliably though and am looking for advice for any changes I could make to my setup.

 

The recurring issues I am getting are:

  • E:\.jenkins\workspace\_redacted>"C:\Program Files\G-CLI\g-cli.exe" --lv-ver 2019 "C:\Program Files (x86)\National Instruments\LabVIEW 2019\vi.lib\addons\_JKI Toolkits\Caraya\CarayaCLIExecutionEngine.vi" -- -s "E:\.jenkins\workspace\_redacted" -x "E:\.jenkins\workspace\_redacted\report.xml" 
    LabVIEW terminated unexpectedly!
    Read Error
    : Read Length: Exception Found System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
       at System.Net.Sockets.Socket.EndReceive(IAsyncResult asyncResult)
       at System.Net.Sockets.NetworkStream.EndRead(IAsyncResult asyncResult)
       --- End of inner exception stack trace ---
       at System.Net.Sockets.NetworkStream.EndRead(IAsyncResult asyncResult)
       at System.Threading.Tasks.TaskFactory`1.FromAsyncTrimPromise`1.Complete(TInstance thisRef, Func`3 endMethod, IAsyncResult asyncResult, Boolean requiresSynchronization)
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at G_CLI.lvComms.<readMessage>d__15.MoveNext()
    Since the network stream will be out of sync the application will now exit.
  • E:\.jenkins\workspace\ches_valve_fault_allowable_limit>"C:\Program Files\G-CLI\g-cli.exe" --lv-ver 2019 "C:\Program Files (x86)\National Instruments\LabVIEW 2019\vi.lib\addons\_JKI Toolkits\Caraya\CarayaCLIExecutionEngine.vi" -- -s "E:\.jenkins\workspace\ches_valve_fault_allowable_limit" -x "E:\.jenkins\workspace\ches_valve_fault_allowable_limit\report.xml" 
    Connection to LabVIEW timed out!
    LabVIEW exited with code -1
0 Kudos
Message 1 of 2
(965 Views)

Hi  Niatross,

I suggest you to go through this link Caraya Unit Tester - VIPM Community and see if you can find anything useful there.

 

Regards

0 Kudos
Message 2 of 2
(903 Views)