Merge lp:~zorba-coders/zorba/download-modules into lp:zorba

Proposed by Chris Hillery
Status: Merged
Approved by: Chris Hillery
Approved revision: 10665
Merged at revision: 10676
Proposed branch: lp:~zorba-coders/zorba/download-modules
Merge into: lp:zorba
Diff against target: 111 lines (+52/-33)
2 files modified
modules/DownloadModules.cmake (+51/-32)
modules/ExternalModules.conf (+1/-1)
To merge this branch: bzr merge lp:~zorba-coders/zorba/download-modules
Reviewer Review Type Date Requested Status
Sorin Marian Nasoi Approve
Chris Hillery Approve
Review via email: mp+93335@code.launchpad.net

Commit message

Error checking for DownloadModules.cmake; try three times on failures.

To post a comment you must log in.
Revision history for this message
Chris Hillery (ceejatec) :
review: Approve
Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :
Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :

Validation queue job download-modules-2012-02-16T10-26-00.482Z is finished. The final status was:

All tests succeeded!

Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :

Voting does not meet specified criteria. Required: Approve > 1, Disapprove < 1. Got: 1 Approve.

Revision history for this message
Sorin Marian Nasoi (sorin.marian.nasoi) wrote :

I think the changes are not O.K. , please see below for a brief description of the tests I did.
I have not approved the changes yet because I would need another opinion on the 2 issues I have raised below and about the fix proposed for the bug I found.

I have checked the following options:
Check 1)
cmake -Dallmodules=ON -Doutdir="MY_LOCATION" -P DownloadModules.cmake
I then compiled and run all tests successfully for all external modules (I ran "ctest -R _module").

Check 2)
cmake -Dmodname=email -Dnotags=ON -Doutdir="MY_LOCATION" -P DownloadModules.cmake
CMake Error at DownloadModules.cmake:128 (message):
  Failed to download 'data-cleaning' after 3 attempts, giving up.

Check 3)
cmake -Dmodname=email -Doutdir="MY_LOCATION" -P DownloadModules.cmake
CMake Error at DownloadModules.cmake:128 (message):
  Failed to download 'data-cleaning' after 3 attempts, giving up.

For this issue I will try to propose a fix.

Issue 1)
Paul reported that he had an issue with the email module that I could not reproduce.
Anyway, Juan (who managed to reproduce the error) said that he found an work around by changing the ExternalModule.config to have email module as the last module to branch out.

IMO, I would propose to include Juan's proposed fix in this merge as well.

Issue 2)
What is the status of the following external modules:
- lp:zorba/exi-module
- lp:zorba/queue-module
- lp:zorba/stack-module
Should they be included in the ExternalModule.config already?

AFAIK at least the last 2 external modules(queue, stack) are finished.

review: Needs Fixing
10663. By Sorin Marian Nasoi <email address hidden>

Fixed for the case where only some modules are downloaded using 'modname' option.

10664. By Sorin Marian Nasoi <email address hidden>

Added the fix proposed by Juan for the issue reported by Paul: see thread on @coders "Downloading modules fails".

Revision history for this message
Sorin Marian Nasoi (sorin.marian.nasoi) wrote :

The only question I have now is this:

What is the status of the following external modules:
- lp:zorba/exi-module
- lp:zorba/queue-module
- lp:zorba/stack-module
Should they be included in the ExternalModule.config already?

AFAIK at least the last 2 external modules(queue, stack) are finished.

review: Needs Information
Revision history for this message
Matthias Brantner (matthias-brantner) wrote :

> The only question I have now is this:
>
> What is the status of the following external modules:
> - lp:zorba/exi-module
> - lp:zorba/queue-module
> - lp:zorba/stack-module
> Should they be included in the ExternalModule.config already?
>
> AFAIK at least the last 2 external modules(queue, stack) are finished.
Neither of them is finished, yet. Including them seems orthogonal to this merge proposal.

Revision history for this message
Sorin Marian Nasoi (sorin.marian.nasoi) wrote :

> > The only question I have now is this:
> >
> > What is the status of the following external modules:
> > - lp:zorba/exi-module
> > - lp:zorba/queue-module
> > - lp:zorba/stack-module
> > Should they be included in the ExternalModule.config already?
> >
> > AFAIK at least the last 2 external modules(queue, stack) are finished.
> Neither of them is finished, yet. Including them seems orthogonal to this
> merge proposal.
I agree.

I am marking the changes as approved but I would need someone else to test the fixes I made before marking the merge as "Approved".

review: Approve
Revision history for this message
Chris Hillery (ceejatec) wrote :

Thanks for the fixes. I'm committing one minor change that just fixes the indentation.

10665. By Chris Hillery

Indentation fix.

Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :
Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :

Validation queue job download-modules-2012-02-24T02-18-00.276Z is finished. The final status was:

