Have just upgraded to 2.5.2 and can’t seems to get my two scripts set up in the whitelist correctly.
I am still seeing the following error in my logs:
2020-02-23 11:56:57.501 [WARN ] [ng.exec.internal.handler.ExecHandler] - Tried to execute 'C:/PROGRA~1/Python37/python.exe C:/PROGRA~1/Python37/Lib/site-packages/WazeRouteCalculator/HomeRoute.py', but it is not contained in whitelist.
2020-02-23 11:56:57.511 [WARN ] [ng.exec.internal.handler.ExecHandler] - Tried to execute 'C:/PROGRA~1/Python37/python.exe C:/PROGRA~1/Python37/Lib/site-packages/WazeRouteCalculator/BYPRoute.py', but it is not contained in whitelist.
My whitelist file has been created and placed in what I believe to be the proper place:
But otherwiese it works for me. I installed a new OH 2.5.2 on Win10, added exec binding and regex transformation, your things in a thing file, your whitelist as above and get:
19:57:54.238 [INFO ] [smarthome.event.ItemStateChangedEvent] - Befehl_AusfHrung changed from ON to OFF
19:59:13.713 [INFO ] [smarthome.event.ExtensionEvent ] - Extension 'transformation-regex' has been installed.
19:59:18.393 [INFO ] [smarthome.event.ItemCommandEvent ] - Item 'Befehl_AusfHrung' received command ON
19:59:18.397 [INFO ] [arthome.event.ItemStatePredictedEvent] - Befehl_AusfHrung predicted to become ON
19:59:18.401 [INFO ] [smarthome.event.ItemStateChangedEvent] - Befehl_AusfHrung changed from OFF to ON
19:59:18.406 [DEBUG] [ing.exec.internal.handler.ExecHandler] - Passing to shell for parsing command.
19:59:18.406 [DEBUG] [ing.exec.internal.handler.ExecHandler] - OS: WINDOWS (Windows 10)
19:59:18.444 [DEBUG] [ing.exec.internal.handler.ExecHandler] - Exec [ERROR]: 'Das System kann den angegebenen Pfad nicht finden.'
19:59:18.446 [DEBUG] [ing.exec.internal.handler.ExecHandler] - Transformed response is 'null'
19:59:18.446 [INFO ] [smarthome.event.ItemStateChangedEvent] - Befehl_AusfHrung changed from ON to OFF
2020-02-24 18:06:46.100 [WARN ] [ng.exec.internal.handler.ExecHandler] - Tried to execute 'C:/PROGRA~1/Python37/python.exe C:/PROGRA~1/Python37/Lib/site-packages/WazeRouteCalculator/BYPRoute.py', but it is not contained in whitelist.
2020-02-24 18:06:46.100 [WARN ] [ng.exec.internal.handler.ExecHandler] - Tried to execute 'C:/PROGRA~1/Python37/python.exe C:/PROGRA~1/Python37/Lib/site-packages/WazeRouteCalculator/HomeRoute.py', but it is not contained in whitelist.
If you are still running the original 2.5.2 release, you should upgrade the binding to the latest snapshot (which contains the fix for whitelist not loaded at startup) and see if this goes away.
Maybe the number of CPU cores was increased and because of that, the default test setup gives problems? @Kai do you know whether anything changed on Jenkins?
Hm, that might indeed be the case, the Jenkins agents might have more CPU cores than before. @thorsen, did you upgrade the machine just after Feb 21? Is it possible to configure docker to make less cores available to the agents? If not, we will have to see how we can add a custom config to the unit test execution.