Build failed in Jenkins: jujugui-test-charm #863

Jenkins Notification devnull at canonical.com
Fri Nov 1 00:47:43 UTC 2013


See <http://10.189.74.2:8080/job/jujugui-test-charm/863/changes>

Changes:

[Gary Poster] Honor the options type when exporting bundles.

Improve the way booleans, int and float
service options are exported in the bundle.

Also fix a bug with boolean options and
checkboxes in the inspector:
- set an option to true and save;
- restore an option to false and save;
- the option label says "false" but
the checkbox is switched back to true.

We might need to improve the way boolean options
are normalized before they are stored in the db.
They can be booleans or strings, I guess based
on the code path that executes the
service.set('config') call. Added an XXX comment.

QA:
- try what described above in the inspector;
- set/unset/restore to default options,
including booleans, integers/floats and
strings; export the bundle; ensure it works.

R=gary.poster
CC=
https://codereview.appspot.com/20370043

------------------------------------------
Started by an SCM change
[EnvInject] - Loading node environment variables.
Building remotely on lp-quantal-server-amd64
$ bzr revision-info -d <http://10.189.74.2:8080/job/jujugui-test-charm/ws/>
info result: bzr revision-info -d <http://10.189.74.2:8080/job/jujugui-test-charm/ws/> returned 0. Command output: "1174 jeff.pihach at canonical.com-20131031223852-b3795s69oe1mt0ok
" stderr: ""
[jujugui-test-charm] $ bzr pull --overwrite lp:juju-gui
You have not informed bzr of your Launchpad ID, and you must do this to
write to Launchpad or access private data.  See "bzr help launchpad-login".
http://bazaar.launchpad.net/~juju-gui/juju-gui/trunk is permanently redirected to http://bazaar.launchpad.net/~juju-gui/juju-gui/trunk/changes
You have not informed bzr of your Launchpad ID, and you must do this to
write to Launchpad or access private data.  See "bzr help launchpad-login".
 M  app/models/models.js
 M  app/views/viewlets/service-config.js
 M  test/test_model.js
All changes applied successfully.
Now on revision 1175.
[jujugui-test-charm] $ bzr revert
$ bzr revision-info -d <http://10.189.74.2:8080/job/jujugui-test-charm/ws/>
info result: bzr revision-info -d <http://10.189.74.2:8080/job/jujugui-test-charm/ws/> returned 0. Command output: "1175 gary.poster at canonical.com-20131101002202-bowjun1wqa3q6f70
" stderr: ""
[jujugui-test-charm] $ bzr log -v -r revid:jeff.pihach at canonical.com-20131031223852-b3795s69oe1mt0ok..revid:gary.poster at canonical.com-20131101002202-bowjun1wqa3q6f70 --long --show-ids
Getting local revision...
$ bzr revision-info -d <http://10.189.74.2:8080/job/jujugui-test-charm/ws/>
info result: bzr revision-info -d <http://10.189.74.2:8080/job/jujugui-test-charm/ws/> returned 0. Command output: "1175 gary.poster at canonical.com-20131101002202-bowjun1wqa3q6f70
" stderr: ""
RevisionState revno:1175 revid:gary.poster at canonical.com-20131101002202-bowjun1wqa3q6f70
[EnvInject] - Injecting environment variables from a build step.
[EnvInject] - Injecting as environment variables the properties content 
JUJU_INSTANCE_IP=91.189.93.93
JUJU_BRANCH=lp:juju-gui
JUJU_CHARM=cs:~juju-gui/precise/juju-gui
FAIL_FAST=1
JUJU_GUI_TEST_BROWSERS=ie chrome firefox

[EnvInject] - Variables injected successfully.
[jujugui-test-charm] $ /bin/sh -xe /tmp/hudson4194141898131520105.sh
+ set -ex
+ cat
+ chmod +x /tmp/test-runner
+ sudo -E su -p -c /tmp/test-runner - jujugui-merger
Clean and Prep
2013-11-01 00:26:09,663 INFO Destroying environment 'juju-gui-testing' (type: openstack)...
2013-11-01 00:26:11,149 INFO 'destroy_environment' command finished successfully
WARNING: this command will destroy the 'juju-gui-testing' environment (type: openstack).
This includes all machines, services, data, and other resources. Continue [y/N] 
Lightweight Checkout of lp:juju-gui
You have not informed bzr of your Launchpad ID, and you must do this to
write to Launchpad or access private data.  See "bzr help launchpad-login".
JUJU_INSTANCE_IP=91.189.93.93
Running Tests
virtualenv virtualenv --system-site-packages
New python executable in virtualenv/bin/python
Installing distribute.............................................................................................................................................................................................done.
Installing pip...............done.
virtualenv/bin/easy_install archives/selenium-2.35.0.tar.gz
Processing selenium-2.35.0.tar.gz
Running selenium-2.35.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-GDO0lf/selenium-2.35.0/egg-dist-tmp-b_cAbb
Adding selenium 2.35.0 to easy-install.pth file

