ImageMagick conversion problem when run through Jenkins

372 views
Skip to first unread message

Zorak

unread,
May 31, 2012, 1:52:12 PM5/31/12
to Zucchini Framework
Consistently seeing the following problem when running my zucchini
script from Jenkins. Wondering if anyone has an idea about what I
might be doing wrong.

I am seeing the tests run on my device, I get the initial screenshots,
but there seems to be a problem with manipulating the images. This
does not happen when run from the command line, however.

I have tried re-installing ImageMagick. I suspect that I am doing
something wrong with my Jenkins configuration, but I am not certain.

Previously, I was having a problem where the coffee command was not
being found, so I added /usr/local/bin path addition to the shell
script for my test execution.

I am getting the screenshots captured in run_data, but the ../Diff/
and ../Masked/ images are not being created. I think this is a
problem with conversion. I do not know how to fix it.

I am running Jenkins as a jenkins admin user in the group daemon.
System priviledges should not be the problem. Any ideas would be
appreciated.

- Jesse


Started by user jesse
Building in workspace /Users/Shared/Jenkins/Home/jobs/Test/workspace
[workspace] $ /bin/sh -xe /var/folders/62/
qzkkdlg5143gkwz6p02k2ddw00009c/T/hudson23050684629337621.sh
+ cd /Users/Shared/Jenkins/Zucchini/iWO/
+ export PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
+ PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
+ export 'ZUCCHINI_DEVICE=ASI 13'
+ ZUCCHINI_DEVICE='ASI 13'
+ zucchini run --ci /Users/Shared/Jenkins/Zucchini/iWO/features/
LoginLogout
dyld: Library not loaded: /System/Library/Frameworks/OpenCL.framework/
Versions/A/Libraries/libclparser.dylib
Referenced from: /usr/local/bin/convert
Reason: image not found
dyld: Library not loaded: /System/Library/Frameworks/OpenCL.framework/
Versions/A/Libraries/libclparser.dylib
Referenced from: /usr/local/bin/convert
Reason: image not found
sh: line 1: 5628 Trace/BPT trap: 5 compare -metric AE -fuzz 2% -
subimage-search "/Users/Shared/Jenkins/Zucchini/iWO/features/
LoginLogout/run_data/Run 1/../Masked/actual/01_Splash_Screen.png" "/
Users/Shared/Jenkins/Zucchini/iWO/features/LoginLogout/run_data/Run
1/../Masked/reference/01_Splash_Screen.png" "/Users/Shared/Jenkins/
Zucchini/iWO/features/LoginLogout/run_data/Run 1/../Diff/
01_Splash_Screen.png" 2>&1
dyld: Library not loaded: /System/Library/Frameworks/OpenCL.framework/
Versions/A/Libraries/libclparser.dylib
Referenced from: /usr/local/bin/convert
Reason: image not found
dyld: Library not loaded: /System/Library/Frameworks/OpenCL.framework/
Versions/A/Libraries/libclparser.dylib
Referenced from: /usr/local/bin/convert
Reason: image not found
sh: line 1: 5632 Trace/BPT trap: 5 compare -metric AE -fuzz 2% -
subimage-search "/Users/Shared/Jenkins/Zucchini/iWO/features/
LoginLogout/run_data/Run 1/../Masked/actual/02_Login_Screen-
Without_Credentials.png" "/Users/Shared/Jenkins/Zucchini/iWO/features/
LoginLogout/run_data/Run 1/../Masked/reference/02_Login_Screen-
Without_Credentials.png" "/Users/Shared/Jenkins/Zucchini/iWO/features/
LoginLogout/run_data/Run 1/../Diff/02_Login_Screen-
Without_Credentials.png" 2>&1
dyld: Library not loaded: /System/Library/Frameworks/OpenCL.framework/
Versions/A/Libraries/libclparser.dylib
Referenced from: /usr/local/bin/convert
Reason: image not found
dyld: Library not loaded: /System/Library/Frameworks/OpenCL.framework/
Versions/A/Libraries/libclparser.dylib
Referenced from: /usr/local/bin/convert
Reason: image not found
dyld: Library not loaded: /System/Library/Frameworks/OpenCL.framework/
Versions/A/Libraries/libclparser.dylib
Referenced from: /usr/local/bin/convert
Reason: image not found
dyld: Library not loaded: /System/Library/Frameworks/OpenCL.framework/
Versions/A/Libraries/libclparser.dylib
Referenced from: /usr/local/bin/convert
Reason: image not found
sh: line 1: 5638 Trace/BPT trap: 5 compare -metric AE -fuzz 2% -
subimage-search "/Users/Shared/Jenkins/Zucchini/iWO/features/
LoginLogout/run_data/Run 1/../Masked/actual/03_Login_Screen-
With_Credentials.png" "/Users/Shared/Jenkins/Zucchini/iWO/features/
LoginLogout/run_data/Run 1/../Masked/reference/03_Login_Screen-
With_Credentials.png" "/Users/Shared/Jenkins/Zucchini/iWO/features/
LoginLogout/run_data/Run 1/../Diff/03_Login_Screen-
With_Credentials.png" 2>&1
dyld: Library not loaded: /System/Library/Frameworks/OpenCL.framework/
Versions/A/Libraries/libclparser.dylib
Referenced from: /usr/local/bin/convert
Reason: image not found
dyld: Library not loaded: /System/Library/Frameworks/OpenCL.framework/
Versions/A/Libraries/libclparser.dylib
Referenced from: /usr/local/bin/convert
Reason: image not found
sh: line 1: 5642 Trace/BPT trap: 5 compare -metric AE -fuzz 2% -
subimage-search "/Users/Shared/Jenkins/Zucchini/iWO/features/
LoginLogout/run_data/Run 1/../Masked/actual/04_WO_Type_Prompt.png" "/
Users/Shared/Jenkins/Zucchini/iWO/features/LoginLogout/run_data/Run
1/../Masked/reference/04_WO_Type_Prompt.png" "/Users/Shared/Jenkins/
Zucchini/iWO/features/LoginLogout/run_data/Run 1/../Diff/
04_WO_Type_Prompt.png" 2>&1
dyld: Library not loaded: /System/Library/Frameworks/OpenCL.framework/
Versions/A/Libraries/libclparser.dylib
Referenced from: /usr/local/bin/convert
Reason: image not found
dyld: Library not loaded: /System/Library/Frameworks/OpenCL.framework/
Versions/A/Libraries/libclparser.dylib
Referenced from: /usr/local/bin/convert
Reason: image not found
sh: line 1: 5646 Trace/BPT trap: 5 compare -metric AE -fuzz 2% -
subimage-search "/Users/Shared/Jenkins/Zucchini/iWO/features/
LoginLogout/run_data/Run 1/../Masked/actual/
05_First_WO_Type_Selected.png" "/Users/Shared/Jenkins/Zucchini/iWO/
features/LoginLogout/run_data/Run 1/../Masked/reference/
05_First_WO_Type_Selected.png" "/Users/Shared/Jenkins/Zucchini/iWO/
features/LoginLogout/run_data/Run 1/../Diff/
05_First_WO_Type_Selected.png" 2>&1
dyld: Library not loaded: /System/Library/Frameworks/OpenCL.framework/
Versions/A/Libraries/libclparser.dylib
Referenced from: /usr/local/bin/convert
Reason: image not found
dyld: Library not loaded: /System/Library/Frameworks/OpenCL.framework/
Versions/A/Libraries/libclparser.dylib
Referenced from: /usr/local/bin/convert
Reason: image not found
sh: line 1: 5651 Trace/BPT trap: 5 compare -metric AE -fuzz 2% -
subimage-search "/Users/Shared/Jenkins/Zucchini/iWO/features/
LoginLogout/run_data/Run 1/../Masked/actual/06_I_Am_Logged_In.png" "/
Users/Shared/Jenkins/Zucchini/iWO/features/LoginLogout/run_data/Run
1/../Masked/reference/06_I_Am_Logged_In.png" "/Users/Shared/Jenkins/
Zucchini/iWO/features/LoginLogout/run_data/Run 1/../Diff/
06_I_Am_Logged_In.png" 2>&1
/Library/Ruby/Gems/1.8/gems/zucchini-ios-0.5.5/lib/report.rb:21:in
`initialize': Permission denied - /tmp/zucchini_report.html
(Errno::EACCES)
from /Library/Ruby/Gems/1.8/gems/zucchini-ios-0.5.5/lib/report.rb:
21:in `open'
from /Library/Ruby/Gems/1.8/gems/zucchini-ios-0.5.5/lib/report.rb:
21:in `html'
from /Library/Ruby/Gems/1.8/gems/zucchini-ios-0.5.5/lib/report.rb:
27:in `present'
from /Library/Ruby/Gems/1.8/gems/zucchini-ios-0.5.5/lib/runner.rb:
39:in `run'
from /Library/Ruby/Gems/1.8/gems/zucchini-ios-0.5.5/lib/runner.rb:
21:in `execute'
from /Library/Ruby/Gems/1.8/gems/clamp-0.3.1/lib/clamp/command.rb:
73:in `execute'
from /Library/Ruby/Gems/1.8/gems/clamp-0.3.1/lib/clamp/command.rb:
64:in `run'
from /Library/Ruby/Gems/1.8/gems/clamp-0.3.1/lib/clamp/command.rb:
126:in `run'
from /Library/Ruby/Gems/1.8/gems/zucchini-ios-0.5.5/bin/zucchini:19
from /usr/bin/zucchini:19:in `load'
from /usr/bin/zucchini:19
2012-05-31 17:27:06 +0000 Default: Got the awaited element: [object
UIAButton]
2012-05-31 17:27:07 +0000 Debug: target.captureRectWithName("{origin:
{x:0.00,y:0.00}, size:{height:480.00,width:320.00}}",
"01_Splash_Screen")
2012-05-31 17:27:08 +0000 Screenshot captured.
2012-05-31 17:27:08 +0000 Debug:
target.frontMostApp().mainWindow().buttons()["Live Mode"].tap()
2012-05-31 17:27:10 +0000 Default: Got the awaited element: [object
UIATextField]
2012-05-31 17:27:11 +0000 Debug: target.captureRectWithName("{origin:
{x:0.00,y:0.00}, size:{height:480.00,width:320.00}}", "02_Login_Screen-
Without_Credentials")
2012-05-31 17:27:12 +0000 Screenshot captured.
2012-05-31 17:27:12 +0000 Debug:
target.frontMostApp().mainWindow().textFields()["ServerId"].tap()
2012-05-31 17:27:12 +0000 Debug:
target.frontMostApp().mainWindow().secureTextFields()
["Password"].tap()
2012-05-31 17:27:14 +0000 Debug: target.captureRectWithName("{origin:
{x:0.00,y:0.00}, size:{height:480.00,width:320.00}}", "03_Login_Screen-
With_Credentials")
2012-05-31 17:27:15 +0000 Screenshot captured.
2012-05-31 17:27:15 +0000 Debug:
target.frontMostApp().mainWindow().navigationBar().rightButton().tap()
2012-05-31 17:27:20 +0000 Default: Got the awaited element: [object
UIATableCell]
2012-05-31 17:27:21 +0000 Debug: target.captureRectWithName("{origin:
{x:0.00,y:0.00}, size:{height:480.00,width:320.00}}",
"04_WO_Type_Prompt")
2012-05-31 17:27:21 +0000 Screenshot captured.
2012-05-31 17:27:21 +0000 Debug:
target.frontMostApp().mainWindow().tableViews()["Empty list"].cells()
[0].tap()
2012-05-31 17:27:23 +0000 Debug: target.captureRectWithName("{origin:
{x:0.00,y:0.00}, size:{height:480.00,width:320.00}}",
"05_First_WO_Type_Selected")
2012-05-31 17:27:23 +0000 Screenshot captured.
2012-05-31 17:27:23 +0000 Debug:
target.frontMostApp().mainWindow().navigationBar().rightButton().tap()
2012-05-31 17:27:37 +0000 Debug: target.captureRectWithName("{origin:
{x:0.00,y:0.00}, size:{height:480.00,width:320.00}}",
"06_I_Am_Logged_In")
2012-05-31 17:27:37 +0000 Screenshot captured.
2012-05-31 17:27:37 +0000 Debug:
target.frontMostApp().mainWindow().segmentedControls()[0].buttons()
["Cmd"].tap()
2012-05-31 17:27:40 +0000 Debug:
target.frontMostApp().mainWindow().tableViews()["MenuView"].cells()
["Logout, L"].tap()
Instruments Trace Complete (Duration : 37.404125s; Output : /Users/
Shared/Jenkins/Zucchini/iWO/instrumentscli0.trace)
LoginLogout:
6 failed, 0 pending, 0 passed

