Merge lp:~laney/qtorganizer5-eds/eds3.16 into lp:qtorganizer5-eds
- eds3.16
- Merge into trunk
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Renato Araujo Oliveira Filho | ||||
Approved revision: | 93 | ||||
Merged at revision: | 84 | ||||
Proposed branch: | lp:~laney/qtorganizer5-eds/eds3.16 | ||||
Merge into: | lp:qtorganizer5-eds | ||||
Diff against target: |
179 lines (+40/-26) 9 files modified
CMakeLists.txt (+11/-5) config.h.in (+13/-4) debian/control (+2/-2) organizer/CMakeLists.txt (+1/-1) organizer/qorganizer-eds-engine.cpp (+2/-5) organizer/qorganizer-eds-source-registry.cpp (+3/-1) tests/unittest/CMakeLists.txt (+2/-2) tests/unittest/eds-base-test.cpp (+1/-1) tests/unittest/run-eds-test.sh (+5/-5) |
||||
To merge this branch: | bzr merge lp:~laney/qtorganizer5-eds/eds3.16 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Renato Araujo Oliveira Filho (community) | Approve | ||
PS Jenkins bot | continuous-integration | Needs Fixing | |
Ubuntu Phablet Team | Pending | ||
Review via email: mp+262331@code.launchpad.net |
Commit message
Adapt to API changes and new D-Bus service names in e-d-s 3.16
Description of the change
Test built in https:/
This FAILS TO BULID due to a test failure. I don't know the code well enough to fix it - could you help please?
PS Jenkins bot (ps-jenkins) wrote : | # |
Renato Araujo Oliveira Filho (renatofilho) wrote : | # |
Which ubuntu version contains this eds version?
Iain Lane (laney) wrote : | # |
On Thu, Jun 18, 2015 at 01:14:55PM -0000, Renato Araujo Oliveira Filho wrote:
> Which ubuntu version contains this eds version?
The referenced silo does: ppa:ci-
--
Iain Lane [ <email address hidden> ]
Debian Developer [ <email address hidden> ]
Ubuntu Developer [ <email address hidden> ]
Iain Lane (laney) wrote : | # |
Hey Renato,
On Thu, Jun 18, 2015 at 01:21:26PM -0000, Iain Lane wrote:
> On Thu, Jun 18, 2015 at 01:14:55PM -0000, Renato Araujo Oliveira Filho wrote:
> > Which ubuntu version contains this eds version?
>
> The referenced silo does: ppa:ci-
Do you think there's any chance you will be able to take a look at this
soon?
Thanks :-)
Cheers,
--
Iain Lane [ <email address hidden> ]
Debian Developer [ <email address hidden> ]
Ubuntu Developer [ <email address hidden> ]
Renato Araujo Oliveira Filho (renatofilho) wrote : | # |
Thanks for the MR, and sorry for take so long to give it a try. I am very busy right now with contacts sync.
I spent a long time debugging the problem, unfortunately I was unable to fix it yet. I am afraid that it is a evolution bug, but I will need more time to confirm that.
While I was working on it I did some changes[1] on your MR to keep it compatible vivid. (feel free to merge it on your MR if you think that is valid).
- 91. By Iain Lane
-
merge lp:~renatofilho/qtorganizer5-eds/eds3.16-vivid to stay compatible with vivid + wily
PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:91
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
FAILURE: http://
Click here to trigger a rebuild:
http://
Renato Araujo Oliveira Filho (renatofilho) wrote : | # |
Looks good. Just a small comment. Check the inline comments
Iain Lane (laney) wrote : | # |
On Thu, Jul 23, 2015 at 01:43:25PM -0000, Renato Araujo Oliveira Filho wrote:
> > + libedataserver1
>
> Could we change that to the version present in vivid?
Yeah OK, done!
--
Iain Lane [ <email address hidden> ]
Debian Developer [ <email address hidden> ]
Ubuntu Developer [ <email address hidden> ]
PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:92
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
FAILURE: http://
Click here to trigger a rebuild:
http://
Renato Araujo Oliveira Filho (renatofilho) wrote : | # |
> On Thu, Jul 23, 2015 at 01:43:25PM -0000, Renato Araujo Oliveira Filho wrote:
> > > + libedataserver1
> >
> > Could we change that to the version present in vivid?
>
> Yeah OK, done!
>
Could you do the same for: libecal1.2-dev (>= 3.16),
Iain Lane (laney) wrote : | # |
On Thu, Jul 23, 2015 at 02:06:18PM -0000, Renato Araujo Oliveira Filho wrote:
> > On Thu, Jul 23, 2015 at 01:43:25PM -0000, Renato Araujo Oliveira Filho wrote:
> > > > + libedataserver1
> > >
> > > Could we change that to the version present in vivid?
> >
> > Yeah OK, done!
> >
> Could you do the same for: libecal1.2-dev (>= 3.16),
I already did (in two commits), just triggered a build for that.
--
Iain Lane [ <email address hidden> ]
Debian Developer [ <email address hidden> ]
Ubuntu Developer [ <email address hidden> ]
PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:93
http://
Executed test runs:
FAILURE: http://
SUCCESS: http://
deb: http://
FAILURE: http://
Click here to trigger a rebuild:
http://
PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:93
http://
Executed test runs:
FAILURE: http://
SUCCESS: http://
deb: http://
FAILURE: http://
Click here to trigger a rebuild:
http://
PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:93
http://
Executed test runs:
FAILURE: http://
SUCCESS: http://
deb: http://
FAILURE: http://
Click here to trigger a rebuild:
http://
PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:93
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
FAILURE: http://
Click here to trigger a rebuild:
http://
PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:93
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
FAILURE: http://
Click here to trigger a rebuild:
http://
PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:93
http://
Executed test runs:
FAILURE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
Renato Araujo Oliveira Filho (renatofilho) wrote : | # |
looks good to me.
Preview Diff
1 | === modified file 'CMakeLists.txt' | |||
2 | --- CMakeLists.txt 2015-03-30 17:59:13 +0000 | |||
3 | +++ CMakeLists.txt 2015-07-23 14:16:00 +0000 | |||
4 | @@ -64,13 +64,19 @@ | |||
5 | 64 | PATHS /usr/lib/evolution/) | 64 | PATHS /usr/lib/evolution/) |
6 | 65 | find_program(GVFSD gvfsd | 65 | find_program(GVFSD gvfsd |
7 | 66 | PATHS /usr/lib/gvfs/) | 66 | PATHS /usr/lib/gvfs/) |
8 | 67 | |||
9 | 68 | if(EDATASERVER_VERSION VERSION_LESS "3.16") | ||
10 | 69 | set(EVOLUTION_API_3_17 "0") | ||
11 | 70 | set(EVOLUTION_SOURCE_SERVICE_NAME "org.gnome.evolution.dataserver.Sources3") | ||
12 | 71 | set(EVOLUTION_CALENDAR_SERVICE_NAME "org.gnome.evolution.dataserver.Calendar4") | ||
13 | 72 | else() | ||
14 | 73 | set(EVOLUTION_API_3_17 "1") | ||
15 | 74 | set(EVOLUTION_SOURCE_SERVICE_NAME "org.gnome.evolution.dataserver.Sources4") | ||
16 | 75 | set(EVOLUTION_CALENDAR_SERVICE_NAME "org.gnome.evolution.dataserver.Calendar7") | ||
17 | 76 | endif() | ||
18 | 77 | |||
19 | 67 | configure_file(config.h.in ${CMAKE_CURRENT_BINARY_DIR}/config.h) | 78 | configure_file(config.h.in ${CMAKE_CURRENT_BINARY_DIR}/config.h) |
20 | 68 | 79 | ||
21 | 69 | OPTION(EVOLUTION_SOURCE_SERVICE_NAME "DBus name for source registry") | ||
22 | 70 | if(NOT EVOLUTION_SOURCE_SERVICE_NAME) | ||
23 | 71 | set(EVOLUTION_SOURCE_SERVICE_NAME "org.gnome.evolution.dataserver.Sources3") | ||
24 | 72 | endif() | ||
25 | 73 | |||
26 | 74 | add_subdirectory(organizer) | 80 | add_subdirectory(organizer) |
27 | 75 | if(DBUS_RUNNER) | 81 | if(DBUS_RUNNER) |
28 | 76 | if(EVOLUTION_CALENDAR_FACTORY) | 82 | if(EVOLUTION_CALENDAR_FACTORY) |
29 | 77 | 83 | ||
30 | === modified file 'config.h.in' | |||
31 | --- config.h.in 2014-05-26 20:43:55 +0000 | |||
32 | +++ config.h.in 2015-07-23 14:16:00 +0000 | |||
33 | @@ -1,9 +1,18 @@ | |||
34 | 1 | #ifndef __CONFIG_H__ | 1 | #ifndef __CONFIG_H__ |
35 | 2 | #define __CONFIG_H__ | 2 | #define __CONFIG_H__ |
36 | 3 | 3 | ||
41 | 4 | #define TMP_DIR "@TMP_DIR@" | 4 | #define TMP_DIR "@TMP_DIR@" |
42 | 5 | #define EVOLUTION_CALENDAR_FACTORY "@EVOLUTION_CALENDAR_FACTORY@" | 5 | #define EVOLUTION_CALENDAR_FACTORY "@EVOLUTION_CALENDAR_FACTORY@" |
43 | 6 | #define EVOLUTION_CALENDAR_SERVICE "org.gnome.evolution.dataserver.Calendar4" | 6 | #define EVOLUTION_CALENDAR_SERVICE_NAME "@EVOLUTION_CALENDAR_SERVICE@" |
44 | 7 | #define QORGANIZER_DEV_PATH "@CMAKE_BINARY_DIR@" | 7 | #define QORGANIZER_DEV_PATH "@CMAKE_BINARY_DIR@" |
45 | 8 | #define EVOLUTION_API_3_17 @EVOLUTION_API_3_17@ | ||
46 | 9 | |||
47 | 10 | #if EVOLUTION_API_3_17 | ||
48 | 11 | #define E_CAL_CLIENT_CONNECT_SYNC(SOURCE, SOURCE_TYPE, CANCELLABLE, ERROR) \ | ||
49 | 12 | e_cal_client_connect_sync(SOURCE, SOURCE_TYPE, -1, CANCELLABLE, ERROR) | ||
50 | 13 | #else | ||
51 | 14 | #define E_CAL_CLIENT_CONNECT_SYNC(SOURCE, SOURCE_TYPE, CANCELLABLE, ERROR) \ | ||
52 | 15 | e_cal_client_connect_sync(SOURCE, SOURCE_TYPE, CANCELLABLE, ERROR) | ||
53 | 16 | #endif | ||
54 | 8 | 17 | ||
55 | 9 | #endif | 18 | #endif |
56 | 10 | 19 | ||
57 | === modified file 'debian/control' | |||
58 | --- debian/control 2014-09-22 14:20:47 +0000 | |||
59 | +++ debian/control 2015-07-23 14:16:00 +0000 | |||
60 | @@ -4,8 +4,8 @@ | |||
61 | 4 | Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> | 4 | Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> |
62 | 5 | Build-Depends: cmake (>= 2.8.9), | 5 | Build-Depends: cmake (>= 2.8.9), |
63 | 6 | debhelper (>= 9), | 6 | debhelper (>= 9), |
66 | 7 | libecal1.2-dev, | 7 | libecal1.2-dev (>= 3.12), |
67 | 8 | libedataserver1.2-dev, | 8 | libedataserver1.2-dev (>= 3.12), |
68 | 9 | qt5-default, | 9 | qt5-default, |
69 | 10 | qt5-qmake, | 10 | qt5-qmake, |
70 | 11 | qtbase5-dev, | 11 | qtbase5-dev, |
71 | 12 | 12 | ||
72 | === modified file 'organizer/CMakeLists.txt' | |||
73 | --- organizer/CMakeLists.txt 2014-02-25 17:12:32 +0000 | |||
74 | +++ organizer/CMakeLists.txt 2015-07-23 14:16:00 +0000 | |||
75 | @@ -49,7 +49,7 @@ | |||
76 | 49 | ) | 49 | ) |
77 | 50 | 50 | ||
78 | 51 | include_directories( | 51 | include_directories( |
80 | 52 | ${CMAKE_SOURCE_DIR} | 52 | ${CMAKE_BINARY_DIR} |
81 | 53 | ${GLIB_INCLUDE_DIRS} | 53 | ${GLIB_INCLUDE_DIRS} |
82 | 54 | ${GIO_INCLUDE_DIRS} | 54 | ${GIO_INCLUDE_DIRS} |
83 | 55 | ${ECAL_INCLUDE_DIRS} | 55 | ${ECAL_INCLUDE_DIRS} |
84 | 56 | 56 | ||
85 | === modified file 'organizer/qorganizer-eds-engine.cpp' | |||
86 | --- organizer/qorganizer-eds-engine.cpp 2015-05-08 20:01:32 +0000 | |||
87 | +++ organizer/qorganizer-eds-engine.cpp 2015-07-23 14:16:00 +0000 | |||
88 | @@ -1944,12 +1944,9 @@ | |||
89 | 1944 | { | 1944 | { |
90 | 1945 | rule->freq = ICAL_MONTHLY_RECURRENCE; | 1945 | rule->freq = ICAL_MONTHLY_RECURRENCE; |
91 | 1946 | 1946 | ||
92 | 1947 | QList<int> daysOfMonth = qRule.daysOfMonth().toList(); | ||
93 | 1948 | int c = 0; | 1947 | int c = 0; |
98 | 1949 | for (int d=1; d < ICAL_BY_MONTHDAY_SIZE; d++) { | 1948 | Q_FOREACH(int daysOfMonth, qRule.daysOfMonth()) { |
99 | 1950 | if (daysOfMonth.contains(d)) { | 1949 | rule->by_month_day[c++] = daysOfMonth; |
96 | 1951 | rule->by_month_day[c++] = d; | ||
97 | 1952 | } | ||
100 | 1953 | } | 1950 | } |
101 | 1954 | for (int d = c; d < ICAL_BY_MONTHDAY_SIZE; d++) { | 1951 | for (int d = c; d < ICAL_BY_MONTHDAY_SIZE; d++) { |
102 | 1955 | rule->by_month_day[d] = ICAL_RECURRENCE_ARRAY_MAX; | 1952 | rule->by_month_day[d] = ICAL_RECURRENCE_ARRAY_MAX; |
103 | 1956 | 1953 | ||
104 | === modified file 'organizer/qorganizer-eds-source-registry.cpp' | |||
105 | --- organizer/qorganizer-eds-source-registry.cpp 2015-04-09 15:16:39 +0000 | |||
106 | +++ organizer/qorganizer-eds-source-registry.cpp 2015-07-23 14:16:00 +0000 | |||
107 | @@ -1,4 +1,5 @@ | |||
108 | 1 | #include "qorganizer-eds-source-registry.h" | 1 | #include "qorganizer-eds-source-registry.h" |
109 | 2 | #include "config.h" | ||
110 | 2 | 3 | ||
111 | 3 | #include <QtCore/QDebug> | 4 | #include <QtCore/QDebug> |
112 | 4 | 5 | ||
113 | @@ -177,7 +178,8 @@ | |||
114 | 177 | QOrganizerEDSCollectionEngineId *eid = m_collectionsMap[collectionId]; | 178 | QOrganizerEDSCollectionEngineId *eid = m_collectionsMap[collectionId]; |
115 | 178 | if (eid) { | 179 | if (eid) { |
116 | 179 | GError *gError = 0; | 180 | GError *gError = 0; |
118 | 180 | client = e_cal_client_connect_sync(eid->m_esource, eid->m_sourceType, 0, &gError); | 181 | |
119 | 182 | client = E_CAL_CLIENT_CONNECT_SYNC(eid->m_esource, eid->m_sourceType, 0, &gError); | ||
120 | 181 | if (gError) { | 183 | if (gError) { |
121 | 182 | qWarning() << "Fail to connect with client" << gError->message; | 184 | qWarning() << "Fail to connect with client" << gError->message; |
122 | 183 | g_error_free(gError); | 185 | g_error_free(gError); |
123 | 184 | 186 | ||
124 | === modified file 'tests/unittest/CMakeLists.txt' | |||
125 | --- tests/unittest/CMakeLists.txt 2015-05-08 20:01:32 +0000 | |||
126 | +++ tests/unittest/CMakeLists.txt 2015-07-23 14:16:00 +0000 | |||
127 | @@ -22,8 +22,8 @@ | |||
128 | 22 | 22 | ||
129 | 23 | add_test(${TESTNAME} | 23 | add_test(${TESTNAME} |
130 | 24 | ${CMAKE_CURRENT_SOURCE_DIR}/run-eds-test.sh ${DBUS_RUNNER} ${CMAKE_CURRENT_BINARY_DIR}/${TESTNAME} ${TESTNAME} | 24 | ${CMAKE_CURRENT_SOURCE_DIR}/run-eds-test.sh ${DBUS_RUNNER} ${CMAKE_CURRENT_BINARY_DIR}/${TESTNAME} ${TESTNAME} |
133 | 25 | ${EVOLUTION_CALENDAR_FACTORY} ${EVOLUTION_SOURCE_SERVICE_NAME} | 25 | ${EVOLUTION_CALENDAR_FACTORY} ${EVOLUTION_CALENDAR_SERVICE_NAME} |
134 | 26 | ${EVOLUTION_SOURCE_REGISTRY} | 26 | ${EVOLUTION_SOURCE_REGISTRY} ${EVOLUTION_SOURCE_SERVICE_NAME} |
135 | 27 | ${GVFSD}) | 27 | ${GVFSD}) |
136 | 28 | endmacro(declare_test testname) | 28 | endmacro(declare_test testname) |
137 | 29 | 29 | ||
138 | 30 | 30 | ||
139 | === modified file 'tests/unittest/eds-base-test.cpp' | |||
140 | --- tests/unittest/eds-base-test.cpp 2015-04-09 14:00:57 +0000 | |||
141 | +++ tests/unittest/eds-base-test.cpp 2015-07-23 14:16:00 +0000 | |||
142 | @@ -90,7 +90,7 @@ | |||
143 | 90 | calendar.reset(e_source_registry_ref_source(sourceRegistry.data(), | 90 | calendar.reset(e_source_registry_ref_source(sourceRegistry.data(), |
144 | 91 | collectionId.toString().toUtf8().data())); | 91 | collectionId.toString().toUtf8().data())); |
145 | 92 | } | 92 | } |
147 | 93 | GScopedPointer<EClient> client(e_cal_client_connect_sync(calendar.data(), | 93 | GScopedPointer<EClient> client(E_CAL_CLIENT_CONNECT_SYNC(calendar.data(), |
148 | 94 | E_CAL_CLIENT_SOURCE_TYPE_EVENTS, | 94 | E_CAL_CLIENT_SOURCE_TYPE_EVENTS, |
149 | 95 | 0, | 95 | 0, |
150 | 96 | &error)); | 96 | &error)); |
151 | 97 | 97 | ||
152 | === modified file 'tests/unittest/run-eds-test.sh' | |||
153 | --- tests/unittest/run-eds-test.sh 2015-04-09 19:05:11 +0000 | |||
154 | +++ tests/unittest/run-eds-test.sh 2015-07-23 14:16:00 +0000 | |||
155 | @@ -7,8 +7,9 @@ | |||
156 | 7 | echo ARG4=$4 # full executable path of evolution-calendar-factory | 7 | echo ARG4=$4 # full executable path of evolution-calendar-factory |
157 | 8 | echo ARG5=$5 # bus service name of calendar factory | 8 | echo ARG5=$5 # bus service name of calendar factory |
158 | 9 | echo ARG6=$6 # full exectuable path of evolution-source-registry | 9 | echo ARG6=$6 # full exectuable path of evolution-source-registry |
161 | 10 | echo ARG7=$7 # full executable path of gvfs | 10 | echo ARG7=$7 # bus service name of evolution-source-registry |
162 | 11 | echo ARG8=$8 # config files | 11 | echo ARG7=$8 # full executable path of gvfs |
163 | 12 | echo ARG8=$9 # config files | ||
164 | 12 | 13 | ||
165 | 13 | # set up the tmpdir and tell the shell to purge it when we exit | 14 | # set up the tmpdir and tell the shell to purge it when we exit |
166 | 14 | export TEST_TMP_DIR=$(mktemp -p "${TMPDIR:-/tmp}" -d $3-XXXXXXXXXX) || exit 1 | 15 | export TEST_TMP_DIR=$(mktemp -p "${TMPDIR:-/tmp}" -d $3-XXXXXXXXXX) || exit 1 |
167 | @@ -38,10 +39,9 @@ | |||
168 | 38 | 39 | ||
169 | 39 | # run dbus-test-runner | 40 | # run dbus-test-runner |
170 | 40 | $1 --keep-env --max-wait=90 \ | 41 | $1 --keep-env --max-wait=90 \ |
173 | 41 | --task $2 --task-name $3 --wait-until-complete --wait-for=org.gnome.evolution.dataserver.Calendar4 \ | 42 | --task $2 --task-name $3 --wait-until-complete --wait-for=$5 \ |
174 | 42 | --task $4 --task-name "evolution" --wait-until-complete --wait-for=org.gnome.evolution.dataserver.Sources3 -r \ | 43 | --task $4 --task-name "evolution" --wait-until-complete --wait-for=$7 -r \ |
175 | 43 | --task $6 --task-name "source-registry" -r | 44 | --task $6 --task-name "source-registry" -r |
176 | 44 | #--task $7 --task-name "gvfsd" -r | ||
177 | 45 | rv=$? | 45 | rv=$? |
178 | 46 | 46 | ||
179 | 47 | # if the test passed, blow away the tmpdir | 47 | # if the test passed, blow away the tmpdir |
FAILED: Continuous integration, rev:90 jenkins. qa.ubuntu. com/job/ qtorganizer5- eds-ci/ 222/ jenkins. qa.ubuntu. com/job/ qtorganizer5- eds-vivid- amd64-ci/ 29/console jenkins. qa.ubuntu. com/job/ qtorganizer5- eds-vivid- armhf-ci/ 29/console jenkins. qa.ubuntu. com/job/ qtorganizer5- eds-vivid- i386-ci/ 29/console
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
FAILURE: http://
Click here to trigger a rebuild: s-jenkins. ubuntu- ci:8080/ job/qtorganizer 5-eds-ci/ 222/rebuild
http://