Installed /home/jujugui-merger/gui-branch/virtualenv/lib/python2.7/site-packages/selenium-2.35.0-py2.7.egg
Processing dependencies for selenium==2.35.0
Finished processing dependencies for selenium==2.35.0
ADDRESS	91.189.93.93	i-00009a33
Using image 35f6fac2-f403-40a4-8823-9fbd5d9a13ad (ubuntu-released/ubuntu-precise-12.04-amd64-server-20131024-disk1.img)
Bootstrapping...
Deploying service...
Setting origin for charm to deploy lp:juju-gui
Waiting for service to start...
Assigning JUJU_INSTANCE_IP 91.189.93.93
Storing Internal IP as 10.55.60.162
Assigned IP to i-00009a33
Exposing the service...
2013-11-01 00:38:04,883 INFO Connecting to environment...
2013-11-01 00:38:07,660 INFO Connected to environment.
2013-11-01 00:38:09,657 INFO 'status' command finished successfully
Env: juju-gui-testing
APP_URL: http://91.189.93.93
Launching ie tests.
* Platform: Internet Explorer 10 (Windows)
* Testcase: TestAuthentication
* Details: https://saucelabs.com/jobs/20e1ec62a3474b94b72722a181c56a4c
test_root_page (__main__.TestAuthentication) ... ok
test_service_page (__main__.TestAuthentication) ... ok
test_unit_page (__main__.TestAuthentication) ... ok
* Platform: Internet Explorer 10 (Windows)
* Testcase: TestBasics
* Details: https://saucelabs.com/jobs/24297845992e4477a2e1dbfa3be1aee0
test_environment_connection (__main__.TestBasics) ... ok
test_environment_name (__main__.TestBasics) ... ok
test_gui_unit_tests (__main__.TestBasics) ... FAIL
test_title (__main__.TestBasics) ... ok
* Platform: Internet Explorer 10 (Windows)
* Testcase: TestNotifications
* Details: https://saucelabs.com/jobs/276eea11700740afba7a69e55308dbf0
test_error (__main__.TestNotifications) ... ERROR
test_initial (__main__.TestNotifications) ... ok
* Platform: Internet Explorer 10 (Windows)
* Testcase: TestSandbox
* Details: https://saucelabs.com/jobs/63894fe024184897bf6f224709ca8983
- setting new options: sandbox=True
test_charm_deploy (__main__.TestSandbox) ... ERROR
- setting new options: sandbox=False
* Platform: Internet Explorer 10 (Windows)
* Testcase: TestStaging
* Details: https://saucelabs.com/jobs/2c8c2f3de45042cd8984f1a8115e6fa9
test_charm_deploy (__main__.TestStaging) ... ERROR

- restarting API backend with ip:10.55.60.162...
- done
test_initial_services (__main__.TestStaging) ... ok
test_service_view (__main__.TestStaging) ... ERROR
test_unit_view (__main__.TestStaging) ... ERROR

======================================================================
ERROR: test_error (__main__.TestNotifications)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test/test_charm_running.py", line 220, in test_error
    self.deploy(service)
  File "test/test_charm_running.py", line 164, in deploy
    get_add_button, error='Charm details page is not visible.')
  File "/home/jujugui-merger/gui-branch/test/browser.py", line 99, in format_error
    raise e
TimeoutException: Message: 'Charm details page is not visible.' 

======================================================================
ERROR: test_charm_deploy (__main__.TestSandbox)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test/test_charm_running.py", line 339, in test_charm_deploy
    self.deploy('appflower')
  File "test/test_charm_running.py", line 164, in deploy
    get_add_button, error='Charm details page is not visible.')
  File "/home/jujugui-merger/gui-branch/test/browser.py", line 99, in format_error
    raise e
TimeoutException: Message: 'Charm details page is not visible.' 

======================================================================
ERROR: test_charm_deploy (__main__.TestStaging)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test/test_charm_running.py", line 239, in test_charm_deploy
    self.deploy('appflower')
  File "test/test_charm_running.py", line 164, in deploy
    get_add_button, error='Charm details page is not visible.')
  File "/home/jujugui-merger/gui-branch/test/browser.py", line 99, in format_error
    raise e
TimeoutException: Message: 'Charm details page is not visible.' 

======================================================================
ERROR: test_service_view (__main__.TestStaging)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test/test_charm_running.py", line 265, in test_service_view
    service_name_displayed, error='Service name not displayed.')
  File "/home/jujugui-merger/gui-branch/test/browser.py", line 99, in format_error
    raise e
TimeoutException: Message: 'Service name not displayed.' 

======================================================================
ERROR: test_unit_view (__main__.TestStaging)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test/test_charm_running.py", line 273, in test_unit_view
    unit_name = self.driver.find_element_by_tag_name('h1').text
  File "/home/jujugui-merger/gui-branch/virtualenv/local/lib/python2.7/site-packages/selenium-2.35.0-py2.7.egg/selenium/webdriver/remote/webdriver.py", line 318, in find_element_by_tag_name
    return self.find_element(by=By.TAG_NAME, value=name)
  File "/home/jujugui-merger/gui-branch/virtualenv/local/lib/python2.7/site-packages/selenium-2.35.0-py2.7.egg/selenium/webdriver/remote/webdriver.py", line 680, in find_element
    {'using': by, 'value': value})['value']
  File "/home/jujugui-merger/gui-branch/virtualenv/local/lib/python2.7/site-packages/selenium-2.35.0-py2.7.egg/selenium/webdriver/remote/webdriver.py", line 165, in execute
    self.error_handler.check_response(response)
  File "/home/jujugui-merger/gui-branch/virtualenv/local/lib/python2.7/site-packages/selenium-2.35.0-py2.7.egg/selenium/webdriver/remote/errorhandler.py", line 164, in check_response
    raise exception_class(message, screen, stacktrace)