All tests succeeded!

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'modules/DownloadModules.cmake'
--- modules/DownloadModules.cmake 2011-10-11 22:34:31 +0000
+++ modules/DownloadModules.cmake 2012-02-24 02:16:18 +0000
@@ -75,39 +75,58 @@
75 endif (allmodules)75 endif (allmodules)
7676
77 # Download77 # Download
78 if (_getmod)78 if ("${_getmod}" EQUAL 1)
79 message ("Downloading module '${_modname}'...")79 message ("Downloading module '${_modname}'...")
80 if (${_modvc} STREQUAL "svn")80 # We try three times, to account for network weirdnesses
81 if (NOT svn)81 foreach (i 1 2 3)
82 message (FATAL_ERROR82 # First delete the output directory, in case there's a partial
83 "Subversion client not found - required for ${_modname} module!")83 # download from a previous attempt
84 endif (NOT svn)84 file (REMOVE_RECURSE "${outdir}/${_modname}")
85 # QQQ Ridiculous and slow hack, but Sourceforge has been85
86 # incredibly unreliable lately so this is the best choice I've86 set (_status)
87 # got to make the remote queue semi-stable87
88 foreach (s 1 2)88 if (${_modvc} STREQUAL "svn")
89 if (NOT svn)
90 message (FATAL_ERROR
91 "Subversion client not found - required for ${_modname} module!")
92 endif (NOT svn)
89 execute_process (COMMAND "${svn}" checkout "${_modurl}" "${_modname}"93 execute_process (COMMAND "${svn}" checkout "${_modurl}" "${_modname}"
90 WORKING_DIRECTORY "${outdir}" TIMEOUT 60)94 WORKING_DIRECTORY "${outdir}" TIMEOUT 60 RESULT_VARIABLE _status)
91 endforeach (s 1 2)95
9296 elseif (${_modvc} STREQUAL "bzr")
93 elseif (${_modvc} STREQUAL "bzr")97 if (NOT bzr)
94 if (NOT bzr)98 message (FATAL_ERROR
95 message (FATAL_ERROR99 "Bazaar client not found - required for ${_modname} module!")
96 "Bazaar client not found - required for ${_modname} module!")100 endif (NOT bzr)
97 endif (NOT bzr)101
98102 set (_modtagargs)
99 set (_modtagargs)103 if (_modtag AND NOT notags)
100 if (_modtag AND NOT notags)104 set (_modtagargs "-r" "${_modtag}")
101 set (_modtagargs "-r" "${_modtag}")105 endif (_modtag AND NOT notags)
102 endif (_modtag AND NOT notags)106 execute_process (COMMAND "${bzr}" branch "${_modurl}" "${_modname}"
103 execute_process (COMMAND "${bzr}" branch "${_modurl}" "${_modname}"107 ${_modtagargs} WORKING_DIRECTORY "${outdir}" TIMEOUT 60
104 ${_modtagargs} WORKING_DIRECTORY "${outdir}" TIMEOUT 60)108 RESULT_VARIABLE _status)
105109
106 else (${_modvc} STREQUAL "svn")110 else (${_modvc} STREQUAL "svn")
107 message (FATAL_ERROR "Unknown vc-type '${_modvc}' for module "111 message (FATAL_ERROR "Unknown vc-type '${_modvc}' for module "
108 "'${_modname}' in modules/ExternalModules.conf!")112 "'${_modname}' in modules/ExternalModules.conf!")
109113
110 endif (${_modvc} STREQUAL "svn")114 endif (${_modvc} STREQUAL "svn")
111 endif (_getmod)115
116 if ("${_status}" EQUAL 0)
117 # Success
118 break ()
119 else ("${_status}" EQUAL 0)
120 message (WARNING "Attempt ${i}: Failed to download '${_modname}' (${_status})")
121 endif ("${_status}" EQUAL 0)
122
123 endforeach (i)
124
125 # Ensure we successfully downloaded something good
126 if (NOT EXISTS "${outdir}/${_modname}/CMakeLists.txt")
127 message (FATAL_ERROR "Failed to download '${_modname}' after 3 attempts, giving up.")
128 endif (NOT EXISTS "${outdir}/${_modname}/CMakeLists.txt")
129
130 endif ("${_getmod}" EQUAL 1)
112 endif (modline)131 endif (modline)
113endforeach (modline)132endforeach (modline)
114133
=== modified file 'modules/ExternalModules.conf'
--- modules/ExternalModules.conf 2012-02-23 21:57:52 +0000
+++ modules/ExternalModules.conf 2012-02-24 02:16:18 +0000
@@ -29,7 +29,6 @@
29data-cleaning bzr lp:zorba/data-cleaning-module 1.029data-cleaning bzr lp:zorba/data-cleaning-module 1.0
30data-converters bzr lp:zorba/data-converters-module 30data-converters bzr lp:zorba/data-converters-module
31data-formatting bzr lp:zorba/data-formatting-module zorba-2.131data-formatting bzr lp:zorba/data-formatting-module zorba-2.1
32email bzr lp:zorba/email-module zorba-2.1
33excel bzr lp:zorba/excel-module zorba-2.132excel bzr lp:zorba/excel-module zorba-2.1
34geo bzr lp:zorba/geo-module zorba-2.133geo bzr lp:zorba/geo-module zorba-2.1
35http-client bzr lp:zorba/http-client-module 34http-client bzr lp:zorba/http-client-module
@@ -40,3 +39,4 @@
40security bzr lp:zorba/security-module zorba-2.139security bzr lp:zorba/security-module zorba-2.1
41system bzr lp:zorba/system-module zorba-2.140system bzr lp:zorba/system-module zorba-2.1
42xqxq bzr lp:zorba/xqxq-module zorba-2.141xqxq bzr lp:zorba/xqxq-module zorba-2.1
42email bzr lp:zorba/email-module zorba-2.1

Subscribers

People subscribed via source and target branches