Autopilot lacks support for large timestamps
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Autopilot |
Fix Released
|
High
|
Nicholas Skaggs | ||
Ubuntu Calendar App |
Invalid
|
High
|
Unassigned | ||
Ubuntu Clock App |
Invalid
|
Undecided
|
Unassigned | ||
Ubuntu UI Toolkit |
Fix Released
|
Critical
|
Nicholas Skaggs | ||
autopilot (Ubuntu) |
New
|
Undecided
|
Unassigned | ||
Vivid |
New
|
Undecided
|
Unassigned |
Bug Description
On the device, test_new_event fails with:
OverflowError: timestamp out of range for platform time_t
applicable log is below:
file://
}}}
test-log: {{{
15:16:28.314 INFO globals:59 - *******
15:16:28.314 INFO globals:60 - Starting test calendar_
15:16:28.316 WARNING testcase:112 - No tracing available - install the python-
15:16:28.343 WARNING testcase:153 - Process manager backend unavailable, application snapshot support disabled.
15:16:28.377 INFO logging:45 - TestMainView: launch_test_click. Arguments (). Keyword arguments: {}.
15:16:28.379 INFO _launcher:276 - Attempting to launch click application '(default)' from click package 'com.ubuntu.
15:16:30.318 INFO _launcher:116 - Attempting to launch application 'com.ubuntu.
15:16:38.053 INFO logging:45 - MainView: Open a tab. Arguments ('dayTab',). Keyword arguments: {}.
15:16:38.131 DEBUG dbus:356 - Selecting objects of type Tab with attributes: {}
15:16:38.328 INFO logging:45 - MainView: Open a tab. Arguments (3,). Keyword arguments: {}.
15:16:38.417 DEBUG dbus:356 - Selecting objects of type Tab with attributes: {}
15:16:39.689 INFO logging:45 - Header: Open a tab. This only supports the new tabs in the header. Arguments (3,). Keyword arguments: {}.
15:16:39.817 DEBUG _common:45 - Moving to object's globalRect coordinates.
15:16:39.818 DEBUG _uinput:475 - Tapping at: 45,125
15:16:41.153 DEBUG _common:45 - Moving to object's globalRect coordinates.
15:16:41.154 DEBUG _uinput:475 - Tapping at: 396,487
15:16:41.776 DEBUG dbus:356 - Selecting objects of type Tab with attributes: {}
15:16:42.816 DEBUG _common:45 - Moving to object's globalRect coordinates.
15:16:42.817 DEBUG _uinput:475 - Tapping at: 1065,125
15:16:42.961 DEBUG dbus:356 - Selecting objects of type EventBubble with attributes: {}
15:16:43.989 DEBUG _common:45 - Moving to object's globalRect coordinates.
15:16:43.991 DEBUG _uinput:475 - Tapping at: 1155,125
15:16:44.760 DEBUG _common:45 - Moving to object's globalRect coordinates.
15:16:44.761 DEBUG _uinput:475 - Tapping at: 804,263
15:16:48.149 DEBUG _common:45 - Moving to object's globalRect coordinates.
15:16:48.150 DEBUG _uinput:475 - Tapping at: 600,593
15:16:50.371 DEBUG _common:45 - Moving to object's globalRect coordinates.
15:16:50.372 DEBUG _uinput:475 - Tapping at: 318,301
}}}
Traceback (most recent call last):
File "/home/
yesterday)
File "/home/
pickers.DatePicker, mode=mode_value, visible=True)
File "/usr/lib/
return self.select_
File "/usr/lib/
instances = self._execute_
File "/usr/lib/
type(self)
File "/usr/lib/
for t in data
File "/usr/lib/
for t in data
File "/usr/lib/
return class_object(state, path, backend)
File "/home/
super(UbuntuUIT
File "/usr/lib/
self._set_
File "/usr/lib/
self.__state[key] = create_
File "/usr/lib/
return type_class(*value, parent=parent, name=name)
File "/usr/lib/
self._cached_dt = datetime.
OverflowError: timestamp out of range for platform time_t
Ran 18 tests in 379.462s
FAILED (failures=1)
Related branches
- PS Jenkins bot: Approve (continuous-integration)
- Robert Bruce Park (community): Approve
- Christopher Lee (community): Needs Fixing
- Thomi Richards (community): Approve
- Barry Warsaw: Pending requested
-
Diff: 507 lines (+183/-87)8 files modifiedautopilot/introspection/types.py (+14/-3)
autopilot/tests/functional/test_types.py (+8/-2)
autopilot/tests/unit/test_types.py (+122/-47)
debian/control (+35/-30)
debian/copyright (+0/-1)
debian/python3-autopilot-tests.install (+2/-2)
debian/python3-autopilot-vis.install (+1/-1)
debian/python3-autopilot.install (+1/-1)
- Leo Arias (community): Approve
- PS Jenkins bot: Needs Fixing (continuous-integration)
- Ubuntu SDK team: Pending requested
-
Diff: 84 lines (+31/-12)2 files modifiedtests/autopilot/ubuntuuitoolkit/_custom_proxy_objects/pickers.py (+9/-6)
tests/autopilot/ubuntuuitoolkit/tests/custom_proxy_objects/test_date_picker.py (+22/-6)
- Ubuntu SDK team: Pending requested
-
Diff: 2085 lines (+1008/-147)52 files modifiedcomponents.api (+11/-0)
debian/control (+3/-0)
examples/ubuntu-ui-toolkit-gallery/Colors.qml (+72/-0)
examples/ubuntu-ui-toolkit-gallery/ListItems.qml (+13/-2)
examples/ubuntu-ui-toolkit-gallery/ListItemsSection.qml (+7/-1)
examples/ubuntu-ui-toolkit-gallery/ProgressBars.qml (+22/-1)
examples/ubuntu-ui-toolkit-gallery/WidgetsModel.qml (+5/-1)
modules/Ubuntu/Components/Colors/FIXME (+4/-0)
modules/Ubuntu/Components/Colors/UbuntuColors.qml (+131/-0)
modules/Ubuntu/Components/Colors/UbuntuColors10.qml (+4/-48)
modules/Ubuntu/Components/ListItems/Empty.qml (+1/-0)
modules/Ubuntu/Components/PageHeadConfiguration.qml (+31/-1)
modules/Ubuntu/Components/Pickers/DatePicker.qml (+1/-1)
modules/Ubuntu/Components/ProgressBar11.qdoc (+6/-0)
modules/Ubuntu/Components/ProgressBar11.qml (+21/-0)
modules/Ubuntu/Components/TextArea.qml (+1/-1)
modules/Ubuntu/Components/TextField.qml (+1/-1)
modules/Ubuntu/Components/Themes/Ambiance/ActivityIndicatorStyle.qml (+6/-1)
modules/Ubuntu/Components/Themes/Ambiance/Palette.qml (+10/-8)
modules/Ubuntu/Components/Themes/Ambiance/ProgressBarStyle.qml (+3/-1)
modules/Ubuntu/Components/Themes/Ambiance/TextCursorStyle.qml (+2/-2)
modules/Ubuntu/Components/Themes/Ambiance/TextSelectionEndCursorStyle.qml (+1/-1)
modules/Ubuntu/Components/Themes/Ambiance/TextSelectionStartCursorStyle.qml (+3/-2)
modules/Ubuntu/Components/Themes/PaletteValues.qml (+4/-0)
modules/Ubuntu/Components/Themes/SuruDark/Palette.qml (+4/-2)
modules/Ubuntu/Components/deployment.pri (+1/-1)
modules/Ubuntu/Components/plugin/adapters/alarmsadapter_organizer.cpp (+6/-9)
modules/Ubuntu/Components/plugin/plugin.cpp (+10/-2)
modules/Ubuntu/Components/qmldir (+3/-2)
modules/Ubuntu/Test/UbuntuTestCase.qml (+10/-1)
tests/autopilot/ubuntuuitoolkit/__init__.py (+2/-0)
tests/autopilot/ubuntuuitoolkit/base.py (+12/-4)
tests/autopilot/ubuntuuitoolkit/fixture_setup.py (+85/-0)
tests/autopilot/ubuntuuitoolkit/tests/__init__.py (+19/-14)
tests/autopilot/ubuntuuitoolkit/tests/custom_proxy_objects/test_flickable.py (+1/-4)
tests/autopilot/ubuntuuitoolkit/tests/gallery/__init__.py (+52/-5)
tests/autopilot/ubuntuuitoolkit/tests/gallery/test_buttons.py (+21/-7)
tests/autopilot/ubuntuuitoolkit/tests/gallery/test_gallery.py (+10/-1)
tests/autopilot/ubuntuuitoolkit/tests/gallery/test_optionselector.py (+6/-0)
tests/autopilot/ubuntuuitoolkit/tests/gallery/test_scrollbar.py (+15/-4)
tests/autopilot/ubuntuuitoolkit/tests/gallery/test_textinput.py (+10/-2)
tests/autopilot/ubuntuuitoolkit/tests/gallery/test_toggles.py (+16/-6)
tests/autopilot/ubuntuuitoolkit/tests/test_fixture_setup.py (+104/-3)
tests/autopilot/ubuntuuitoolkit/tests/test_ubuntu_scenarios.py (+70/-0)
tests/autopilot/ubuntuuitoolkit/ubuntu_scenarios.py (+54/-0)
tests/qmlapicheck.sh (+1/-1)
tests/unit/runtest.sh (+1/-0)
tests/unit/tst_components/tst_progressbar.qml (+6/-1)
tests/unit/tst_components/tst_progressbar11.qml (+38/-0)
tests/unit_x11/tst_components/tst_animator.qml (+75/-0)
tests/unit_x11/tst_components/tst_textinput_touch.qml (+3/-5)
tests/unit_x11/tst_test/tst_ubuntutestcase.qml (+10/-1)
- PS Jenkins bot: Approve (continuous-integration)
- Thomi Richards (community): Approve
- Robert Bruce Park: Pending requested
- Nicholas Skaggs: Pending requested
- Christopher Lee: Pending requested
- Barry Warsaw: Pending requested
-
Diff: 633 lines (+345/-81)6 files modifiedautopilot/introspection/types.py (+97/-7)
autopilot/tests/functional/fixtures.py (+15/-1)
autopilot/tests/functional/test_types.py (+50/-32)
autopilot/tests/unit/test_test_fixtures.py (+20/-0)
autopilot/tests/unit/test_types.py (+160/-41)
debian/control (+3/-0)
Changed in ubuntu-ui-toolkit: | |
importance: | Undecided → Critical |
tags: | added: lt-category-noimpact lt-date-20140717 lt-prio-high |
tags: | added: lt-blocker |
Changed in ubuntu-ui-toolkit: | |
status: | New → Confirmed |
Changed in autopilot: | |
assignee: | nobody → Nicholas Skaggs (nskaggs) |
Changed in ubuntu-ui-toolkit: | |
assignee: | nobody → Nicholas Skaggs (nskaggs) |
status: | Confirmed → Fix Released |
Changed in autopilot: | |
status: | Confirmed → In Progress |
Changed in ubuntu-calendar-app: | |
importance: | Undecided → Critical |
milestone: | none → rtm14 |
Autopilot needs to allow support for larger timestamps. The error above is a 32bit / c limitation that could be removed by using other datetime functions that support large timestamps (beyond 2038). I got it working by tweaking autopilot to use timedelta instead of fromtimestamp for instance . . .