Merge lp:~nskaggs/ubuntu-ui-toolkit/fix-1328600 into lp:ubuntu-ui-toolkit/staging

Proposed by Nicholas Skaggs
Status: Merged
Merged at revision: 1159
Proposed branch: lp:~nskaggs/ubuntu-ui-toolkit/fix-1328600
Merge into: lp:ubuntu-ui-toolkit/staging
Diff against target: 84 lines (+31/-12)
2 files modified
tests/autopilot/ubuntuuitoolkit/_custom_proxy_objects/pickers.py (+9/-6)
tests/autopilot/ubuntuuitoolkit/tests/custom_proxy_objects/test_date_picker.py (+22/-6)
To merge this branch: bzr merge lp:~nskaggs/ubuntu-ui-toolkit/fix-1328600
Reviewer Review Type Date Requested Status
Leo Arias (community) Approve
PS Jenkins bot continuous-integration Needs Fixing
Ubuntu SDK team Pending
Review via email: mp+227394@code.launchpad.net

Commit message

Workaround bug 1328600 by setting min and max values for date and time pickers inside tests

Description of the change

Workaround bug 1328600 by setting min and max values for date and time pickers inside tests

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

FAILED: Continuous integration, rev:1155
http://jenkins.qa.ubuntu.com/job/ubuntu-sdk-team-ubuntu-ui-toolkit-staging-ci/623/
Executed test runs:
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-utopic-touch/2204
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-utopic/1839
    SUCCESS: http://jenkins.qa.ubuntu.com/job/ubuntu-sdk-team-ubuntu-ui-toolkit-staging-utopic-amd64-ci/455
    SUCCESS: http://jenkins.qa.ubuntu.com/job/ubuntu-sdk-team-ubuntu-ui-toolkit-staging-utopic-armhf-ci/455
        deb: http://jenkins.qa.ubuntu.com/job/ubuntu-sdk-team-ubuntu-ui-toolkit-staging-utopic-armhf-ci/455/artifact/work/output/*zip*/output.zip
    SUCCESS: http://jenkins.qa.ubuntu.com/job/ubuntu-sdk-team-ubuntu-ui-toolkit-staging-utopic-i386-ci/455
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-runner-mako/2414
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-utopic-armhf/3377
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-utopic-armhf/3377/artifact/work/output/*zip*/output.zip
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/10092
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/autopilot-testrunner-otto-utopic/1543
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-utopic-amd64/2057
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-utopic-amd64/2057/artifact/work/output/*zip*/output.zip

Click here to trigger a rebuild:
http://s-jenkins.ubuntu-ci:8080/job/ubuntu-sdk-team-ubuntu-ui-toolkit-staging-ci/623/rebuild

review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

FAILED: Continuous integration, rev:1155
http://jenkins.qa.ubuntu.com/job/ubuntu-sdk-team-ubuntu-ui-toolkit-staging-ci/628/
Executed test runs:
    FAILURE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-utopic-touch/2246/console
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-utopic/1863
    SUCCESS: http://jenkins.qa.ubuntu.com/job/ubuntu-sdk-team-ubuntu-ui-toolkit-staging-utopic-amd64-ci/460
    SUCCESS: http://jenkins.qa.ubuntu.com/job/ubuntu-sdk-team-ubuntu-ui-toolkit-staging-utopic-armhf-ci/460
        deb: http://jenkins.qa.ubuntu.com/job/ubuntu-sdk-team-ubuntu-ui-toolkit-staging-utopic-armhf-ci/460/artifact/work/output/*zip*/output.zip
    FAILURE: http://jenkins.qa.ubuntu.com/job/ubuntu-sdk-team-ubuntu-ui-toolkit-staging-utopic-i386-ci/460/console
    FAILURE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-runner-mako/2451/console
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-utopic-armhf/3430
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-utopic-armhf/3430/artifact/work/output/*zip*/output.zip
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/autopilot-testrunner-otto-utopic/1570
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-utopic-amd64/2082
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-utopic-amd64/2082/artifact/work/output/*zip*/output.zip

