Slow down execution when running via jenkins

Asked by Mujeebu Rahman

HI All,

Can somebody help on this, Execution is going slow down when we are running scripts via Jenkins.

Help appreciate.

Thanks
Vamsi

Hi,

The execution slow down when running the scripts via jenkins. Also it fails to find the images in most of the cases.
But the same script works find in IDE.

Please can anyone help on this issue.

Note: OS Version: MAC OSX 9 Script: Python

Regards.

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
RaiMan
Solved:
Last query:
Last reply:
Revision history for this message
Mujeebu Rahman (mujeeburahman007) said :
#1

Additional Info:

I am using the following command in Execute Shell of jenkins,

/Applications/Sikuli-IDE.app/sikuli-ide.sh -r <path to sikuli script>

The execution becomes very slow and it fail to find the image even though the image is visible on the screen.

Tried executing the same scripts from Sikuli IDE and works fine.

Regards.

Revision history for this message
RaiMan (raimund-hocke) said :
#2

What version of Sikuli?

OSX 9 ????

Revision history for this message
Mujeebu Rahman (mujeeburahman007) said :
#3

Sikuli IDE Version: 1.0.1
OS Version: OS X 10.9.1

Revision history for this message
Best RaiMan (raimund-hocke) said :
#4

version 1.0.1 does not have a sikuli-ide.sh ???

so what are you using?

When running with Jenkins you should use sikuli-script.jar and the runScript command file or your equivalent command file with an appropriate
java -jar sikuli-script.jar

to run your scripts.

Revision history for this message
Mujeebu Rahman (mujeeburahman007) said :
#5

Hi RaiMan,

Getting below exception upon running the script using sikuli-script.jar file,

Terminal Command:

java -jar sikuli-script.jar -i /Users/mujeebu.a/.jenkins/jobs/TalentPerformance/workspace/Performance_TalentPlanning.sikuli

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/Users/mujeebu.a/Desktop/sikuli-script.jar/Lib/sikuli/__init__.py", line 3, in <module>
  File "/Users/mujeebu.a/Desktop/sikuli-script.jar/Lib/sikuli/Sikuli.py", line 22, in <module>
