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

Jenkins Notification devnull at canonical.com
Wed Aug 7 15:41:22 UTC 2013


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

Changes:

[Benjamin Saller] Conflict UX

This branch creates the general flow of operations for the new conflict UX.
This version doesn't extract the code in a reusable fashion but includes it
directly inline to the viewlet. In the meantime more detailed
styling can take place.

I find the outlined UX odd in practice and would rather skip the 'indication'
phase and directly offer the choices to resolve the conflict. It would almost
never be a good idea to proceed without seeing the real server value.

- I extracted the assets images/field-*.png used in the UI myself from the
PDF, better version might exist.

- The option popup is inline and doesn't float over existing content.

- The padding and asset sizes are only approximations.

- Checkboxes are not currently supported.

Other than that the impl seems to work ok.


To Test:
Deploy glance in the sandbox
Make a change in the db-user field by typing
Verify you see a change indicator
Simulate a conflict from the console:
s = app.db.services.item(0); c = s.get('config');c['db-user']='concon';s.set('config', c)
Verify you see a conflict indicator
Click the field
See both options
Click and option
See that it selects the value and clears the indicators

R=jeff.pihach, rharding, benjamin.saller
CC=
https://codereview.appspot.com/12323043

------------------------------------------
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: "929 rick.harding at canonical.com-20130807003035-grglcl3wnqnww13k
" 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".
+N  app/assets/images/field-changed.png
+N  app/assets/images/field-conflict.png
+N  app/assets/images/field-resolved.png
+N  app/assets/images/field-saved.png
+N  app/templates/conflict-ux.partial
+N  test/test_conflict_ux.js
 M  app/templates/service-configuration.partial
 M  app/templates/service-constraints-viewlet.handlebars
 M  app/templates/service-constraints-viewlet.partial
 M  app/views/databinding.js
 M  app/views/environment.js
 M  app/views/inspector.js
 M  app/views/service.js
 M  lib/views/juju-inspector.less
 M  test/index.html
 M  test/test_inspector_constraints.js
All changes applied successfully.
Now on revision 930.
[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: "930 bcsaller at gmail.com-20130807152043-13h8uv8l3xhkjnc7
" stderr: ""
[jujugui-test-charm] $ bzr log -v -r revid:rick.harding at canonical.com-20130807003035-grglcl3wnqnww13k..revid:bcsaller at gmail.com-20130807152043-13h8uv8l3xhkjnc7 --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: "930 bcsaller at gmail.com-20130807152043-13h8uv8l3xhkjnc7
" stderr: ""
RevisionState revno:930 revid:bcsaller at gmail.com-20130807152043-13h8uv8l3xhkjnc7
[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/hudson2451728010698024081.sh
+ set -ex
+ cat
+ chmod +x /tmp/test-runner
+ sudo -E su -p -c /tmp/test-runner - jujugui-merger
Clean and Prep
2013-08-07 15:26:15,275 INFO Destroying environment 'juju-gui-testing' (type: openstack)...
2013-08-07 15:26:16,994 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.33.0.tar.gz
Processing selenium-2.33.0.tar.gz
Running selenium-2.33.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-9x4DyS/selenium-2.33.0/egg-dist-tmp-ymvNwj
Adding selenium 2.33.0 to easy-install.pth file

Installed /home/jujugui-merger/gui-branch/virtualenv/lib/python2.7/site-packages/selenium-2.33.0-py2.7.egg
Processing dependencies for selenium==2.33.0
Finished processing dependencies for selenium==2.33.0
ADDRESS	91.189.93.93	i-00008e95
Using image e8f6e1d9-3a8b-4948-b127-242721ce190d (ubuntu-released/ubuntu-precise-12.04-amd64-server-20130624-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.252
Assigned IP to i-00008e95
Exposing the service...
2013-08-07 15:35:26,455 INFO Connecting to environment...
2013-08-07 15:35:29,372 INFO Connected to environment.
2013-08-07 15:35:31,544 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/67856dbe7468411297ac338edd6f3a0f
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/1b3990485efc4453a3c36e04e0c51841
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/2724524decd8402299fc5c9c41cd000e
test_error (__main__.TestNotifications) ... ok
test_initial (__main__.TestNotifications) ... ok
* Platform: Internet Explorer 10 (Windows)
* Testcase: TestSandbox
* Details: https://saucelabs.com/jobs/88a499066c9b46409374021489fdac48
- setting new options: sandbox=True
test_charm_deploy (__main__.TestSandbox) ... ok
- setting new options: sandbox=False
* Platform: Internet Explorer 10 (Windows)
* Testcase: TestStaging
* Details: https://saucelabs.com/jobs/b2598b30195f4b94977c9d83aad15aa8
test_charm_deploy (__main__.TestStaging) ... 
- restarting API backend with ip:10.55.60.252...
- done
ok
test_initial_services (__main__.TestStaging) ... ok
test_service_view (__main__.TestStaging) ... ok
test_unit_view (__main__.TestStaging) ... ok

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

----------------------------------------------------------------------
Ran 14 tests in 346.842s

FAILED (failures=1)
Quitting...
2013-08-07 15:41:18,866 INFO Destroying environment 'juju-gui-testing' (type: openstack)...
2013-08-07 15:41:21,956 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-00008e94 running i-00008e95 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