Failed:
01_Splash_Screen.png: dyld: Library not loaded: /System/Library/
Frameworks/OpenCL.framework/Versions/A/Libraries/libclparser.dylib
Referenced from: /usr/local/bin/compare
Reason: image not found
02_Login_Screen-Without_Credentials.png: dyld: Library not loaded: /
System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries/
libclparser.dylib
Referenced from: /usr/local/bin/compare
Reason: image not found
03_Login_Screen-With_Credentials.png: dyld: Library not loaded: /
System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries/
libclparser.dylib
Referenced from: /usr/local/bin/compare
Reason: image not found
04_WO_Type_Prompt.png: dyld: Library not loaded: /System/Library/
Frameworks/OpenCL.framework/Versions/A/Libraries/libclparser.dylib
Referenced from: /usr/local/bin/compare
Reason: image not found
05_First_WO_Type_Selected.png: dyld: Library not loaded: /System/
Library/Frameworks/OpenCL.framework/Versions/A/Libraries/
libclparser.dylib
Referenced from: /usr/local/bin/compare
Reason: image not found
06_I_Am_Logged_In.png: dyld: Library not loaded: /System/Library/
Frameworks/OpenCL.framework/Versions/A/Libraries/libclparser.dylib
Referenced from: /usr/local/bin/compare
Reason: image not found
Build step 'Execute shell' marked build as failure
Finished: FAILURE