java.lang.UnsatisfiedLinkError: /Applications/Sikuli-IDE.app/Contents/Frameworks/libVisionProxy.jnilib: Library not loaded: /usr/local/lib/libopencv_core.2.2.dylib Referenced from: /Applications/Sikuli-IDE.app/Contents/Frameworks/libVisionProxy.jnilib Reason: image not found
 at java.lang.ClassLoader$NativeLibrary.load(Native Method)
 at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1833)
 at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1709)
 at java.lang.Runtime.load0(Runtime.java:770)
 at java.lang.System.load(System.java:1019)
 at com.wapmx.nativeutils.jniloader.NativeLoader.loadLibrary(NativeLoader.java:44)
 at org.sikuli.script.Finder.<clinit>(Finder.java:33)
 at java.lang.Class.forName0(Native Method)
 at java.lang.Class.forName(Class.java:249)
 at org.python.core.Py.loadAndInitClass(Py.java:895)
 at org.python.core.Py.findClassInternal(Py.java:830)
 at org.python.core.Py.findClassEx(Py.java:881)
 at org.python.core.packagecache.SysPackageManager.findClass(SysPackageManager.java:133)
 at org.python.core.packagecache.PackageManager.findClass(PackageManager.java:28)
 at org.python.core.packagecache.SysPackageManager.findClass(SysPackageManager.java:122)
 at org.python.core.PyJavaPackage.__findattr_ex__(PyJavaPackage.java:137)
 at org.python.core.PyObject.__findattr__(PyObject.java:863)
 at org.python.core.imp.import_name(imp.java:849)
 at org.python.core.imp.importName(imp.java:884)
 at org.python.core.ImportFunction.__call__(__builtin__.java:1220)
 at org.python.core.PyObject.__call__(PyObject.java:357)
 at org.python.core.__builtin__.__import__(__builtin__.java:1173)
 at org.python.core.imp.importFromAs(imp.java:978)
 at org.python.core.imp.importFrom(imp.java:954)
 at sikuli.Sikuli$py.f$0(/Users/mujeebu.a/Desktop/sikuli-script.jar/Lib/sikuli/Sikuli.py:211)
 at sikuli.Sikuli$py.call_function(/Users/mujeebu.a/Desktop/sikuli-script.jar/Lib/sikuli/Sikuli.py)
 at org.python.core.PyTableCode.call(PyTableCode.java:165)
 at org.python.core.PyCode.call(PyCode.java:18)
 at org.python.core.imp.createFromCode(imp.java:386)
 at org.python.core.util.importer.importer_load_module(importer.java:109)
 at org.python.modules.zipimport.zipimporter.zipimporter_load_module(zipimporter.java:161)
 at org.python.modules.zipimport.zipimporter$zipimporter_load_module_exposer.__call__(Unknown Source)
 at org.python.core.PyBuiltinMethodNarrow.__call__(PyBuiltinMethodNarrow.java:47)
 at org.python.core.imp.loadFromLoader(imp.java:513)
 at org.python.core.imp.find_module(imp.java:467)
 at org.python.core.PyModule.impAttr(PyModule.java:100)
 at org.python.core.imp.import_next(imp.java:715)
 at org.python.core.imp.import_name(imp.java:824)
 at org.python.core.imp.importName(imp.java:884)
 at org.python.core.ImportFunction.__call__(__builtin__.java:1220)
 at org.python.core.PyObject.__call__(PyObject.java:357)
 at org.python.core.__builtin__.__import__(__builtin__.java:1173)
 at org.python.core.imp.importAll(imp.java:998)
 at sikuli$py.f$0(/Users/mujeebu.a/Desktop/sikuli-script.jar/Lib/sikuli/__init__.py:3)
 at sikuli$py.call_function(/Users/mujeebu.a/Desktop/sikuli-script.jar/Lib/sikuli/__init__.py)
 at org.python.core.PyTableCode.call(PyTableCode.java:165)
 at org.python.core.PyCode.call(PyCode.java:18)
 at org.python.core.imp.createFromCode(imp.java:386)
 at org.python.core.util.importer.importer_load_module(importer.java:109)
 at org.python.modules.zipimport.zipimporter.zipimporter_load_module(zipimporter.java:161)
 at org.python.modules.zipimport.zipimporter$zipimporter_load_module_exposer.__call__(Unknown Source)
 at org.python.core.PyBuiltinMethodNarrow.__call__(PyBuiltinMethodNarrow.java:47)
 at org.python.core.imp.loadFromLoader(imp.java:513)
 at org.python.core.imp.find_module(imp.java:467)
 at org.python.core.imp.import_next(imp.java:713)
 at org.python.core.imp.import_name(imp.java:824)
 at org.python.core.imp.importName(imp.java:884)
 at org.python.core.ImportFunction.__call__(__builtin__.java:1220)
 at org.python.core.PyObject.__call__(PyObject.java:357)
 at org.python.core.__builtin__.__import__(__builtin__.java:1173)
 at org.python.core.imp.importAll(imp.java:998)
 at org.python.pycode._pyx0.f$0(<string>:1)
 at org.python.pycode._pyx0.call_function(<string>)
 at org.python.core.PyTableCode.call(PyTableCode.java:165)
 at org.python.core.PyCode.call(PyCode.java:18)
 at org.python.core.Py.runCode(Py.java:1261)
 at org.python.core.Py.exec(Py.java:1305)
 at org.python.util.PythonInterpreter.exec(PythonInterpreter.java:206)
 at org.python.util.jython.run(jython.java:280)
 at org.python.util.jython.main(jython.java:129)
 at org.sikuli.script.SikuliScript.startInteractiveMode(SikuliScript.java:93)
 at org.sikuli.script.SikuliScript.main(SikuliScript.java:106)

java.lang.UnsatisfiedLinkError: java.lang.UnsatisfiedLinkError: /Applications/Sikuli-IDE.app/Contents/Frameworks/libVisionProxy.jnilib: Library not loaded: /usr/local/lib/libopencv_core.2.2.dylib Referenced from: /Applications/Sikuli-IDE.app/Contents/Frameworks/libVisionProxy.jnilib Reason: image not found

Regards,
Mujeebu Rahman.

Revision history for this message
RaiMan (raimund-hocke) said :
#6

you have a mix of version 1.0.1 and RC3 on your system.

Take care to have a clean 1.0.1 installation
Use latest sikuli-setup.jar and use setup option 2 or 3 in a folder outside /Application to get a valid sikuli-scipt.jar fro version 1.0.1

Revision history for this message
Mujeebu Rahman (mujeeburahman007) said :
#7

Hi RaiMan,

That's Kool, now I got the issue resolved. I had taken the latest sikuli-script.jar file and the execution went smooth.

Regards.

Revision history for this message
Mujeebu Rahman (mujeeburahman007) said :
#8

Thanks RaiMan, that solved my question.