Click here to trigger a rebuild:
http://s-jenkins.ubuntu-ci:8080/job/ubuntu-sdk-team-ubuntu-ui-toolkit-staging-ci/628/rebuild

review: Needs Fixing (continuous-integration)
Revision history for this message
Nicholas Skaggs (nskaggs) wrote :

Kicking off a rebuild, as the failure seemed to occur because of the archive being in a bad state.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

FAILED: Continuous integration, rev:1155
http://jenkins.qa.ubuntu.com/job/ubuntu-sdk-team-ubuntu-ui-toolkit-staging-ci/634/
Executed test runs:
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-utopic-touch/2271
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-utopic/1883
    SUCCESS: http://jenkins.qa.ubuntu.com/job/ubuntu-sdk-team-ubuntu-ui-toolkit-staging-utopic-amd64-ci/466
    SUCCESS: http://jenkins.qa.ubuntu.com/job/ubuntu-sdk-team-ubuntu-ui-toolkit-staging-utopic-armhf-ci/466
        deb: http://jenkins.qa.ubuntu.com/job/ubuntu-sdk-team-ubuntu-ui-toolkit-staging-utopic-armhf-ci/466/artifact/work/output/*zip*/output.zip
    SUCCESS: http://jenkins.qa.ubuntu.com/job/ubuntu-sdk-team-ubuntu-ui-toolkit-staging-utopic-i386-ci/466
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-runner-mako/2468
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-utopic-armhf/3464
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-utopic-armhf/3464/artifact/work/output/*zip*/output.zip
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/10174
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/autopilot-testrunner-otto-utopic/1583
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-utopic-amd64/2102
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-utopic-amd64/2102/artifact/work/output/*zip*/output.zip

Click here to trigger a rebuild:
http://s-jenkins.ubuntu-ci:8080/job/ubuntu-sdk-team-ubuntu-ui-toolkit-staging-ci/634/rebuild

review: Needs Fixing (continuous-integration)
Revision history for this message
Nicholas Skaggs (nskaggs) wrote :

I'm a bit confused why the PickTimeFromDatePickerTestCase show as failing as I didn't modify the testcase (though I did change the qml)

Revision history for this message
Nicholas Skaggs (nskaggs) wrote :

Turns out setting the minimum and maximum year trigger a bug where the hour picker moves when you select from the minute picker. When selecting things with the second picker, both the hour and minute pickers move.

Revision history for this message
Nicholas Skaggs (nskaggs) wrote :

Filed bug https://bugs.launchpad.net/ubuntu-ui-toolkit/+bug/1346669. This should now pass and be ready to merge.

1156. By Nicholas Skaggs

workaround for bug 1346669

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

FAILED: Continuous integration, rev:1156
http://jenkins.qa.ubuntu.com/job/ubuntu-sdk-team-ubuntu-ui-toolkit-staging-ci/636/
Executed test runs:
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-utopic-touch/2283
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-utopic/1886
    SUCCESS: http://jenkins.qa.ubuntu.com/job/ubuntu-sdk-team-ubuntu-ui-toolkit-staging-utopic-amd64-ci/468
    SUCCESS: http://jenkins.qa.ubuntu.com/job/ubuntu-sdk-team-ubuntu-ui-toolkit-staging-utopic-armhf-ci/468
        deb: http://jenkins.qa.ubuntu.com/job/ubuntu-sdk-team-ubuntu-ui-toolkit-staging-utopic-armhf-ci/468/artifact/work/output/*zip*/output.zip
    SUCCESS: http://jenkins.qa.ubuntu.com/job/ubuntu-sdk-team-ubuntu-ui-toolkit-staging-utopic-i386-ci/468
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-runner-mako/2478
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-utopic-armhf/3481
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-utopic-armhf/3481/artifact/work/output/*zip*/output.zip
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/10187
    SUCCESS: http://jenkins.qa.ubuntu.com/job/autopilot-testrunner-otto-utopic/1585
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-utopic-amd64/2105
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-utopic-amd64/2105/artifact/work/output/*zip*/output.zip