NoSuchElementException: Message: u"Unable to find element with tag name == h1 (WARNING: The server did not provide any stacktrace information)\nCommand duration or timeout: 20.10 seconds\nFor documentation on this error, please visit: http://seleniumhq.org/exceptions/no_such_element.html\nBuild info: version: '2.30.0', revision: 'dc1ef9c', time: '2013-02-19 00:15:27'\nSystem info: os.name: 'Windows Server 2012', os.arch: 'x86', os.version: '6.2', java.version: '1.6.0_43'\nSession ID: 0c8f96be-3fe3-4246-a592-64545eaf61d8\nDriver info: org.openqa.selenium.ie.InternetExplorerDriver\nCapabilities [{platform=WINDOWS, elementScrollBehavior=0, javascriptEnabled=true, enablePersistentHover=true, ignoreZoomSetting=false, browserName=internet explorer, enableElementCacheCleanup=true, unexpectedAlertBehaviour=dismiss, version=10, cssSelectorsEnabled=true, ignoreProtectedModeSettings=false, requireWindowFocus=false, allowAsynchronousJavaScript=false, handlesAlerts=true, initialBrowserUrl=, nativeEvents=true, takesScreenshot=true}]" ; Stacktrace: 
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0 (None:-2)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance (None:-1)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance (None:-1)
    at java.lang.reflect.Constructor.newInstance (None:-1)
    at org.openqa.selenium.remote.ErrorHandler.createThrowable (ErrorHandler.java:187)
    at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed (ErrorHandler.java:145)
    at org.openqa.selenium.remote.RemoteWebDriver.execute (RemoteWebDriver.java:554)
    at org.openqa.selenium.remote.RemoteWebDriver.findElement (RemoteWebDriver.java:307)
    at org.openqa.selenium.remote.RemoteWebDriver.findElementByTagName (RemoteWebDriver.java:372)
    at org.openqa.selenium.By$ByTagName.findElement (By.java:320)
    at org.openqa.selenium.remote.RemoteWebDriver.findElement (RemoteWebDriver.java:299)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (None:-2)
    at sun.reflect.NativeMethodAccessorImpl.invoke (None:-1)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke (None:-1)
    at java.lang.reflect.Method.invoke (None:-1)
    at org.openqa.selenium.support.events.EventFiringWebDriver$2.invoke (EventFiringWebDriver.java:101)
    at com.sun.proxy.$Proxy1.findElement (None:-1)
    at org.openqa.selenium.support.events.EventFiringWebDriver.findElement (EventFiringWebDriver.java:180)
    at org.openqa.selenium.remote.server.handler.FindElement.call (FindElement.java:47)
    at org.openqa.selenium.remote.server.handler.FindElement.call (FindElement.java:1)
    at java.util.concurrent.FutureTask$Sync.innerRun (None:-1)
    at java.util.concurrent.FutureTask.run (None:-1)
    at org.openqa.selenium.remote.server.DefaultSession$1.run (DefaultSession.java:167)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask (None:-1)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run (None:-1)
    at java.lang.Thread.run (None:-1) 

======================================================================
FAIL: test_gui_unit_tests (__main__.TestBasics)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test/test_charm_running.py", line 99, in test_gui_unit_tests
    self.fail(msg)
AssertionError: 1 failure(s) running 804 tests.

----------------------------------------------------------------------
Ran 14 tests in 570.104s

FAILED (failures=1, errors=5)
Message: 'Charm details page is not visible.' 
Message: 'Charm details page is not visible.' 
Message: 'Charm details page is not visible.' 
Message: 'Service name not displayed.' 
Quitting...
2013-11-01 00:47:40,209 INFO Destroying environment 'juju-gui-testing' (type: openstack)...
2013-11-01 00:47:42,679 INFO 'destroy_environment' command finished successfully
WARNING: this command will destroy the 'juju-gui-testing' environment (type: openstack).
This includes all machines, services, data, and other resources. Continue [y/N] Collected exit code 1
Final instance state
i-00009a33 running i-00009a31 running
+ cat /home/jujugui-merger/exit-status
+ ec=1
+ [ 0 -eq 1 ]
+ wc -l
+ cat /home/jujugui-merger/instance-state
+ [ 2 -lt 2 ]
+ wc -l
+ grep error\|stopped
+ cat /home/jujugui-merger/instance-state
+ [ 0 -gt 0 ]
+ exit 1
Build step 'Execute shell' marked build as failure



More information about the Juju-GUI mailing list