Version 0.2.8 of xvfbwrapper breaks integration tests

Bug #1540495 reported by Timur Sufiev
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
Critical
Victor Stinner

Bug Description

Version 0.2.8 (released on Jan 31) breaks all integration tests with stacktrace

2016-02-01 16:58:10.961 | 2016-02-01 16:58:10.904 | File "/opt/stack/new/horizon/openstack_dashboard/test/integration_tests/helpers.py", line 160, in setUp
2016-02-01 16:58:10.961 | 2016-02-01 16:58:10.905 | super(TestCase, self).setUp()
2016-02-01 16:58:10.961 | 2016-02-01 16:58:10.907 | File "/opt/stack/new/horizon/openstack_dashboard/test/integration_tests/helpers.py", line 60, in setUp
2016-02-01 16:58:10.962 | 2016-02-01 16:58:10.909 | self.vdisplay.xvfb_cmd.append("-noreset")
2016-02-01 16:58:10.962 | 2016-02-01 16:58:10.910 | AttributeError: Xvfb instance has no attribute 'xvfb_cmd'

The solution is to adapt to new version by passing additional arguments when initializing Xvfb instance (instead of appending them to xvfb_cmd list which doesn't exist now before .start() is invoked).

Timur Sufiev (tsufiev-x)
Changed in horizon:
assignee: nobody → Timur Sufiev (tsufiev-x)
importance: Undecided → Critical
milestone: none → mitaka-3
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to horizon (master)

Fix proposed to branch: master
Review: https://review.openstack.org/274812

Changed in horizon:
status: New → In Progress
Timur Sufiev (tsufiev-x)
summary: - Version 0.28 of xfvbwrapper breaks integration tests
+ Version 0.28 of xvfbwrapper breaks integration tests
summary: - Version 0.28 of xvfbwrapper breaks integration tests
+ Version 0.2.8 of xvfbwrapper breaks integration tests
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Fix proposed to branch: master
Review: https://review.openstack.org/275401

Changed in horizon:
assignee: Timur Sufiev (tsufiev-x) → Victor Stinner (victor-stinner)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (master)

Reviewed: https://review.openstack.org/275401
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=78bfa9727da5e653cd46fbea5f2e348c32905154
Submitter: Jenkins
Branch: master

commit 78bfa9727da5e653cd46fbea5f2e348c32905154
Author: Victor Stinner <email address hidden>
Date: Tue Feb 2 21:43:49 2016 +0100

    Support xvfbwrapper 0.2.8

    xvfbwrapper 0.2.8 renamed the xvfb_cmd attribute of xvfbwrapper.Xvfb
    to extra_xvfb_args. This change checks if the new attribute name is
    available to support new and old xvfbwrapper version.

    xvfbwrapper commit changing the API:
    https://github.com/cgoldberg/xvfbwrapper/commit/9a8c0e80f6a932d5448d1b97d5a9c316a7a7c8e3

    Closes-Bug: #1540495
    Change-Id: I45704450ff396787453937362029945b94887189

Changed in horizon:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on horizon (master)

Change abandoned by Timur Sufiev (<email address hidden>) on branch: master
Review: https://review.openstack.org/274812

Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/horizon 9.0.0.0b3

This issue was fixed in the openstack/horizon 9.0.0.0b3 development milestone.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.