Click here to trigger a rebuild:
http://s-jenkins.ubuntu-ci:8080/job/ubuntu-sdk-team-ubuntu-ui-toolkit-staging-ci/636/rebuild

review: Needs Fixing (continuous-integration)
Revision history for this message
Leo Arias (elopio) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'tests/autopilot/ubuntuuitoolkit/_custom_proxy_objects/pickers.py'
2--- tests/autopilot/ubuntuuitoolkit/_custom_proxy_objects/pickers.py 2014-05-09 05:39:20 +0000
3+++ tests/autopilot/ubuntuuitoolkit/_custom_proxy_objects/pickers.py 2014-07-22 00:06:44 +0000
4@@ -127,15 +127,18 @@
5 if not self._is_time_picker():
6 raise _common.ToolkitException(
7 "Can't pick time. The picker mode is: {!r}.".format(self.mode))
8+ # Workaround https://bugs.launchpad.net/ubuntu-ui-toolkit/+bug/1346669
9+ # By setting seconds, then minutes, then hours, erratic behavoir
10+ # can be dealt with
11+ if 'Seconds' in self.mode:
12+ self._pick_second(time.second)
13+ self.seconds.wait_for(time.second)
14+ if 'Minutes' in self.mode:
15+ self._pick_minute(time.minute)
16+ self.minutes.wait_for(time.minute)
17 if 'Hours' in self.mode:
18 self._pick_hour(time.hour)
19 self.hours.wait_for(time.hour)
20- if 'Minutes' in self.mode:
21- self._pick_minute(time.minute)
22- self.minutes.wait_for(time.minute)
23- if 'Seconds' in self.mode:
24- self._pick_second(time.second)
25- self.seconds.wait_for(time.second)
26
27 def _is_time_picker(self):
28 mode = self.mode
29
30=== modified file 'tests/autopilot/ubuntuuitoolkit/tests/custom_proxy_objects/test_date_picker.py'
31--- tests/autopilot/ubuntuuitoolkit/tests/custom_proxy_objects/test_date_picker.py 2014-05-09 05:39:20 +0000
32+++ tests/autopilot/ubuntuuitoolkit/tests/custom_proxy_objects/test_date_picker.py 2014-07-22 00:06:44 +0000
33@@ -36,11 +36,19 @@
34 id: datePicker
35 objectName: 'datePicker'
36 mode: 'Years|Months|Days'
37+ maximum: {
38+ var d = new Date()
39+ d.setFullYear('2030')
40+ return d
41+ }
42+ minimum: {
43+ var d = new Date()
44+ d.setFullYear('1990')
45+ return d
46+ }
47 date: {
48 var d = new Date()
49- // Make sure that the picker will have higher and lower values
50- // to select.
51- d.setFullYear(d.getFullYear() + 25)
52+ d.setFullYear('2010')
53 d.setMonth('5')
54 d.setDate('15')
55 return d
56@@ -50,10 +58,18 @@
57 id: timePicker
58 objectName: 'timePicker'
59 mode: 'Hours|Minutes|Seconds'
60+ maximum: {
61+ var d = new Date()
62+ d.setFullYear('2030')
63+ return d
64+ }
65+ minimum: {
66+ var d = new Date()
67+ d.setFullYear('1990')
68+ return d
69+ }
70 date: {
71 var d = new Date()
72- // Make sure that the picker will have higher and lower values
73- // to select.
74 d.setHours(12)
75 d.setMinutes('30')
76 d.setSeconds('30')
77@@ -133,7 +149,7 @@
78
79 class PickDateFromDatePickerTestCase(DatePickerBaseTestCase):
80
81- SELECTED_YEAR = datetime.date.today().year + 25
82+ SELECTED_YEAR = 2010
83 SELECTED_MONTH = 6 # June
84 SELECTED_DAY = 15
85

Subscribers

People subscribed via source and target branches