Vasily Mikhaylichenko

unread,
May 31, 2012, 7:52:11 PM5/31/12
to zucchini...@googlegroups.com
Hi Zorak,


I can also see it that your Jenkins user doesn't have access to /tmp.
Make sure you chmod 666 it.

Good luck!

Zorak

unread,
Jun 1, 2012, 3:24:46 PM6/1/12
to Zucchini Framework
Thank you Vasily,

I see what you mean about the /tmp directory. One caveat I ran into
with Lion is that my /tmp directory was hiding under a /private
directory with a symbolic link. Maybe those OSX guys thought it was a
good idea. LoL.

The ImageMagick problem has been resolved at this point. I re-
installed using MacPorts and everything worked after I added the path
to my convert application to the exported path list.

The build is now listed as successful, although I noticed one error,
and it appears that the browser does not load the results of the run:

LSOpenURLsWithRole() failed with error -1712 for the file /tmp/
zucchini_report.html

Can we continue this here, or would it be better in a separate thread?

Again, I appreciate your response. I think this is a great tool and I
hope that I am able to tell you more about the results we get with
your project in use.

- Jesse

Latest output is as follows:

Started by user jesse
Building in workspace /Users/Shared/Jenkins/Home/jobs/Test/workspace
[workspace] $ /bin/sh -xe /var/folders/62/
qzkkdlg5143gkwz6p02k2ddw00009c/T/hudson4177460871547473899.sh
+ cd /Users/Shared/Jenkins/Zucchini/iWO/
+ export PATH=/usr/local/bin:/opt/local/bin:/usr/bin:/bin:/usr/sbin:/
sbin
+ PATH=/usr/local/bin:/opt/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
+ export 'ZUCCHINI_DEVICE=ASI 13'
+ ZUCCHINI_DEVICE='ASI 13'
+ zucchini run --ci /Users/Shared/Jenkins/Zucchini/iWO/features/
LoginLogout
2012-06-01 19:08:50 +0000 Default: Got the awaited element: [object
UIAButton]
2012-06-01 19:08:51 +0000 Debug: target.captureRectWithName("{origin:
{x:0.00,y:0.00}, size:{height:480.00,width:320.00}}",
"01_Splash_Screen")
2012-06-01 19:08:51 +0000 Screenshot captured.
2012-06-01 19:08:51 +0000 Debug:
target.frontMostApp().mainWindow().buttons()["Live Mode"].tap()
2012-06-01 19:08:54 +0000 Default: Got the awaited element: [object
UIATextField]
2012-06-01 19:08:55 +0000 Debug: target.captureRectWithName("{origin:
{x:0.00,y:0.00}, size:{height:480.00,width:320.00}}", "02_Login_Screen-
Without_Credentials")
2012-06-01 19:08:55 +0000 Screenshot captured.
2012-06-01 19:08:55 +0000 Debug:
target.frontMostApp().mainWindow().textFields()["ServerId"].tap()
2012-06-01 19:08:56 +0000 Debug:
target.frontMostApp().mainWindow().secureTextFields()
["Password"].tap()
2012-06-01 19:08:58 +0000 Debug: target.captureRectWithName("{origin:
{x:0.00,y:0.00}, size:{height:480.00,width:320.00}}", "03_Login_Screen-
With_Credentials")
2012-06-01 19:08:59 +0000 Screenshot captured.
2012-06-01 19:08:59 +0000 Debug:
target.frontMostApp().mainWindow().navigationBar().rightButton().tap()
2012-06-01 19:09:04 +0000 Default: Got the awaited element: [object
UIATableCell]
2012-06-01 19:09:05 +0000 Debug: target.captureRectWithName("{origin:
{x:0.00,y:0.00}, size:{height:480.00,width:320.00}}",
"04_WO_Type_Prompt")
2012-06-01 19:09:05 +0000 Screenshot captured.
2012-06-01 19:09:05 +0000 Debug:
target.frontMostApp().mainWindow().tableViews()["Empty list"].cells()
[0].tap()
2012-06-01 19:09:06 +0000 Debug: target.captureRectWithName("{origin:
{x:0.00,y:0.00}, size:{height:480.00,width:320.00}}",
"05_First_WO_Type_Selected")
2012-06-01 19:09:07 +0000 Screenshot captured.
2012-06-01 19:09:07 +0000 Debug:
target.frontMostApp().mainWindow().navigationBar().rightButton().tap()
2012-06-01 19:09:20 +0000 Debug: target.captureRectWithName("{origin:
{x:0.00,y:0.00}, size:{height:480.00,width:320.00}}",
"06_I_Am_Logged_In")
2012-06-01 19:09:20 +0000 Screenshot captured.
2012-06-01 19:09:20 +0000 Debug:
target.frontMostApp().mainWindow().segmentedControls()[0].buttons()
["Cmd"].tap()
2012-06-01 19:09:23 +0000 Debug:
target.frontMostApp().mainWindow().tableViews()["MenuView"].cells()
["Logout, L"].tap()
Instruments Trace Complete (Duration : 37.272873s; Output : /Users/
Shared/Jenkins/Zucchini/iWO/instrumentscli0.trace)
LoginLogout:
0 failed, 0 pending, 6 passed
LSOpenURLsWithRole() failed with error -1712 for the file /tmp/
zucchini_report.html.
Finished: SUCCESS

On May 31, 7:52 pm, Vasily Mikhaylichenko
<vasily.mikhayliche...@gmail.com> wrote:
> Hi Zorak,
>
> Try restoring libclparser.dylib (http://apple.stackexchange.com/questions/21562/installing-imagemagick...
> ).
> ...
>
> read more »
Reply all
Reply to author
Forward
0 new messages