Merge lp:~fginther/cupstream2distro-config/mbs-rebuild-support into lp:cupstream2distro-config
- mbs-rebuild-support
- Merge into trunk
Status: | Merged |
---|---|
Approved by: | Martin Mrazik |
Approved revision: | 304 |
Merged at revision: | 361 |
Proposed branch: | lp:~fginther/cupstream2distro-config/mbs-rebuild-support |
Merge into: | lp:cupstream2distro-config |
Diff against target: |
1219 lines (+552/-112) 10 files modified
c2dconfigutils/cu2dUpdateCi.py (+65/-13) ci/jenkins-templates/mbs-autolanding-config.xml.tmpl (+20/-13) ci/jenkins-templates/mbs-pbuilder-config.xml.tmpl (+8/-11) ci/jenkins-templates/mbs-rebuild-config.xml.tmpl (+274/-0) stacks/head/mir.cfg (+19/-7) stacks/head/oif.cfg (+9/-5) stacks/head/unity.cfg (+24/-21) stacks/raring/oif.cfg (+10/-5) stacks/raring/unity.cfg (+26/-23) tests/test_cu2dUpdateCi.py (+97/-14) |
To merge this branch: | bzr merge lp:~fginther/cupstream2distro-config/mbs-rebuild-support |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
PS Jenkins bot | continuous-integration | Approve | |
Martin Mrazik (community) | Approve | ||
Review via email: mp+165698@code.launchpad.net |
Commit message
Enables Meta-Build System rebuilds of downstream projects after autolanding the current project.
This includes:
- A new mbs-rebuild template to define the parent rebuild jobs, the autolanding jobs are reused as the builder jobs.
- Updates to the mbs templates to reduce the number of jenkins parameters created.
- A new archive directory structure to support automatic archive naming from the stack name in the future.
- New MBS support for the head/mir stack
- Updates to the oif and unity stacks to use this new method
Description of the change
Enables Meta-Build System rebuilds of downstream projects after autolanding the current project.
This includes:
- A new mbs-rebuild template to define the parent rebuild jobs, the autolanding jobs are reused as the builder jobs.
- Updates to the mbs templates to reduce the number of jenkins parameters created.
- A new archive directory structure to support automatic archive naming from the stack name in the future.
- New MBS support for the head/mir stack
- Updates to the oif and unity stacks to use this new method
PS Jenkins bot (ps-jenkins) wrote : | # |
Martin Mrazik (mrazik) wrote : | # |
Can we strip whitespace from rebuild_job in here (in case somebody specifies rebuild like "job1, job2")?:
46 + for rebuild_job in data.split(','):
47 + rebuild_
48 + ctx['rebuild'] = ','.join(
The following (needs info only):
795 + rebuild: grail-raring
Would it be too hard to specify only "grail" and the update tool would check the current stack and find out there is a "grail-raring" base job? If it would be too hard maybe we can create a check in the validator for it? This feels a bit error prone/not obvious to me.
Other than that looks good.
Francis Ginther (fginther) wrote : | # |
> Can we strip whitespace from rebuild_job in here (in case somebody specifies
> rebuild like "job1, job2")?:
>
> 46 + for rebuild_job in data.split(','):
> 47 + rebuild_
> 'rebuild']))
> 48 + ctx['rebuild'] = ','.join(
Done (revision 298)
> The following (needs info only):
> 795 + rebuild: grail-raring
>
> Would it be too hard to specify only "grail" and the update tool would check
> the current stack and find out there is a "grail-raring" base job? If it would
> be too hard maybe we can create a check in the validator for it? This feels a
> bit error prone/not obvious to me.
I originally thought this was going to be hard, so I left it out. But after taking a second look, I found a way to make it work (revision 300). Now, the user just needs to specify the project name to rebuild if it exists in the same stack. If it's not found, it's treated as an actual rebuild job name.
> Other than that looks good.
Martin Mrazik (mrazik) : | # |
Francis Ginther (fginther) wrote : | # |
Revision 301 added the ability to update the ppa_target when a rebuild occurs. This is only done when both the 'ppa_target' and 'distributions' values are set. The old MBS jobs did this, it was just an oversight. Projects that don't have a ppa_target will still be rebuilt using the local archive.
Revision 302 and 303 updated the mir rebuild targets at the request of thomi.
PS Jenkins bot (ps-jenkins) wrote : | # |
PASSED: Continuous integration, rev:304
http://
Executed test runs:
SUCCESS: http://
Click here to trigger a rebuild:
http://
Preview Diff
1 | === modified file 'c2dconfigutils/cu2dUpdateCi.py' | |||
2 | --- c2dconfigutils/cu2dUpdateCi.py 2013-05-22 13:12:26 +0000 | |||
3 | +++ c2dconfigutils/cu2dUpdateCi.py 2013-05-29 14:11:26 +0000 | |||
4 | @@ -61,24 +61,28 @@ | |||
5 | 61 | 'concurrent_jenkins_builds', | 61 | 'concurrent_jenkins_builds', |
6 | 62 | 'configuration', | 62 | 'configuration', |
7 | 63 | 'contact_email', | 63 | 'contact_email', |
8 | 64 | 'days_to_keep_builds', | ||
9 | 64 | 'disabled', | 65 | 'disabled', |
10 | 65 | 'fasttrack', | 66 | 'fasttrack', |
11 | 66 | 'hook_source', | 67 | 'hook_source', |
12 | 68 | 'irc_notification', | ||
13 | 69 | 'irc_channel', | ||
14 | 67 | 'landing_job', | 70 | 'landing_job', |
15 | 71 | 'local_archive_host', | ||
16 | 72 | 'local_archive_login', | ||
17 | 73 | 'local_archive_tmp', | ||
18 | 74 | 'log_rotator', | ||
19 | 68 | 'node_label', | 75 | 'node_label', |
20 | 76 | 'num_to_keep_builds', | ||
21 | 69 | 'parallel_jobs', | 77 | 'parallel_jobs', |
22 | 70 | 'postbuild_job', | 78 | 'postbuild_job', |
23 | 71 | 'publish', | 79 | 'publish', |
24 | 72 | 'publish_coverage', | 80 | 'publish_coverage', |
25 | 73 | 'publish_junit', | 81 | 'publish_junit', |
26 | 74 | 'priority', | 82 | 'priority', |
27 | 83 | 'rebuild', | ||
28 | 75 | 'team', | 84 | 'team', |
29 | 76 | 'use_description_for_commit', | 85 | 'use_description_for_commit', |
30 | 77 | 'log_rotator', | ||
31 | 78 | 'days_to_keep_builds', | ||
32 | 79 | 'num_to_keep_builds', | ||
33 | 80 | 'irc_notification', | ||
34 | 81 | 'irc_channel', | ||
35 | 82 | ] | 86 | ] |
36 | 83 | 87 | ||
37 | 84 | DEFAULT_HOOK_LOCATION = '/tmp/$JOB_NAME-hooks' | 88 | DEFAULT_HOOK_LOCATION = '/tmp/$JOB_NAME-hooks' |
38 | @@ -139,6 +143,22 @@ | |||
39 | 139 | parameter = JobParameter(name, value) | 143 | parameter = JobParameter(name, value) |
40 | 140 | ctx['parameter_list'].append(parameter) | 144 | ctx['parameter_list'].append(parameter) |
41 | 141 | 145 | ||
42 | 146 | def get_rebuild_job(self, stack, project_name): | ||
43 | 147 | """ Generates the rebuild job name for a project | ||
44 | 148 | |||
45 | 149 | :param stack: the original stack dictionary | ||
46 | 150 | :param project_name: the project name to lookup | ||
47 | 151 | :return job_name: the rebuild job name for the requested project | ||
48 | 152 | """ | ||
49 | 153 | try: | ||
50 | 154 | project = stack['projects'][project_name] | ||
51 | 155 | job_name = '{}-rebuild'.format( | ||
52 | 156 | get_ci_base_job_name(project_name, project)) | ||
53 | 157 | except KeyError: | ||
54 | 158 | # Allow for a user specified rebuild job | ||
55 | 159 | job_name = project_name | ||
56 | 160 | return job_name | ||
57 | 161 | |||
58 | 142 | def process_project_config(self, project_name, project_config, | 162 | def process_project_config(self, project_name, project_config, |
59 | 143 | job_data, builder_job=False): | 163 | job_data, builder_job=False): |
60 | 144 | """ Generates the template context from a project configuration | 164 | """ Generates the template context from a project configuration |
61 | @@ -203,6 +223,16 @@ | |||
62 | 203 | script = self._get_build_script(self.AGGREGATE_TESTS_TEMPLATE, | 223 | script = self._get_build_script(self.AGGREGATE_TESTS_TEMPLATE, |
63 | 204 | formatting) | 224 | formatting) |
64 | 205 | ctx['aggregate_tests_script'] = script | 225 | ctx['aggregate_tests_script'] = script |
65 | 226 | elif key == 'rebuild': | ||
66 | 227 | # Only support manually specified rebuild jobs | ||
67 | 228 | if data: | ||
68 | 229 | rebuild_list = [] | ||
69 | 230 | for rebuild_project in data.split(','): | ||
70 | 231 | rebuild_job = self.get_rebuild_job( | ||
71 | 232 | job_data['stack'], rebuild_project.strip()) | ||
72 | 233 | rebuild_list.append(rebuild_job) | ||
73 | 234 | ctx['rebuild'] = ','.join(rebuild_list) | ||
74 | 235 | |||
75 | 206 | elif key in self.TEMPLATE_CONTEXT_KEYS: | 236 | elif key in self.TEMPLATE_CONTEXT_KEYS: |
76 | 207 | # These are added as ctx keys only | 237 | # These are added as ctx keys only |
77 | 208 | ctx[key] = data | 238 | ctx[key] = data |
78 | @@ -227,13 +257,14 @@ | |||
79 | 227 | self.add_parameter(ctx, 'project_name', project_name) | 257 | self.add_parameter(ctx, 'project_name', project_name) |
80 | 228 | return ctx | 258 | return ctx |
81 | 229 | 259 | ||
84 | 230 | def generate_jobs(self, job_list, project_name, job_type, job_config, | 260 | def generate_jobs(self, job_list, project_name, job_type, build_type, |
85 | 231 | job_template, build_template, job_data): | 261 | job_config, job_template, build_template, job_data): |
86 | 232 | """ Generates the main job and builder jobs for a given project | 262 | """ Generates the main job and builder jobs for a given project |
87 | 233 | 263 | ||
88 | 234 | :param job_list: list to hold the generated jobs | 264 | :param job_list: list to hold the generated jobs |
89 | 235 | :param project_name: the project name from the stack definition | 265 | :param project_name: the project name from the stack definition |
91 | 236 | :param job_type: 'ci' or 'autolanding' | 266 | :param job_type: parent job - 'ci', 'autolanding' or 'rebuild' |
92 | 267 | :param build_type: builder job - 'ci' or 'autolanding' | ||
93 | 237 | :param job_config: dictionary containing the job definition | 268 | :param job_config: dictionary containing the job definition |
94 | 238 | :param job_template: template used to define the main job | 269 | :param job_template: template used to define the main job |
95 | 239 | :param build_template: template used to define the build jobs | 270 | :param build_template: template used to define the build jobs |
96 | @@ -266,13 +297,17 @@ | |||
97 | 266 | build_list.append(config_name) | 297 | build_list.append(config_name) |
98 | 267 | 298 | ||
99 | 268 | else: | 299 | else: |
100 | 300 | build_name = '-'.join([job_base_name, config_name, | ||
101 | 301 | build_type]) | ||
102 | 302 | build_list.append(build_name) | ||
103 | 303 | if job_type == 'rebuild': | ||
104 | 304 | # For rebuild jobs, the autolanding builder jobs will | ||
105 | 305 | # be reused. So all that is needed is the build_list. | ||
106 | 306 | continue | ||
107 | 269 | dict_union(build_config, data) | 307 | dict_union(build_config, data) |
108 | 270 | ctx = self.process_project_config(project_name, | 308 | ctx = self.process_project_config(project_name, |
109 | 271 | build_config, job_data, | 309 | build_config, job_data, |
110 | 272 | builder_job=True) | 310 | builder_job=True) |
111 | 273 | build_name = '-'.join([job_base_name, config_name, | ||
112 | 274 | job_type]) | ||
113 | 275 | build_list.append(build_name) | ||
114 | 276 | job_data['build_lookup'][config_name] = build_name | 311 | job_data['build_lookup'][config_name] = build_name |
115 | 277 | job_list.append({'name': build_name, | 312 | job_list.append({'name': build_name, |
116 | 278 | 'template': template, | 313 | 'template': template, |
117 | @@ -297,7 +332,8 @@ | |||
118 | 297 | stack_ppa = stack.get('ppa', False) | 332 | stack_ppa = stack.get('ppa', False) |
119 | 298 | if stack_ppa == "null": | 333 | if stack_ppa == "null": |
120 | 299 | stack_ppa = False | 334 | stack_ppa = False |
122 | 300 | job_data = {'stack_ppa': stack_ppa} | 335 | job_data = {'stack': stack, |
123 | 336 | 'stack_ppa': stack_ppa} | ||
124 | 301 | 337 | ||
125 | 302 | # Merge the default config with the project specific config | 338 | # Merge the default config with the project specific config |
126 | 303 | project_config = copy.deepcopy(stack['ci_default']) | 339 | project_config = copy.deepcopy(stack['ci_default']) |
127 | @@ -305,8 +341,10 @@ | |||
128 | 305 | 341 | ||
129 | 306 | ci_template = None | 342 | ci_template = None |
130 | 307 | autolanding_template = None | 343 | autolanding_template = None |
131 | 344 | rebuild_template = None | ||
132 | 308 | ci_only_dict = dict() | 345 | ci_only_dict = dict() |
133 | 309 | autolanding_only_dict = dict() | 346 | autolanding_only_dict = dict() |
134 | 347 | rebuild_only_dict = dict() | ||
135 | 310 | 348 | ||
136 | 311 | # Extract the ci, autolanding or build specific items to make the | 349 | # Extract the ci, autolanding or build specific items to make the |
137 | 312 | # project configuration purely generic. | 350 | # project configuration purely generic. |
138 | @@ -314,10 +352,13 @@ | |||
139 | 314 | ci_only_dict = project_config.pop('ci') | 352 | ci_only_dict = project_config.pop('ci') |
140 | 315 | if 'autolanding' in project_config: | 353 | if 'autolanding' in project_config: |
141 | 316 | autolanding_only_dict = project_config.pop('autolanding') | 354 | autolanding_only_dict = project_config.pop('autolanding') |
142 | 355 | rebuild_only_dict = copy.deepcopy(autolanding_only_dict) | ||
143 | 317 | if 'ci_template' in project_config: | 356 | if 'ci_template' in project_config: |
144 | 318 | ci_template = project_config.pop('ci_template') | 357 | ci_template = project_config.pop('ci_template') |
145 | 319 | if 'autolanding_template' in project_config: | 358 | if 'autolanding_template' in project_config: |
146 | 320 | autolanding_template = project_config.pop('autolanding_template') | 359 | autolanding_template = project_config.pop('autolanding_template') |
147 | 360 | if 'rebuild_template' in project_config: | ||
148 | 361 | rebuild_template = project_config.pop('rebuild_template') | ||
149 | 321 | if 'build_template' in project_config: | 362 | if 'build_template' in project_config: |
150 | 322 | build_template = project_config.pop('build_template') | 363 | build_template = project_config.pop('build_template') |
151 | 323 | 364 | ||
152 | @@ -326,7 +367,7 @@ | |||
153 | 326 | ci_dict = copy.deepcopy(project_config) | 367 | ci_dict = copy.deepcopy(project_config) |
154 | 327 | if ci_only_dict is not None: | 368 | if ci_only_dict is not None: |
155 | 328 | dict_union(ci_dict, ci_only_dict) | 369 | dict_union(ci_dict, ci_only_dict) |
157 | 329 | self.generate_jobs(job_list, project_name, 'ci', ci_dict, | 370 | self.generate_jobs(job_list, project_name, 'ci', 'ci', ci_dict, |
158 | 330 | ci_template, build_template, job_data) | 371 | ci_template, build_template, job_data) |
159 | 331 | 372 | ||
160 | 332 | # Create autolanding job, add back in the autolanding dict | 373 | # Create autolanding job, add back in the autolanding dict |
161 | @@ -335,9 +376,20 @@ | |||
162 | 335 | if autolanding_only_dict is not None: | 376 | if autolanding_only_dict is not None: |
163 | 336 | dict_union(autolanding_dict, autolanding_only_dict) | 377 | dict_union(autolanding_dict, autolanding_only_dict) |
164 | 337 | self.generate_jobs(job_list, project_name, 'autolanding', | 378 | self.generate_jobs(job_list, project_name, 'autolanding', |
165 | 379 | 'autolanding', | ||
166 | 338 | autolanding_dict, autolanding_template, | 380 | autolanding_dict, autolanding_template, |
167 | 339 | build_template, job_data) | 381 | build_template, job_data) |
168 | 340 | 382 | ||
169 | 383 | # Create rebuild job, add in the rebuild dict | ||
170 | 384 | if rebuild_template: | ||
171 | 385 | rebuild_dict = copy.deepcopy(project_config) | ||
172 | 386 | if rebuild_only_dict is not None: | ||
173 | 387 | dict_union(rebuild_dict, rebuild_only_dict) | ||
174 | 388 | self.generate_jobs(job_list, project_name, 'rebuild', | ||
175 | 389 | 'autolanding', | ||
176 | 390 | rebuild_dict, rebuild_template, | ||
177 | 391 | build_template, job_data) | ||
178 | 392 | |||
179 | 341 | def process_stack(self, job_list, stack, target_project=None): | 393 | def process_stack(self, job_list, stack, target_project=None): |
180 | 342 | """ Process the projects with the stack | 394 | """ Process the projects with the stack |
181 | 343 | 395 | ||
182 | 344 | 396 | ||
183 | === modified file 'ci/jenkins-templates/mbs-autolanding-config.xml.tmpl' | |||
184 | --- ci/jenkins-templates/mbs-autolanding-config.xml.tmpl 2013-04-26 16:04:38 +0000 | |||
185 | +++ ci/jenkins-templates/mbs-autolanding-config.xml.tmpl 2013-05-29 14:11:26 +0000 | |||
186 | @@ -54,7 +54,7 @@ | |||
187 | 54 | <configs> | 54 | <configs> |
188 | 55 | <hudson.plugins.parameterizedtrigger.CurrentBuildParameters/> | 55 | <hudson.plugins.parameterizedtrigger.CurrentBuildParameters/> |
189 | 56 | <hudson.plugins.parameterizedtrigger.PredefinedBuildParameters> | 56 | <hudson.plugins.parameterizedtrigger.PredefinedBuildParameters> |
191 | 57 | <properties>UPSTREAM_BUILD_NUMBER=$BUILD_NUMBER</properties> | 57 | <properties>temp_dir={{ local_archive_tmp }}/${local_archive_name}/${project_name}.${BUILD_NUMBER}.autolanding</properties> |
192 | 58 | </hudson.plugins.parameterizedtrigger.PredefinedBuildParameters> | 58 | </hudson.plugins.parameterizedtrigger.PredefinedBuildParameters> |
193 | 59 | </configs> | 59 | </configs> |
194 | 60 | <projects>{{ builder_list }}</projects> | 60 | <projects>{{ builder_list }}</projects> |
195 | @@ -85,14 +85,12 @@ | |||
196 | 85 | <command>#!/bin/bash | 85 | <command>#!/bin/bash |
197 | 86 | set -x | 86 | set -x |
198 | 87 | 87 | ||
205 | 88 | temp_dir=${local_archive_tmp}/${project_name}-al-${local_archive_pocket}-${BUILD_NUMBER} | 88 | temp_dir={{ local_archive_tmp }}/${local_archive_name}/${project_name}.${BUILD_NUMBER}.autolanding |
206 | 89 | ppa_build_number=${BUILD_NUMBER} | 89 | |
207 | 90 | 90 | for p in `ssh {{ local_archive_login }}@{{ local_archive_host }} ls ${temp_dir}`; do | |
208 | 91 | 91 | ssh {{ local_archive_login }}@{{ local_archive_host }} dput -ufU --config /home/ubuntu/.dput.cf ${local_archive_name} ${temp_dir}/${p}/*.changes | |
203 | 92 | for p in `ssh ${local_archive_login}@${local_archive_host} ls ${temp_dir}`; do | ||
204 | 93 | ssh ${local_archive_login}@${local_archive_host} dput -ufU --config /home/ubuntu/.dput.cf ${local_archive} ${temp_dir}/${p}/*.changes | ||
209 | 94 | # Execute mini-dinstall to update the local archive | 92 | # Execute mini-dinstall to update the local archive |
211 | 95 | ssh ${local_archive_login}@${local_archive_host} mini-dinstall --no-db --batch --config="/home/ubuntu/.mini-dinstall-${local_archive}.conf" | 93 | ssh {{ local_archive_login }}@{{ local_archive_host }} mini-dinstall --no-db --batch --config="/home/ubuntu/.mini-dinstall-${local_archive_name}.conf" |
212 | 96 | done</command> | 94 | done</command> |
213 | 97 | </hudson.tasks.Shell> | 95 | </hudson.tasks.Shell> |
214 | 98 | {% if aggregate_tests_script %} | 96 | {% if aggregate_tests_script %} |
215 | @@ -234,6 +232,15 @@ | |||
216 | 234 | {% endif %} | 232 | {% endif %} |
217 | 235 | <hudson.plugins.parameterizedtrigger.BuildTrigger> | 233 | <hudson.plugins.parameterizedtrigger.BuildTrigger> |
218 | 236 | <configs> | 234 | <configs> |
219 | 235 | {% if rebuild %} | ||
220 | 236 | <hudson.plugins.parameterizedtrigger.BuildTriggerConfig> | ||
221 | 237 | <configs> | ||
222 | 238 | </configs> | ||
223 | 239 | <projects>{{ rebuild }}</projects> | ||
224 | 240 | <condition>SUCCESS</condition> | ||
225 | 241 | <triggerWithNoParameters>true</triggerWithNoParameters> | ||
226 | 242 | </hudson.plugins.parameterizedtrigger.BuildTriggerConfig> | ||
227 | 243 | {% endif %} | ||
228 | 237 | <hudson.plugins.parameterizedtrigger.BuildTriggerConfig> | 244 | <hudson.plugins.parameterizedtrigger.BuildTriggerConfig> |
229 | 238 | <configs> | 245 | <configs> |
230 | 239 | <hudson.plugins.parameterizedtrigger.PredefinedBuildParameters> | 246 | <hudson.plugins.parameterizedtrigger.PredefinedBuildParameters> |
231 | @@ -252,13 +259,13 @@ | |||
232 | 252 | <hudson.plugins.parameterizedtrigger.BuildTriggerConfig> | 259 | <hudson.plugins.parameterizedtrigger.BuildTriggerConfig> |
233 | 253 | <configs> | 260 | <configs> |
234 | 254 | <hudson.plugins.parameterizedtrigger.PredefinedBuildParameters> | 261 | <hudson.plugins.parameterizedtrigger.PredefinedBuildParameters> |
238 | 255 | <properties>local_archive_host=$local_archive_host | 262 | <properties>local_archive_host={{ local_archive_host }} |
239 | 256 | local_archive_login=$local_archive_login | 263 | local_archive_login={{ local_archive_login }} |
240 | 257 | temp_dir=${local_archive_tmp}/${project}-al-${local_archive_pocket}-${BUILD_NUMBER}</properties> | 264 | temp_dir={{ local_archive_tmp }}/${local_archive_name}/${project_name}.${BUILD_NUMBER}.autolanding</properties> |
241 | 258 | </hudson.plugins.parameterizedtrigger.PredefinedBuildParameters> | 265 | </hudson.plugins.parameterizedtrigger.PredefinedBuildParameters> |
242 | 259 | </configs> | 266 | </configs> |
245 | 260 | <projects>generic-cleanup-mbs-pt</projects> | 267 | <projects>generic-cleanup-mbs</projects> |
246 | 261 | <condition>UNSTABLE_OR_WORSE</condition> | 268 | <condition>ALWAYS</condition> |
247 | 262 | <triggerWithNoParameters>false</triggerWithNoParameters> | 269 | <triggerWithNoParameters>false</triggerWithNoParameters> |
248 | 263 | </hudson.plugins.parameterizedtrigger.BuildTriggerConfig> | 270 | </hudson.plugins.parameterizedtrigger.BuildTriggerConfig> |
249 | 264 | </configs> | 271 | </configs> |
250 | 265 | 272 | ||
251 | === modified file 'ci/jenkins-templates/mbs-pbuilder-config.xml.tmpl' | |||
252 | --- ci/jenkins-templates/mbs-pbuilder-config.xml.tmpl 2013-05-21 18:18:36 +0000 | |||
253 | +++ ci/jenkins-templates/mbs-pbuilder-config.xml.tmpl 2013-05-29 14:11:26 +0000 | |||
254 | @@ -26,8 +26,8 @@ | |||
255 | 26 | <defaultValue></defaultValue> | 26 | <defaultValue></defaultValue> |
256 | 27 | </hudson.model.StringParameterDefinition> | 27 | </hudson.model.StringParameterDefinition> |
257 | 28 | <hudson.model.StringParameterDefinition> | 28 | <hudson.model.StringParameterDefinition> |
260 | 29 | <name>UPSTREAM_BUILD_NUMBER</name> | 29 | <name>temp_dir</name> |
261 | 30 | <description>Build number of the upstream job used in the tmp directory with the deb output</description> | 30 | <description>Temporary directory to store the package artifacts</description> |
262 | 31 | <defaultValue></defaultValue> | 31 | <defaultValue></defaultValue> |
263 | 32 | </hudson.model.StringParameterDefinition> | 32 | </hudson.model.StringParameterDefinition> |
264 | 33 | {% for parameter in parameter_list %} | 33 | {% for parameter in parameter_list %} |
265 | @@ -69,23 +69,20 @@ | |||
266 | 69 | <hudson.tasks.Shell> | 69 | <hudson.tasks.Shell> |
267 | 70 | <command>#!/bin/bash | 70 | <command>#!/bin/bash |
268 | 71 | set -x | 71 | set -x |
272 | 72 | 72 | if [ -z "${temp_dir}" ]; then | |
273 | 73 | if [ -z "${autolanding}" ]; then | 73 | # Build was not triggered by autolanding or rebuild, don't save build artifacts |
271 | 74 | # Build was not triggered by autolanding, don't save the build artifacts | ||
274 | 75 | exit 0 | 74 | exit 0 |
275 | 76 | fi | 75 | fi |
276 | 77 | 76 | ||
282 | 78 | tmp_dir="${local_archive_tmp}/${project_name}-al-${local_archive_pocket}-${UPSTREAM_BUILD_NUMBER}" | 77 | # mkdir "${temp_dir}" can fail due to multiple jobs attempting to create the directory |
283 | 79 | 78 | ssh {{ local_archive_login }}@{{ local_archive_host }} mkdir "${temp_dir}" || true | |
284 | 80 | # mkdir "${tmp_dir}" can fail due to multiple jobs attempting to create the directory | 79 | ssh {{ local_archive_login }}@{{ local_archive_host }} mkdir "${temp_dir}/${JOB_NAME}" |
280 | 81 | ssh ${local_archive_login}@${local_archive_host} mkdir "${tmp_dir}" || true | ||
281 | 82 | ssh ${local_archive_login}@${local_archive_host} mkdir "${tmp_dir}/${JOB_NAME}" | ||
285 | 83 | 80 | ||
286 | 84 | # Switch to the output directory containing the build results | 81 | # Switch to the output directory containing the build results |
287 | 85 | cd work/output | 82 | cd work/output |
288 | 86 | 83 | ||
289 | 87 | # Copy the build results to the temporary holding area, if all jobs succeed, these will be dput into the ppa archive. | 84 | # Copy the build results to the temporary holding area, if all jobs succeed, these will be dput into the ppa archive. |
291 | 88 | scp * ${local_archive_login}@${local_archive_host}:${tmp_dir}/${JOB_NAME}</command> | 85 | scp * {{ local_archive_login }}@{{ local_archive_host }}:${temp_dir}/${JOB_NAME}</command> |
292 | 89 | </hudson.tasks.Shell> | 86 | </hudson.tasks.Shell> |
293 | 90 | </builders> | 87 | </builders> |
294 | 91 | <publishers> | 88 | <publishers> |
295 | 92 | 89 | ||
296 | === added file 'ci/jenkins-templates/mbs-rebuild-config.xml.tmpl' | |||
297 | --- ci/jenkins-templates/mbs-rebuild-config.xml.tmpl 1970-01-01 00:00:00 +0000 | |||
298 | +++ ci/jenkins-templates/mbs-rebuild-config.xml.tmpl 2013-05-29 14:11:26 +0000 | |||
299 | @@ -0,0 +1,274 @@ | |||
300 | 1 | <?xml version='1.0' encoding='UTF-8'?> | ||
301 | 2 | <project> | ||
302 | 3 | <actions/> | ||
303 | 4 | <description><B>WARNING:</B> This job is autogenerated. Any changes to the configuration will be lost.<BR>
 | ||
304 | 5 | <B>PURPOSE:</B> Autolanding job for {{ target_branch }}<BR>
 | ||
305 | 6 | <B>TEAM:</B> {{ team }}<BR>
 | ||
306 | 7 | <B>POC:</B> {{ contact_email }}<BR>
</description> | ||
307 | 8 | {% if log_rotator %} | ||
308 | 9 | <logRotator> | ||
309 | 10 | <daysToKeep>{{ log_rotator.days_to_keep_builds }}</daysToKeep> | ||
310 | 11 | <numToKeep>{{ log_rotator.num_to_keep_builds }}</numToKeep> | ||
311 | 12 | <artifactDaysToKeep>-1</artifactDaysToKeep> | ||
312 | 13 | <artifactNumToKeep>-1</artifactNumToKeep> | ||
313 | 14 | </logRotator> | ||
314 | 15 | {% endif %} | ||
315 | 16 | <keepDependencies>false</keepDependencies> | ||
316 | 17 | <properties> | ||
317 | 18 | <hudson.queueSorter.PrioritySorterJobProperty> | ||
318 | 19 | <priority>{{ priority }}</priority> | ||
319 | 20 | </hudson.queueSorter.PrioritySorterJobProperty> | ||
320 | 21 | <hudson.model.ParametersDefinitionProperty> | ||
321 | 22 | <parameterDefinitions> | ||
322 | 23 | <hudson.model.StringParameterDefinition> | ||
323 | 24 | <name>autolanding</name> | ||
324 | 25 | <description>Specifies that this is an autolanding/merge job. Used to properly set package version string.</description> | ||
325 | 26 | <defaultValue></defaultValue> | ||
326 | 27 | </hudson.model.StringParameterDefinition> | ||
327 | 28 | {% for parameter in parameter_list %} | ||
328 | 29 | <hudson.model.StringParameterDefinition> | ||
329 | 30 | <name>{{ parameter.name }}</name> | ||
330 | 31 | <description>{{ parameter.description }}</description> | ||
331 | 32 | <defaultValue>{{ parameter.value }}</defaultValue> | ||
332 | 33 | </hudson.model.StringParameterDefinition> | ||
333 | 34 | {% endfor %} | ||
334 | 35 | <hudson.model.BooleanParameterDefinition> | ||
335 | 36 | <name>use_description_for_commit</name> | ||
336 | 37 | <description>If launchpad commit message is not set in Merge Proposal and you use "usr_description_for_commit" then the description will be used for the merge message (i.e. you will see launchpad description in your bzr log).</description> | ||
337 | 38 | <defaultValue>{{ use_description_for_commit }}</defaultValue> | ||
338 | 39 | </hudson.model.BooleanParameterDefinition> | ||
339 | 40 | </parameterDefinitions> | ||
340 | 41 | </hudson.model.ParametersDefinitionProperty> | ||
341 | 42 | </properties> | ||
342 | 43 | <scm class="hudson.scm.NullSCM"/> | ||
343 | 44 | <canRoam>true</canRoam> | ||
344 | 45 | <disabled>{{ disabled }}</disabled> | ||
345 | 46 | <blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding> | ||
346 | 47 | <blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding> | ||
347 | 48 | <triggers class="vector"/> | ||
348 | 49 | <concurrentBuild>false</concurrentBuild> | ||
349 | 50 | <builders> | ||
350 | 51 | <hudson.plugins.parameterizedtrigger.TriggerBuilder> | ||
351 | 52 | <configs> | ||
352 | 53 | <hudson.plugins.parameterizedtrigger.BlockableBuildTriggerConfig> | ||
353 | 54 | <configs> | ||
354 | 55 | <hudson.plugins.parameterizedtrigger.CurrentBuildParameters/> | ||
355 | 56 | <hudson.plugins.parameterizedtrigger.PredefinedBuildParameters> | ||
356 | 57 | <properties>temp_dir={{ local_archive_tmp }}/${local_archive_name}/${project_name}.${BUILD_NUMBER}.rebuild | ||
357 | 58 | landing_candidate=$target_branch</properties> | ||
358 | 59 | </hudson.plugins.parameterizedtrigger.PredefinedBuildParameters> | ||
359 | 60 | </configs> | ||
360 | 61 | <projects>{{ builder_list }}</projects> | ||
361 | 62 | <condition>ALWAYS</condition> | ||
362 | 63 | <triggerWithNoParameters>false</triggerWithNoParameters> | ||
363 | 64 | <block> | ||
364 | 65 | <buildStepFailureThreshold> | ||
365 | 66 | <name>FAILURE</name> | ||
366 | 67 | <ordinal>2</ordinal> | ||
367 | 68 | <color>RED</color> | ||
368 | 69 | </buildStepFailureThreshold> | ||
369 | 70 | <unstableThreshold> | ||
370 | 71 | <name>UNSTABLE</name> | ||
371 | 72 | <ordinal>1</ordinal> | ||
372 | 73 | <color>YELLOW</color> | ||
373 | 74 | </unstableThreshold> | ||
374 | 75 | <failureThreshold> | ||
375 | 76 | <name>FAILURE</name> | ||
376 | 77 | <ordinal>2</ordinal> | ||
377 | 78 | <color>RED</color> | ||
378 | 79 | </failureThreshold> | ||
379 | 80 | </block> | ||
380 | 81 | <buildAllNodesWithLabel>false</buildAllNodesWithLabel> | ||
381 | 82 | </hudson.plugins.parameterizedtrigger.BlockableBuildTriggerConfig> | ||
382 | 83 | </configs> | ||
383 | 84 | </hudson.plugins.parameterizedtrigger.TriggerBuilder> | ||
384 | 85 | <hudson.tasks.Shell> | ||
385 | 86 | <command>#!/bin/bash | ||
386 | 87 | set -x | ||
387 | 88 | |||
388 | 89 | temp_dir={{ local_archive_tmp }}/${local_archive_name}/${project_name}.${BUILD_NUMBER}.rebuild | ||
389 | 90 | |||
390 | 91 | |||
391 | 92 | for p in `ssh {{ local_archive_login }}@{{ local_archive_host }} ls ${temp_dir}`; do | ||
392 | 93 | ssh {{ local_archive_login }}@{{ local_archive_host }} dput -ufU --config /home/ubuntu/.dput.cf ${local_archive_name} ${temp_dir}/${p}/*.changes | ||
393 | 94 | # Execute mini-dinstall to update the local archive | ||
394 | 95 | ssh {{ local_archive_login }}@{{ local_archive_host }} mini-dinstall --no-db --batch --config="/home/ubuntu/.mini-dinstall-${local_archive_name}.conf" | ||
395 | 96 | done</command> | ||
396 | 97 | </hudson.tasks.Shell> | ||
397 | 98 | {% if aggregate_tests_script %} | ||
398 | 99 | <hudson.tasks.Shell> | ||
399 | 100 | <command>{{ aggregate_tests_script }}</command> | ||
400 | 101 | </hudson.tasks.Shell> | ||
401 | 102 | {% endif %} | ||
402 | 103 | {% if rebuild %} | ||
403 | 104 | <hudson.plugins.parameterizedtrigger.TriggerBuilder> | ||
404 | 105 | <configs> | ||
405 | 106 | <hudson.plugins.parameterizedtrigger.BlockableBuildTriggerConfig> | ||
406 | 107 | <configs> | ||
407 | 108 | </configs> | ||
408 | 109 | <projects>{{ rebuild }}</projects> | ||
409 | 110 | <condition>ALWAYS</condition> | ||
410 | 111 | <triggerWithNoParameters>false</triggerWithNoParameters> | ||
411 | 112 | <block> | ||
412 | 113 | <buildStepFailureThreshold> | ||
413 | 114 | <name>UNSTABLE</name> | ||
414 | 115 | <ordinal>1</ordinal> | ||
415 | 116 | <color>YELLOW</color> | ||
416 | 117 | </buildStepFailureThreshold> | ||
417 | 118 | <unstableThreshold> | ||
418 | 119 | <name>UNSTABLE</name> | ||
419 | 120 | <ordinal>1</ordinal> | ||
420 | 121 | <color>YELLOW</color> | ||
421 | 122 | </unstableThreshold> | ||
422 | 123 | <failureThreshold> | ||
423 | 124 | <name>FAILURE</name> | ||
424 | 125 | <ordinal>2</ordinal> | ||
425 | 126 | <color>RED</color> | ||
426 | 127 | </failureThreshold> | ||
427 | 128 | </block> | ||
428 | 129 | <buildAllNodesWithLabel>false</buildAllNodesWithLabel> | ||
429 | 130 | </hudson.plugins.parameterizedtrigger.BlockableBuildTriggerConfig> | ||
430 | 131 | </configs> | ||
431 | 132 | </hudson.plugins.parameterizedtrigger.TriggerBuilder> | ||
432 | 133 | {% endif %} | ||
433 | 134 | </builders> | ||
434 | 135 | <publishers> | ||
435 | 136 | {% if aggregate_tests_script %} | ||
436 | 137 | {% if archive_artifacts %} | ||
437 | 138 | <hudson.tasks.ArtifactArchiver> | ||
438 | 139 | <artifacts>{{ archive_artifacts }}</artifacts> | ||
439 | 140 | <latestOnly>false</latestOnly> | ||
440 | 141 | </hudson.tasks.ArtifactArchiver> | ||
441 | 142 | {% endif %} | ||
442 | 143 | {% if publish_coverage %} | ||
443 | 144 | <hudson.plugins.cobertura.CoberturaPublisher> | ||
444 | 145 | <coberturaReportFile>{{ publish_coverage }}</coberturaReportFile> | ||
445 | 146 | <onlyStable>false</onlyStable> | ||
446 | 147 | <healthyTarget> | ||
447 | 148 | <targets class="enum-map" enum-type="hudson.plugins.cobertura.targets.CoverageMetric"> | ||
448 | 149 | <entry> | ||
449 | 150 | <hudson.plugins.cobertura.targets.CoverageMetric>CONDITIONAL</hudson.plugins.cobertura.targets.CoverageMetric> | ||
450 | 151 | <int>70</int> | ||
451 | 152 | </entry> | ||
452 | 153 | <entry> | ||
453 | 154 | <hudson.plugins.cobertura.targets.CoverageMetric>LINE</hudson.plugins.cobertura.targets.CoverageMetric> | ||
454 | 155 | <int>80</int> | ||
455 | 156 | </entry> | ||
456 | 157 | <entry> | ||
457 | 158 | <hudson.plugins.cobertura.targets.CoverageMetric>METHOD</hudson.plugins.cobertura.targets.CoverageMetric> | ||
458 | 159 | <int>80</int> | ||
459 | 160 | </entry> | ||
460 | 161 | </targets> | ||
461 | 162 | </healthyTarget> | ||
462 | 163 | <unhealthyTarget> | ||
463 | 164 | <targets class="enum-map" enum-type="hudson.plugins.cobertura.targets.CoverageMetric"> | ||
464 | 165 | <entry> | ||
465 | 166 | <hudson.plugins.cobertura.targets.CoverageMetric>CONDITIONAL</hudson.plugins.cobertura.targets.CoverageMetric> | ||
466 | 167 | <int>0</int> | ||
467 | 168 | </entry> | ||
468 | 169 | <entry> | ||
469 | 170 | <hudson.plugins.cobertura.targets.CoverageMetric>LINE</hudson.plugins.cobertura.targets.CoverageMetric> | ||
470 | 171 | <int>0</int> | ||
471 | 172 | </entry> | ||
472 | 173 | <entry> | ||
473 | 174 | <hudson.plugins.cobertura.targets.CoverageMetric>METHOD</hudson.plugins.cobertura.targets.CoverageMetric> | ||
474 | 175 | <int>0</int> | ||
475 | 176 | </entry> | ||
476 | 177 | </targets> | ||
477 | 178 | </unhealthyTarget> | ||
478 | 179 | <failingTarget> | ||
479 | 180 | <targets class="enum-map" enum-type="hudson.plugins.cobertura.targets.CoverageMetric"> | ||
480 | 181 | <entry> | ||
481 | 182 | <hudson.plugins.cobertura.targets.CoverageMetric>CONDITIONAL</hudson.plugins.cobertura.targets.CoverageMetric> | ||
482 | 183 | <int>0</int> | ||
483 | 184 | </entry> | ||
484 | 185 | <entry> | ||
485 | 186 | <hudson.plugins.cobertura.targets.CoverageMetric>LINE</hudson.plugins.cobertura.targets.CoverageMetric> | ||
486 | 187 | <int>0</int> | ||
487 | 188 | </entry> | ||
488 | 189 | <entry> | ||
489 | 190 | <hudson.plugins.cobertura.targets.CoverageMetric>METHOD</hudson.plugins.cobertura.targets.CoverageMetric> | ||
490 | 191 | <int>0</int> | ||
491 | 192 | </entry> | ||
492 | 193 | </targets> | ||
493 | 194 | </failingTarget> | ||
494 | 195 | <sourceEncoding>ASCII</sourceEncoding> | ||
495 | 196 | </hudson.plugins.cobertura.CoberturaPublisher> | ||
496 | 197 | {% endif %} | ||
497 | 198 | {% if publish_junit %} | ||
498 | 199 | <hudson.tasks.junit.JUnitResultArchiver> | ||
499 | 200 | <testResults>{{ publish_junit }}</testResults> | ||
500 | 201 | <keepLongStdio>false</keepLongStdio> | ||
501 | 202 | <testDataPublishers/> | ||
502 | 203 | </hudson.tasks.junit.JUnitResultArchiver> | ||
503 | 204 | {% endif %} | ||
504 | 205 | {% endif %} | ||
505 | 206 | {% if contact_email %} | ||
506 | 207 | <hudson.tasks.Mailer> | ||
507 | 208 | <recipients>{{ contact_email }}</recipients> | ||
508 | 209 | <dontNotifyEveryUnstableBuild>false</dontNotifyEveryUnstableBuild> | ||
509 | 210 | <sendToIndividuals>false</sendToIndividuals> | ||
510 | 211 | </hudson.tasks.Mailer> | ||
511 | 212 | {% endif %} | ||
512 | 213 | {% if irc_channel and irc_notification %} | ||
513 | 214 | <hudson.plugins.ircbot.IrcPublisher> | ||
514 | 215 | <targets> | ||
515 | 216 | <hudson.plugins.im.GroupChatIMMessageTarget> | ||
516 | 217 | <name>{{ irc_channel }}</name> | ||
517 | 218 | <notificationOnly>true</notificationOnly> | ||
518 | 219 | </hudson.plugins.im.GroupChatIMMessageTarget> | ||
519 | 220 | </targets> | ||
520 | 221 | <strategy>{{ irc_notification }}</strategy> | ||
521 | 222 | <notifyOnBuildStart>false</notifyOnBuildStart> | ||
522 | 223 | <notifySuspects>false</notifySuspects> | ||
523 | 224 | <notifyCulprits>false</notifyCulprits> | ||
524 | 225 | <notifyFixers>false</notifyFixers> | ||
525 | 226 | <notifyUpstreamCommitters>false</notifyUpstreamCommitters> | ||
526 | 227 | <buildToChatNotifier class="hudson.plugins.im.build_notify.DefaultBuildToChatNotifier"/> | ||
527 | 228 | <matrixMultiplier>ONLY_CONFIGURATIONS</matrixMultiplier> | ||
528 | 229 | <channels/> | ||
529 | 230 | </hudson.plugins.ircbot.IrcPublisher> | ||
530 | 231 | {% endif %} | ||
531 | 232 | {% if publish %} | ||
532 | 233 | <hudson.plugins.build__publisher.BuildPublisher> | ||
533 | 234 | <publishUnstableBuilds>true</publishUnstableBuilds> | ||
534 | 235 | <publishFailedBuilds>true</publishFailedBuilds> | ||
535 | 236 | <postActions class="vector"/> | ||
536 | 237 | </hudson.plugins.build__publisher.BuildPublisher> | ||
537 | 238 | {% endif %} | ||
538 | 239 | <hudson.plugins.parameterizedtrigger.BuildTrigger> | ||
539 | 240 | <configs> | ||
540 | 241 | {% if ppa_target and distributions %} | ||
541 | 242 | <hudson.plugins.parameterizedtrigger.BuildTriggerConfig> | ||
542 | 243 | <configs> | ||
543 | 244 | <hudson.plugins.parameterizedtrigger.PredefinedBuildParameters> | ||
544 | 245 | <properties>ppa_target=${ppa_target} | ||
545 | 246 | packaging_branch=${packaging_branch} | ||
546 | 247 | trunk=${target_branch} | ||
547 | 248 | distributions=${distributions} | ||
548 | 249 | version_string_format=${version_string_format}.${BUILD_NUMBER} | ||
549 | 250 | hook=${dput_hooks}</properties> | ||
550 | 251 | </hudson.plugins.parameterizedtrigger.PredefinedBuildParameters> | ||
551 | 252 | </configs> | ||
552 | 253 | <projects>generic-dput</projects> | ||
553 | 254 | <condition>SUCCESS</condition> | ||
554 | 255 | <triggerWithNoParameters>false</triggerWithNoParameters> | ||
555 | 256 | </hudson.plugins.parameterizedtrigger.BuildTriggerConfig> | ||
556 | 257 | {% endif %} | ||
557 | 258 | <hudson.plugins.parameterizedtrigger.BuildTriggerConfig> | ||
558 | 259 | <configs> | ||
559 | 260 | <hudson.plugins.parameterizedtrigger.PredefinedBuildParameters> | ||
560 | 261 | <properties>local_archive_host={{ local_archive_host }} | ||
561 | 262 | local_archive_login={{ local_archive_login }} | ||
562 | 263 | temp_dir={{ local_archive_tmp }}/${local_archive_name}/${project_name}.${BUILD_NUMBER}.rebuild</properties> | ||
563 | 264 | </hudson.plugins.parameterizedtrigger.PredefinedBuildParameters> | ||
564 | 265 | </configs> | ||
565 | 266 | <projects>generic-cleanup-mbs</projects> | ||
566 | 267 | <condition>ALWAYS</condition> | ||
567 | 268 | <triggerWithNoParameters>false</triggerWithNoParameters> | ||
568 | 269 | </hudson.plugins.parameterizedtrigger.BuildTriggerConfig> | ||
569 | 270 | </configs> | ||
570 | 271 | </hudson.plugins.parameterizedtrigger.BuildTrigger> | ||
571 | 272 | </publishers> | ||
572 | 273 | <buildWrappers/> | ||
573 | 274 | </project> | ||
574 | 0 | 275 | ||
575 | === modified file 'stacks/head/mir.cfg' | |||
576 | --- stacks/head/mir.cfg 2013-05-29 07:50:01 +0000 | |||
577 | +++ stacks/head/mir.cfg 2013-05-29 14:11:26 +0000 | |||
578 | @@ -8,9 +8,20 @@ | |||
579 | 8 | dependencies: | 8 | dependencies: |
580 | 9 | - qa | 9 | - qa |
581 | 10 | ci_default: | 10 | ci_default: |
582 | 11 | autolanding_template: mbs-autolanding-config.xml.tmpl | ||
583 | 12 | rebuild_template: mbs-rebuild-config.xml.tmpl | ||
584 | 13 | hook_source: lp:~private-ps-quality-team/+junk/mbs-archive-hooks | ||
585 | 14 | hooks: H05set_package_version D00mbs_archive | ||
586 | 11 | configurations: | 15 | configurations: |
587 | 12 | raring-amd64: | 16 | raring-amd64: |
588 | 17 | template: mbs-pbuilder-config.xml.tmpl | ||
589 | 13 | node_label: pbuilder | 18 | node_label: pbuilder |
590 | 19 | local_archive_host: naartjie | ||
591 | 20 | local_archive_login: ubuntu | ||
592 | 21 | local_archive_tmp: /home/ubuntu/local-archive | ||
593 | 22 | local_archive_name: head.mir | ||
594 | 23 | local_archive_source: http://naartjie/archive/ | ||
595 | 24 | local_archive_pocket: raring | ||
596 | 14 | build_timeout: 120 | 25 | build_timeout: 120 |
597 | 15 | autolanding: | 26 | autolanding: |
598 | 16 | ppa_target: ppa:mir-team/staging | 27 | ppa_target: ppa:mir-team/staging |
599 | @@ -19,8 +30,8 @@ | |||
600 | 19 | projects: | 30 | projects: |
601 | 20 | mir: | 31 | mir: |
602 | 21 | daily_release: False | 32 | daily_release: False |
605 | 22 | contact_email: martin.mrazik@canonical.com | 33 | contact_email: martin.mrazik@canonical.com francis.ginther@canonical.com |
606 | 23 | hooks: H10enable_coverage B10gcovr_run H15enable_testing D10install_valgrind B09copy_results D09add_ppa-phablet-team-ppa | 34 | hooks: H05set_package_version D00mbs_archive H10enable_coverage B10gcovr_run H15enable_testing D10install_valgrind B09copy_results D09add_ppa-phablet-team-ppa |
607 | 24 | archive_artifacts: '**/results/*test*.xml, **/results/coverage.xml, **/output/*deb' | 35 | archive_artifacts: '**/results/*test*.xml, **/results/coverage.xml, **/output/*deb' |
608 | 25 | publish_coverage: '**/results/coverage.xml' | 36 | publish_coverage: '**/results/coverage.xml' |
609 | 26 | publish_junit: '**/results/*test*.xml' | 37 | publish_junit: '**/results/*test*.xml' |
610 | @@ -34,13 +45,14 @@ | |||
611 | 34 | template: False | 45 | template: False |
612 | 35 | mir-android-raring-i386-build: | 46 | mir-android-raring-i386-build: |
613 | 36 | template: False | 47 | template: False |
614 | 48 | rebuild: lightdm-mir,unity-system-compositor | ||
615 | 37 | # TODO irc if autolanding fails | 49 | # TODO irc if autolanding fails |
616 | 38 | qmir: | 50 | qmir: |
617 | 39 | contact_email: martin.mrazik@canonical.com | 51 | contact_email: martin.mrazik@canonical.com |
618 | 40 | daily_release: False | 52 | daily_release: False |
619 | 41 | lightdm: | 53 | lightdm: |
620 | 42 | contact_email: thomi.richards@canonical.com | 54 | contact_email: thomi.richards@canonical.com |
622 | 43 | hooks: H40native_hack.py D08add_ppa-qt5-proper | 55 | hooks: H05set_package_version D00mbs_archive H40native_hack.py D08add_ppa-qt5-proper |
623 | 44 | packaging_branch: lp:~lightdm-team/lightdm/trunk-packaging | 56 | packaging_branch: lp:~lightdm-team/lightdm/trunk-packaging |
624 | 45 | daily_release: False | 57 | daily_release: False |
625 | 46 | autolanding: | 58 | autolanding: |
626 | @@ -48,10 +60,10 @@ | |||
627 | 48 | distributions: precise,quantal,raring,saucy | 60 | distributions: precise,quantal,raring,saucy |
628 | 49 | lightdm-mir: | 61 | lightdm-mir: |
629 | 50 | target_branch: lp:~mir-team/lightdm/unity | 62 | target_branch: lp:~mir-team/lightdm/unity |
632 | 51 | contact_email: thomi.richards@canonical.com | 63 | contact_email: thomi.richards@canonical.com francis.ginther@canonical.com |
633 | 52 | hooks: D08add_ppa-qt5-proper D09add_ppa-mir-team-staging | 64 | hooks: H05set_package_version D00mbs_archive D08add_ppa-qt5-proper D09add_ppa-mir-team-staging |
634 | 53 | daily_release: False | 65 | daily_release: False |
635 | 54 | unity-system-compositor: | 66 | unity-system-compositor: |
636 | 55 | daily_release: False | 67 | daily_release: False |
639 | 56 | contact_email: thomi.richards@canonical.com | 68 | contact_email: thomi.richards@canonical.com francis.ginther@canonical.com |
640 | 57 | hooks: D08add_ppa-qt5-proper D09add_ppa-mir-team-staging | 69 | hooks: H05set_package_version D00mbs_archive D08add_ppa-qt5-proper D09add_ppa-mir-team-staging |
641 | 58 | 70 | ||
642 | === modified file 'stacks/head/oif.cfg' | |||
643 | --- stacks/head/oif.cfg 2013-05-29 07:50:01 +0000 | |||
644 | +++ stacks/head/oif.cfg 2013-05-29 14:11:26 +0000 | |||
645 | @@ -9,8 +9,9 @@ | |||
646 | 9 | contact_email: "francis.ginther@canonical.com" | 9 | contact_email: "francis.ginther@canonical.com" |
647 | 10 | team: PS-QA | 10 | team: PS-QA |
648 | 11 | autolanding_template: mbs-autolanding-config.xml.tmpl | 11 | autolanding_template: mbs-autolanding-config.xml.tmpl |
651 | 12 | hooks: H05set_package_version D00mbs_archive H40enable_gensymbols_check | 12 | rebuild_template: mbs-rebuild-config.xml.tmpl |
652 | 13 | hook_source: lp:~private-ps-quality-team/+junk/oif-hooks | 13 | hooks: H05set_package_version D00mbs_archive |
653 | 14 | hook_source: lp:~private-ps-quality-team/+junk/mbs-archive-hooks | ||
654 | 14 | configurations: | 15 | configurations: |
655 | 15 | raring-amd64: | 16 | raring-amd64: |
656 | 16 | template: mbs-pbuilder-config.xml.tmpl | 17 | template: mbs-pbuilder-config.xml.tmpl |
657 | @@ -24,9 +25,9 @@ | |||
658 | 24 | publish_coverage: False | 25 | publish_coverage: False |
659 | 25 | local_archive_host: naartjie | 26 | local_archive_host: naartjie |
660 | 26 | local_archive_login: ubuntu | 27 | local_archive_login: ubuntu |
664 | 27 | local_archive_tmp: /home/ubuntu/ppa_archive/oif-staging | 28 | local_archive_tmp: /home/ubuntu/local-archive |
665 | 28 | local_archive: oif-staging | 29 | local_archive_name: head.oif |
666 | 29 | local_archive_source: http://naartjie/archive/oif-staging | 30 | local_archive_source: http://naartjie/archive/ |
667 | 30 | local_archive_pocket: raring | 31 | local_archive_pocket: raring |
668 | 31 | dependencies: | 32 | dependencies: |
669 | 32 | - qa | 33 | - qa |
670 | @@ -36,6 +37,9 @@ | |||
671 | 36 | tests: unity.tests.test_dash.DashRevealTests.test_alt_f4_close_dash | 37 | tests: unity.tests.test_dash.DashRevealTests.test_alt_f4_close_dash |
672 | 37 | projects: | 38 | projects: |
673 | 38 | frame: | 39 | frame: |
674 | 40 | rebuild: grail | ||
675 | 39 | geis: | 41 | geis: |
676 | 42 | rebuild: libgrip | ||
677 | 40 | grail: | 43 | grail: |
678 | 44 | rebuild: geis | ||
679 | 41 | libgrip: | 45 | libgrip: |
680 | 42 | 46 | ||
681 | === modified file 'stacks/head/unity.cfg' | |||
682 | --- stacks/head/unity.cfg 2013-05-29 07:50:01 +0000 | |||
683 | +++ stacks/head/unity.cfg 2013-05-29 14:11:26 +0000 | |||
684 | @@ -9,8 +9,9 @@ | |||
685 | 9 | contact_email: "francis.ginther@canonical.com" | 9 | contact_email: "francis.ginther@canonical.com" |
686 | 10 | team: PS-QA | 10 | team: PS-QA |
687 | 11 | autolanding_template: mbs-autolanding-config.xml.tmpl | 11 | autolanding_template: mbs-autolanding-config.xml.tmpl |
690 | 12 | hooks: H05set_package_version D00mbs_archive H40enable_gensymbols_check | 12 | rebuild_template: mbs-rebuild-config.xml.tmpl |
691 | 13 | hook_source: lp:~private-ps-quality-team/+junk/mbs-hooks | 13 | hooks: H05set_package_version D00mbs_archive |
692 | 14 | hook_source: lp:~private-ps-quality-team/+junk/unity-hooks | ||
693 | 14 | configurations: | 15 | configurations: |
694 | 15 | raring-amd64: | 16 | raring-amd64: |
695 | 16 | template: mbs-pbuilder-config.xml.tmpl | 17 | template: mbs-pbuilder-config.xml.tmpl |
696 | @@ -22,11 +23,11 @@ | |||
697 | 22 | template: mbs-pbuilder-config.xml.tmpl | 23 | template: mbs-pbuilder-config.xml.tmpl |
698 | 23 | node_label: panda-pbuilder | 24 | node_label: panda-pbuilder |
699 | 24 | publish_coverage: False | 25 | publish_coverage: False |
701 | 25 | local_archive: staging | 26 | local_archive_name: head.unity |
702 | 26 | local_archive_host: naartjie | 27 | local_archive_host: naartjie |
703 | 27 | local_archive_login: ubuntu | 28 | local_archive_login: ubuntu |
706 | 28 | local_archive_tmp: /home/ubuntu/ppa_archive/staging | 29 | local_archive_tmp: /home/ubuntu/local-archive |
707 | 29 | local_archive_source: http://naartjie/archive/staging | 30 | local_archive_source: http://naartjie/archive/ |
708 | 30 | local_archive_pocket: raring | 31 | local_archive_pocket: raring |
709 | 31 | test_parameters: | 32 | test_parameters: |
710 | 32 | testpackages: unity-autopilot | 33 | testpackages: unity-autopilot |
711 | @@ -41,24 +42,25 @@ | |||
712 | 41 | - hud | 42 | - hud |
713 | 42 | projects: | 43 | projects: |
714 | 43 | dee: | 44 | dee: |
716 | 44 | hooks: H05set_package_version D00mbs_archive H40enable_gensymbols_check D10specifictests B05xsltproc B09copy_results H10enable_coverage B10gcovr_run D10install_lcov | 45 | hooks: H05set_package_version D00mbs_archive D10specifictests B05xsltproc B09copy_results H10enable_coverage B10gcovr_run D10install_lcov |
717 | 45 | archive_artifacts: '**/results/**' | 46 | archive_artifacts: '**/results/**' |
718 | 46 | publish_coverage: '**/results/coverage.xml' | 47 | publish_coverage: '**/results/coverage.xml' |
719 | 47 | publish_junit: '**/results/*test*xml' | 48 | publish_junit: '**/results/*test*xml' |
720 | 48 | configurations: | 49 | configurations: |
721 | 49 | raring-armhf: | 50 | raring-armhf: |
723 | 50 | hooks: H05set_package_version D00mbs_archive H40enable_gensymbols_check D10specifictests B05xsltproc B09copy_results | 51 | hooks: H05set_package_version D00mbs_archive D10specifictests B05xsltproc B09copy_results |
724 | 51 | compiz: | 52 | compiz: |
725 | 52 | daily_release: False # remember we don't want to land compiz trunk before activating this one | 53 | daily_release: False # remember we don't want to land compiz trunk before activating this one |
726 | 53 | build_timeout: 240 | 54 | build_timeout: 240 |
727 | 54 | archive_artifacts: '**/results/**' | 55 | archive_artifacts: '**/results/**' |
728 | 55 | publish_coverage: '**/results/coverage.xml' | 56 | publish_coverage: '**/results/coverage.xml' |
729 | 56 | publish_junit: '**/results/*test*xml' | 57 | publish_junit: '**/results/*test*xml' |
730 | 58 | rebuild: unity | ||
731 | 57 | autolanding: | 59 | autolanding: |
733 | 58 | hooks: H05set_package_version D00mbs_archive H40enable_gensymbols_check B09googletests_cmake H15enable_testing D10install_google_test H10enable_coverage B10gcovr_run D10install_lcov | 60 | hooks: H05set_package_version D00mbs_archive B09googletests_cmake H15enable_testing D10install_google_test H10enable_coverage B10gcovr_run D10install_lcov |
734 | 59 | configurations: | 61 | configurations: |
735 | 60 | raring-armhf: | 62 | raring-armhf: |
737 | 61 | hooks: H05set_package_version D00mbs_archive H40enable_gensymbols_check B09googletests_cmake H15enable_testing D10install_google_test | 63 | hooks: H05set_package_version D00mbs_archive B09googletests_cmake H15enable_testing D10install_google_test |
738 | 62 | ci: | 64 | ci: |
739 | 63 | hooks: D00mbs_archive H15enable_testing D10install_google_test H10enable_coverage B10gcovr_run D10install_lcov B09googletests_cmake | 65 | hooks: D00mbs_archive H15enable_testing D10install_google_test H10enable_coverage B10gcovr_run D10install_lcov B09googletests_cmake |
740 | 64 | configurations: | 66 | configurations: |
741 | @@ -69,55 +71,56 @@ | |||
742 | 69 | libunity: | 71 | libunity: |
743 | 70 | libunity-misc: | 72 | libunity-misc: |
744 | 71 | nux: | 73 | nux: |
746 | 72 | hooks: H05set_package_version D00mbs_archive H40enable_gensymbols_check B09googletests B09copy_results D10specifictests H10enable_coverage B10gcovr_run D10install_lcov | 74 | hooks: H05set_package_version D00mbs_archive B09googletests B09copy_results D10specifictests H10enable_coverage B10gcovr_run D10install_lcov |
747 | 73 | archive_artifacts: '**/results/**' | 75 | archive_artifacts: '**/results/**' |
748 | 74 | publish_coverage: '**/results/coverage.xml' | 76 | publish_coverage: '**/results/coverage.xml' |
749 | 75 | publish_junit: '**/results/*test*xml' | 77 | publish_junit: '**/results/*test*xml' |
750 | 78 | rebuild: unity | ||
751 | 76 | configurations: | 79 | configurations: |
752 | 77 | raring-armhf: | 80 | raring-armhf: |
754 | 78 | hooks: H05set_package_version D00mbs_archive H40enable_gensymbols_check B09googletests B09copy_results D10specifictests | 81 | hooks: H05set_package_version D00mbs_archive B09googletests B09copy_results D10specifictests |
755 | 79 | unity: | 82 | unity: |
756 | 80 | build_timeout: 240 | 83 | build_timeout: 240 |
758 | 81 | hooks: H05set_package_version D00mbs_archive H40enable_gensymbols_check D10install_google_test H10enable_coverage B10gcovr_run B09googletests B09copy_results | 84 | hooks: H05set_package_version D00mbs_archive D10install_google_test H10enable_coverage B10gcovr_run B09googletests B09copy_results |
759 | 82 | archive_artifacts: '**/results/**' | 85 | archive_artifacts: '**/results/**' |
760 | 83 | publish_coverage: '**/results/coverage.xml' | 86 | publish_coverage: '**/results/coverage.xml' |
761 | 84 | publish_junit: '**/results/*test*xml' | 87 | publish_junit: '**/results/*test*xml' |
762 | 85 | configurations: | 88 | configurations: |
763 | 86 | raring-armhf: | 89 | raring-armhf: |
765 | 87 | hooks: H05set_package_version D00mbs_archive H40enable_gensymbols_check D10install_google_test B09googletests B09copy_results | 90 | hooks: H05set_package_version D00mbs_archive D10install_google_test B09googletests B09copy_results |
766 | 88 | unity-asset-pool: | 91 | unity-asset-pool: |
767 | 89 | unity-lens-applications: | 92 | unity-lens-applications: |
769 | 90 | hooks: H05set_package_version D00mbs_archive H40enable_gensymbols_check D10specifictests B09copy_results H10enable_coverage B10gcovr_run D10install_lcov | 93 | hooks: H05set_package_version D00mbs_archive D10specifictests B09copy_results H10enable_coverage B10gcovr_run D10install_lcov |
770 | 91 | configurations: | 94 | configurations: |
771 | 92 | raring-armhf: | 95 | raring-armhf: |
773 | 93 | hooks: H05set_package_version D00mbs_archive H40enable_gensymbols_check D10specifictests B09copy_results | 96 | hooks: H05set_package_version D00mbs_archive D10specifictests B09copy_results |
774 | 94 | archive_artifacts: False | 97 | archive_artifacts: False |
775 | 95 | archive_artifacts: '**/results/**' | 98 | archive_artifacts: '**/results/**' |
776 | 96 | publish_coverage: '**/results/coverage.xml' | 99 | publish_coverage: '**/results/coverage.xml' |
777 | 97 | unity-lens-files: | 100 | unity-lens-files: |
778 | 98 | unity-lens-friends: | 101 | unity-lens-friends: |
779 | 99 | unity-lens-music: | 102 | unity-lens-music: |
781 | 100 | hooks: H05set_package_version D00mbs_archive H40enable_gensymbols_check D10specifictests B09copy_results H10enable_coverage B10gcovr_run D10install_lcov | 103 | hooks: H05set_package_version D00mbs_archive D10specifictests B09copy_results H10enable_coverage B10gcovr_run D10install_lcov |
782 | 101 | configurations: | 104 | configurations: |
783 | 102 | raring-armhf: | 105 | raring-armhf: |
785 | 103 | hooks: H05set_package_version D00mbs_archive H40enable_gensymbols_check D10specifictests B09copy_results | 106 | hooks: H05set_package_version D00mbs_archive D10specifictests B09copy_results |
786 | 104 | archive_artifacts: False | 107 | archive_artifacts: False |
787 | 105 | archive_artifacts: '**/results/**' | 108 | archive_artifacts: '**/results/**' |
788 | 106 | publish_coverage: '**/results/coverage.xml' | 109 | publish_coverage: '**/results/coverage.xml' |
789 | 107 | unity-lens-photos: | 110 | unity-lens-photos: |
790 | 108 | unity-lens-shopping: | 111 | unity-lens-shopping: |
792 | 109 | hooks: H05set_package_version D00mbs_archive H40enable_gensymbols_check D10specifictests B09copy_results H10enable_coverage B10gcovr_run D10install_lcov | 112 | hooks: H05set_package_version D00mbs_archive D10specifictests B09copy_results H10enable_coverage B10gcovr_run D10install_lcov |
793 | 110 | configurations: | 113 | configurations: |
794 | 111 | raring-armhf: | 114 | raring-armhf: |
796 | 112 | hooks: H05set_package_version D00mbs_archive H40enable_gensymbols_check D10specifictests B09copy_results | 115 | hooks: H05set_package_version D00mbs_archive D10specifictests B09copy_results |
797 | 113 | archive_artifacts: False | 116 | archive_artifacts: False |
798 | 114 | archive_artifacts: '**/results/**' | 117 | archive_artifacts: '**/results/**' |
799 | 115 | publish_coverage: '**/results/coverage.xml' | 118 | publish_coverage: '**/results/coverage.xml' |
800 | 116 | unity-lens-video: | 119 | unity-lens-video: |
802 | 117 | hooks: H05set_package_version D00mbs_archive H40enable_gensymbols_check D10specifictests B09copy_results H10enable_coverage B10gcovr_run D10install_lcov | 120 | hooks: H05set_package_version D00mbs_archive D10specifictests B09copy_results H10enable_coverage B10gcovr_run D10install_lcov |
803 | 118 | configurations: | 121 | configurations: |
804 | 119 | raring-armhf: | 122 | raring-armhf: |
806 | 120 | hooks: H05set_package_version D00mbs_archive H40enable_gensymbols_check D10specifictests B09copy_results | 123 | hooks: H05set_package_version D00mbs_archive D10specifictests B09copy_results |
807 | 121 | archive_artifacts: False | 124 | archive_artifacts: False |
808 | 122 | archive_artifacts: '**/results/**' | 125 | archive_artifacts: '**/results/**' |
809 | 123 | publish_coverage: '**/results/coverage.xml' | 126 | publish_coverage: '**/results/coverage.xml' |
810 | 124 | 127 | ||
811 | === modified file 'stacks/raring/oif.cfg' | |||
812 | --- stacks/raring/oif.cfg 2013-04-30 18:25:22 +0000 | |||
813 | +++ stacks/raring/oif.cfg 2013-05-29 14:11:26 +0000 | |||
814 | @@ -10,8 +10,9 @@ | |||
815 | 10 | contact_email: "francis.ginther@canonical.com" | 10 | contact_email: "francis.ginther@canonical.com" |
816 | 11 | team: PS-QA | 11 | team: PS-QA |
817 | 12 | autolanding_template: mbs-autolanding-config.xml.tmpl | 12 | autolanding_template: mbs-autolanding-config.xml.tmpl |
820 | 13 | hooks: H05set_package_version D00mbs_archive H40enable_gensymbols_check | 13 | rebuild_template: mbs-rebuild-config.xml.tmpl |
821 | 14 | hook_source: lp:~private-ps-quality-team/+junk/oif-hooks | 14 | hooks: H05set_package_version D00mbs_archive |
822 | 15 | hook_source: lp:~private-ps-quality-team/+junk/mbs-archive-hooks | ||
823 | 15 | configurations: | 16 | configurations: |
824 | 16 | raring-amd64: | 17 | raring-amd64: |
825 | 17 | template: mbs-pbuilder-config.xml.tmpl | 18 | template: mbs-pbuilder-config.xml.tmpl |
826 | @@ -25,9 +26,9 @@ | |||
827 | 25 | publish_coverage: False | 26 | publish_coverage: False |
828 | 26 | local_archive_host: naartjie | 27 | local_archive_host: naartjie |
829 | 27 | local_archive_login: ubuntu | 28 | local_archive_login: ubuntu |
833 | 28 | local_archive_tmp: /home/ubuntu/ppa_archive/oif-staging | 29 | local_archive_tmp: /home/ubuntu/local-archive |
834 | 29 | local_archive: oif-staging | 30 | local_archive_name: raring.oif |
835 | 30 | local_archive_source: http://naartjie/archive/oif-staging | 31 | local_archive_source: http://naartjie/archive/ |
836 | 31 | local_archive_pocket: raring | 32 | local_archive_pocket: raring |
837 | 32 | dependencies: | 33 | dependencies: |
838 | 33 | - qa | 34 | - qa |
839 | @@ -39,6 +40,7 @@ | |||
840 | 39 | evemu: | 40 | evemu: |
841 | 40 | target_branch: lp:evemu/raring | 41 | target_branch: lp:evemu/raring |
842 | 41 | autolanding_template: autolanding-config.xml.tmpl | 42 | autolanding_template: autolanding-config.xml.tmpl |
843 | 43 | rebuild_template: False | ||
844 | 42 | configurations: | 44 | configurations: |
845 | 43 | raring-amd64: | 45 | raring-amd64: |
846 | 44 | template: pbuilder-config.xml.tmpl | 46 | template: pbuilder-config.xml.tmpl |
847 | @@ -48,9 +50,12 @@ | |||
848 | 48 | template: pbuilder-config.xml.tmpl | 50 | template: pbuilder-config.xml.tmpl |
849 | 49 | frame: | 51 | frame: |
850 | 50 | target_branch: lp:frame/raring | 52 | target_branch: lp:frame/raring |
851 | 53 | rebuild: grail | ||
852 | 51 | geis: | 54 | geis: |
853 | 52 | target_branch: lp:geis/raring | 55 | target_branch: lp:geis/raring |
854 | 56 | rebuild: libgrip | ||
855 | 53 | grail: | 57 | grail: |
856 | 54 | target_branch: lp:grail/raring | 58 | target_branch: lp:grail/raring |
857 | 59 | rebuild: geis | ||
858 | 55 | libgrip: | 60 | libgrip: |
859 | 56 | target_branch: lp:libgrip/raring | 61 | target_branch: lp:libgrip/raring |
860 | 57 | 62 | ||
861 | === modified file 'stacks/raring/unity.cfg' | |||
862 | --- stacks/raring/unity.cfg 2013-05-28 17:20:56 +0000 | |||
863 | +++ stacks/raring/unity.cfg 2013-05-29 14:11:26 +0000 | |||
864 | @@ -10,8 +10,9 @@ | |||
865 | 10 | contact_email: "francis.ginther@canonical.com" | 10 | contact_email: "francis.ginther@canonical.com" |
866 | 11 | team: PS-QA | 11 | team: PS-QA |
867 | 12 | autolanding_template: mbs-autolanding-config.xml.tmpl | 12 | autolanding_template: mbs-autolanding-config.xml.tmpl |
870 | 13 | hooks: H05set_package_version D00mbs_archive H40enable_gensymbols_check | 13 | rebuild_template: mbs-rebuild-config.xml.tmpl |
871 | 14 | hook_source: lp:~private-ps-quality-team/+junk/mbs-hooks | 14 | hooks: H05set_package_version D00mbs_archive |
872 | 15 | hook_source: lp:~private-ps-quality-team/+junk/unity-hooks | ||
873 | 15 | configurations: | 16 | configurations: |
874 | 16 | raring-amd64: | 17 | raring-amd64: |
875 | 17 | template: mbs-pbuilder-config.xml.tmpl | 18 | template: mbs-pbuilder-config.xml.tmpl |
876 | @@ -23,11 +24,11 @@ | |||
877 | 23 | template: mbs-pbuilder-config.xml.tmpl | 24 | template: mbs-pbuilder-config.xml.tmpl |
878 | 24 | node_label: panda-pbuilder | 25 | node_label: panda-pbuilder |
879 | 25 | publish_coverage: False | 26 | publish_coverage: False |
881 | 26 | local_archive: staging | 27 | local_archive_name: raring.unity |
882 | 27 | local_archive_host: naartjie | 28 | local_archive_host: naartjie |
883 | 28 | local_archive_login: ubuntu | 29 | local_archive_login: ubuntu |
886 | 29 | local_archive_tmp: /home/ubuntu/ppa_archive/staging | 30 | local_archive_tmp: /home/ubuntu/local-archive |
887 | 30 | local_archive_source: http://naartjie/archive/staging | 31 | local_archive_source: http://naartjie/archive/ |
888 | 31 | local_archive_pocket: raring | 32 | local_archive_pocket: raring |
889 | 32 | test_parameters: | 33 | test_parameters: |
890 | 33 | testpackages: unity-autopilot | 34 | testpackages: unity-autopilot |
891 | @@ -42,62 +43,64 @@ | |||
892 | 42 | compiz: | 43 | compiz: |
893 | 43 | build_timeout: 240 | 44 | build_timeout: 240 |
894 | 44 | target_branch: lp:compiz/0.9.9 | 45 | target_branch: lp:compiz/0.9.9 |
896 | 45 | hooks: H05set_package_version D00mbs_archive H40enable_gensymbols_check B09googletests_cmake H15enable_testing D10install_google_test H10enable_coverage B10gcovr_run D10install_lcov | 46 | hooks: H05set_package_version D00mbs_archive B09googletests_cmake H15enable_testing D10install_google_test H10enable_coverage B10gcovr_run D10install_lcov |
897 | 46 | archive_artifacts: '**/results/**' | 47 | archive_artifacts: '**/results/**' |
898 | 47 | publish_coverage: '**/results/coverage.xml' | 48 | publish_coverage: '**/results/coverage.xml' |
899 | 48 | publish_junit: '**/results/*test*xml' | 49 | publish_junit: '**/results/*test*xml' |
900 | 50 | rebuild: unity | ||
901 | 49 | autolanding: | 51 | autolanding: |
903 | 50 | hooks: H05set_package_version D00mbs_archive H40enable_gensymbols_check B09googletests_cmake H15enable_testing D10install_google_test H10enable_coverage B10gcovr_run D10install_lcov | 52 | hooks: H05set_package_version D00mbs_archive B09googletests_cmake H15enable_testing D10install_google_test H10enable_coverage B10gcovr_run D10install_lcov |
904 | 51 | configurations: | 53 | configurations: |
905 | 52 | raring-armhf: | 54 | raring-armhf: |
907 | 53 | hooks: H05set_package_version D00mbs_archive H40enable_gensymbols_check B09googletests_cmake H15enable_testing D10install_google_test | 55 | hooks: H05set_package_version D00mbs_archive B09googletests_cmake H15enable_testing D10install_google_test |
908 | 54 | ci: | 56 | ci: |
909 | 55 | hooks: H10enable_coverage B02google-tests | 57 | hooks: H10enable_coverage B02google-tests |
910 | 56 | configurations: | 58 | configurations: |
911 | 57 | compiz-gles-ci: | 59 | compiz-gles-ci: |
912 | 58 | template: False | 60 | template: False |
913 | 59 | raring-armhf: | 61 | raring-armhf: |
915 | 60 | hooks: D00mbs_archive H40enable_gensymbols_check B09googletests H15enable_testing D10install_google_test D10install_valgrind | 62 | hooks: D00mbs_archive B09googletests H15enable_testing D10install_google_test D10install_valgrind |
916 | 61 | dee: | 63 | dee: |
917 | 62 | target_branch: lp:~unity-team/dee/raring | 64 | target_branch: lp:~unity-team/dee/raring |
919 | 63 | hooks: H05set_package_version D00mbs_archive H40enable_gensymbols_check D10specifictests B05xsltproc B09copy_results H10enable_coverage B10gcovr_run D10install_lcov | 65 | hooks: H05set_package_version D00mbs_archive D10specifictests B05xsltproc B09copy_results H10enable_coverage B10gcovr_run D10install_lcov |
920 | 64 | archive_artifacts: '**/results/**' | 66 | archive_artifacts: '**/results/**' |
921 | 65 | publish_coverage: '**/results/coverage.xml' | 67 | publish_coverage: '**/results/coverage.xml' |
922 | 66 | publish_junit: '**/results/*test*xml' | 68 | publish_junit: '**/results/*test*xml' |
923 | 67 | configurations: | 69 | configurations: |
924 | 68 | raring-armhf: | 70 | raring-armhf: |
926 | 69 | hooks: H05set_package_version D00mbs_archive H40enable_gensymbols_check D10specifictests B05xsltproc B09copy_results | 71 | hooks: H05set_package_version D00mbs_archive D10specifictests B05xsltproc B09copy_results |
927 | 70 | libunity: | 72 | libunity: |
928 | 71 | target_branch: lp:libunity/raring | 73 | target_branch: lp:libunity/raring |
929 | 72 | libunity-misc: | 74 | libunity-misc: |
930 | 73 | target_branch: lp:libunity-misc/raring | 75 | target_branch: lp:libunity-misc/raring |
931 | 74 | nux: | 76 | nux: |
932 | 75 | target_branch: lp:nux/raring | 77 | target_branch: lp:nux/raring |
934 | 76 | hooks: H05set_package_version D00mbs_archive H40enable_gensymbols_check B09googletests B09copy_results D10specifictests H10enable_coverage B10gcovr_run D10install_lcov | 78 | hooks: H05set_package_version D00mbs_archive B09googletests B09copy_results D10specifictests H10enable_coverage B10gcovr_run D10install_lcov |
935 | 77 | archive_artifacts: '**/results/**' | 79 | archive_artifacts: '**/results/**' |
936 | 78 | publish_coverage: '**/results/coverage.xml' | 80 | publish_coverage: '**/results/coverage.xml' |
937 | 79 | publish_junit: '**/results/*test*xml' | 81 | publish_junit: '**/results/*test*xml' |
938 | 82 | rebuild: unity | ||
939 | 80 | configurations: | 83 | configurations: |
940 | 81 | raring-armhf: | 84 | raring-armhf: |
942 | 82 | hooks: H05set_package_version D00mbs_archive H40enable_gensymbols_check B09googletests B09copy_results D10specifictests | 85 | hooks: H05set_package_version D00mbs_archive B09googletests B09copy_results D10specifictests |
943 | 83 | unity: | 86 | unity: |
944 | 84 | target_branch: lp:unity/7.0 | 87 | target_branch: lp:unity/7.0 |
945 | 85 | build_timeout: 240 | 88 | build_timeout: 240 |
947 | 86 | hooks: H05set_package_version D00mbs_archive H40enable_gensymbols_check D10install_google_test H10enable_coverage B10gcovr_run B09googletests B09copy_results | 89 | hooks: H05set_package_version D00mbs_archive D10install_google_test H10enable_coverage B10gcovr_run B09googletests B09copy_results |
948 | 87 | archive_artifacts: '**/results/**' | 90 | archive_artifacts: '**/results/**' |
949 | 88 | publish_coverage: '**/results/coverage.xml' | 91 | publish_coverage: '**/results/coverage.xml' |
950 | 89 | publish_junit: '**/results/*test*xml' | 92 | publish_junit: '**/results/*test*xml' |
951 | 90 | configurations: | 93 | configurations: |
952 | 91 | raring-armhf: | 94 | raring-armhf: |
954 | 92 | hooks: H05set_package_version D00mbs_archive H40enable_gensymbols_check D10install_google_test B09googletests B09copy_results | 95 | hooks: H05set_package_version D00mbs_archive D10install_google_test B09googletests B09copy_results |
955 | 93 | unity-asset-pool: | 96 | unity-asset-pool: |
956 | 94 | target_branch: lp:unity-asset-pool/raring | 97 | target_branch: lp:unity-asset-pool/raring |
957 | 95 | unity-lens-applications: | 98 | unity-lens-applications: |
958 | 96 | target_branch: lp:unity-lens-applications/raring | 99 | target_branch: lp:unity-lens-applications/raring |
960 | 97 | hooks: H05set_package_version D00mbs_archive H40enable_gensymbols_check D10specifictests B09copy_results H10enable_coverage B10gcovr_run D10install_lcov | 100 | hooks: H05set_package_version D00mbs_archive D10specifictests B09copy_results H10enable_coverage B10gcovr_run D10install_lcov |
961 | 98 | configurations: | 101 | configurations: |
962 | 99 | raring-armhf: | 102 | raring-armhf: |
964 | 100 | hooks: H05set_package_version D00mbs_archive H40enable_gensymbols_check D10specifictests B09copy_results | 103 | hooks: H05set_package_version D00mbs_archive D10specifictests B09copy_results |
965 | 101 | archive_artifacts: False | 104 | archive_artifacts: False |
966 | 102 | archive_artifacts: '**/results/**' | 105 | archive_artifacts: '**/results/**' |
967 | 103 | publish_coverage: '**/results/coverage.xml' | 106 | publish_coverage: '**/results/coverage.xml' |
968 | @@ -105,10 +108,10 @@ | |||
969 | 105 | target_branch: lp:unity-lens-files/raring | 108 | target_branch: lp:unity-lens-files/raring |
970 | 106 | unity-lens-music: | 109 | unity-lens-music: |
971 | 107 | target_branch: lp:unity-lens-music/raring | 110 | target_branch: lp:unity-lens-music/raring |
973 | 108 | hooks: H05set_package_version D00mbs_archive H40enable_gensymbols_check D10specifictests B09copy_results H10enable_coverage B10gcovr_run D10install_lcov | 111 | hooks: H05set_package_version D00mbs_archive D10specifictests B09copy_results H10enable_coverage B10gcovr_run D10install_lcov |
974 | 109 | configurations: | 112 | configurations: |
975 | 110 | raring-armhf: | 113 | raring-armhf: |
977 | 111 | hooks: H05set_package_version D00mbs_archive H40enable_gensymbols_check D10specifictests B09copy_results | 114 | hooks: H05set_package_version D00mbs_archive D10specifictests B09copy_results |
978 | 112 | archive_artifacts: False | 115 | archive_artifacts: False |
979 | 113 | archive_artifacts: '**/results/**' | 116 | archive_artifacts: '**/results/**' |
980 | 114 | publish_coverage: '**/results/coverage.xml' | 117 | publish_coverage: '**/results/coverage.xml' |
981 | @@ -116,10 +119,10 @@ | |||
982 | 116 | target_branch: lp:unity-lens-photos/raring | 119 | target_branch: lp:unity-lens-photos/raring |
983 | 117 | unity-lens-shopping: | 120 | unity-lens-shopping: |
984 | 118 | target_branch: lp:unity-lens-shopping/raring | 121 | target_branch: lp:unity-lens-shopping/raring |
986 | 119 | hooks: H05set_package_version D00mbs_archive H40enable_gensymbols_check D10specifictests B09copy_results H10enable_coverage B10gcovr_run D10install_lcov | 122 | hooks: H05set_package_version D00mbs_archive D10specifictests B09copy_results H10enable_coverage B10gcovr_run D10install_lcov |
987 | 120 | configurations: | 123 | configurations: |
988 | 121 | raring-armhf: | 124 | raring-armhf: |
990 | 122 | hooks: H05set_package_version D00mbs_archive H40enable_gensymbols_check D10specifictests B09copy_results | 125 | hooks: H05set_package_version D00mbs_archive D10specifictests B09copy_results |
991 | 123 | archive_artifacts: False | 126 | archive_artifacts: False |
992 | 124 | archive_artifacts: '**/results/**' | 127 | archive_artifacts: '**/results/**' |
993 | 125 | publish_coverage: '**/results/coverage.xml' | 128 | publish_coverage: '**/results/coverage.xml' |
994 | @@ -127,10 +130,10 @@ | |||
995 | 127 | target_branch: lp:unity-scope-gdrive/raring | 130 | target_branch: lp:unity-scope-gdrive/raring |
996 | 128 | unity-lens-video: | 131 | unity-lens-video: |
997 | 129 | target_branch: lp:unity-lens-video/raring | 132 | target_branch: lp:unity-lens-video/raring |
999 | 130 | hooks: H05set_package_version D00mbs_archive H40enable_gensymbols_check D10specifictests B09copy_results H10enable_coverage B10gcovr_run D10install_lcov | 133 | hooks: H05set_package_version D00mbs_archive D10specifictests B09copy_results H10enable_coverage B10gcovr_run D10install_lcov |
1000 | 131 | configurations: | 134 | configurations: |
1001 | 132 | raring-armhf: | 135 | raring-armhf: |
1003 | 133 | hooks: H05set_package_version D00mbs_archive H40enable_gensymbols_check D10specifictests B09copy_results | 136 | hooks: H05set_package_version D00mbs_archive D10specifictests B09copy_results |
1004 | 134 | archive_artifacts: False | 137 | archive_artifacts: False |
1005 | 135 | archive_artifacts: '**/results/**' | 138 | archive_artifacts: '**/results/**' |
1006 | 136 | publish_coverage: '**/results/coverage.xml' | 139 | publish_coverage: '**/results/coverage.xml' |
1007 | 137 | 140 | ||
1008 | === modified file 'tests/test_cu2dUpdateCi.py' | |||
1009 | --- tests/test_cu2dUpdateCi.py 2013-05-22 13:12:26 +0000 | |||
1010 | +++ tests/test_cu2dUpdateCi.py 2013-05-29 14:11:26 +0000 | |||
1011 | @@ -272,7 +272,7 @@ | |||
1012 | 272 | self.assertEqual(expected, actual) | 272 | self.assertEqual(expected, actual) |
1013 | 273 | 273 | ||
1014 | 274 | 274 | ||
1016 | 275 | class TestGenerateJobs(TestWithScenarios, TestCase): | 275 | class TestGenerateJobs(TestCase): |
1017 | 276 | job_template = 'ci.xml.tmpl' | 276 | job_template = 'ci.xml.tmpl' |
1018 | 277 | build_template = 'build.xml.tmpl' | 277 | build_template = 'build.xml.tmpl' |
1019 | 278 | 278 | ||
1020 | @@ -288,7 +288,7 @@ | |||
1021 | 288 | 'foo-raring-i386-ci', | 288 | 'foo-raring-i386-ci', |
1022 | 289 | 'foo-ci'] | 289 | 'foo-ci'] |
1023 | 290 | job_list = [] | 290 | job_list = [] |
1025 | 291 | self.update_ci.generate_jobs(job_list, 'foo', 'ci', config, | 291 | self.update_ci.generate_jobs(job_list, 'foo', 'ci', 'ci', config, |
1026 | 292 | self.job_template, self.build_template, | 292 | self.job_template, self.build_template, |
1027 | 293 | {}) | 293 | {}) |
1028 | 294 | actual = [job['name'] for job in job_list] | 294 | actual = [job['name'] for job in job_list] |
1029 | @@ -303,7 +303,7 @@ | |||
1030 | 303 | 'build.xml.tmpl', | 303 | 'build.xml.tmpl', |
1031 | 304 | 'ci.xml.tmpl'] | 304 | 'ci.xml.tmpl'] |
1032 | 305 | job_list = [] | 305 | job_list = [] |
1034 | 306 | self.update_ci.generate_jobs(job_list, 'foo', 'ci', config, | 306 | self.update_ci.generate_jobs(job_list, 'foo', 'ci', 'ci', config, |
1035 | 307 | self.job_template, self.build_template, | 307 | self.job_template, self.build_template, |
1036 | 308 | {}) | 308 | {}) |
1037 | 309 | actual = [job['template'] for job in job_list] | 309 | actual = [job['template'] for job in job_list] |
1038 | @@ -320,7 +320,7 @@ | |||
1039 | 320 | 'bar.xml.tmpl', | 320 | 'bar.xml.tmpl', |
1040 | 321 | 'ci.xml.tmpl'] | 321 | 'ci.xml.tmpl'] |
1041 | 322 | job_list = [] | 322 | job_list = [] |
1043 | 323 | self.update_ci.generate_jobs(job_list, 'foo', 'ci', config, | 323 | self.update_ci.generate_jobs(job_list, 'foo', 'ci', 'ci', config, |
1044 | 324 | self.job_template, self.build_template, | 324 | self.job_template, self.build_template, |
1045 | 325 | {}) | 325 | {}) |
1046 | 326 | actual = [job['template'] for job in job_list] | 326 | actual = [job['template'] for job in job_list] |
1047 | @@ -333,12 +333,39 @@ | |||
1048 | 333 | 'raring-i386': {'node_label': 'pbuilder'}}} | 333 | 'raring-i386': {'node_label': 'pbuilder'}}} |
1049 | 334 | expected = 'foo-raring-amd64-ci,foo-raring-i386-ci' | 334 | expected = 'foo-raring-amd64-ci,foo-raring-i386-ci' |
1050 | 335 | job_list = [] | 335 | job_list = [] |
1052 | 336 | self.update_ci.generate_jobs(job_list, 'foo', 'ci', config, | 336 | self.update_ci.generate_jobs(job_list, 'foo', 'ci', 'ci', config, |
1053 | 337 | self.job_template, self.build_template, | 337 | self.job_template, self.build_template, |
1054 | 338 | {}) | 338 | {}) |
1055 | 339 | actual = job_list[2]['ctx']['builder_list'] | 339 | actual = job_list[2]['ctx']['builder_list'] |
1056 | 340 | self.assertEqual(expected, actual) | 340 | self.assertEqual(expected, actual) |
1057 | 341 | 341 | ||
1058 | 342 | def test_generate_rebuild_builder_list(self): | ||
1059 | 343 | config = { | ||
1060 | 344 | 'configurations': { | ||
1061 | 345 | 'raring-amd64': {'node_label': 'pbuilder'}, | ||
1062 | 346 | 'raring-i386': {'node_label': 'pbuilder'}}} | ||
1063 | 347 | expected = 'foo-raring-amd64-autolanding,foo-raring-i386-autolanding' | ||
1064 | 348 | job_list = [] | ||
1065 | 349 | self.update_ci.generate_jobs(job_list, 'foo', 'rebuild', 'autolanding', | ||
1066 | 350 | config, self.job_template, | ||
1067 | 351 | self.build_template, {}) | ||
1068 | 352 | actual = job_list[0]['ctx']['builder_list'] | ||
1069 | 353 | self.assertEqual(expected, actual) | ||
1070 | 354 | |||
1071 | 355 | def test_generate_rebuild_joblist(self): | ||
1072 | 356 | config = { | ||
1073 | 357 | 'configurations': { | ||
1074 | 358 | 'raring-amd64': {'node_label': 'pbuilder'}, | ||
1075 | 359 | 'raring-i386': {'node_label': 'pbuilder'}}} | ||
1076 | 360 | expected = 'foo-rebuild' | ||
1077 | 361 | job_list = [] | ||
1078 | 362 | self.update_ci.generate_jobs(job_list, 'foo', 'rebuild', 'autolanding', | ||
1079 | 363 | config, self.job_template, | ||
1080 | 364 | self.build_template, {}) | ||
1081 | 365 | actual = job_list[0]['name'] | ||
1082 | 366 | self.assertEqual(expected, actual) | ||
1083 | 367 | self.assertEqual(1, len(job_list)) | ||
1084 | 368 | |||
1085 | 342 | 369 | ||
1086 | 343 | class TestUpdateJenkins(TestCase): | 370 | class TestUpdateJenkins(TestCase): |
1087 | 344 | def setUp(self): | 371 | def setUp(self): |
1088 | @@ -415,11 +442,13 @@ | |||
1089 | 415 | 'landing_job': 'generic-land'}, | 442 | 'landing_job': 'generic-land'}, |
1090 | 416 | 'projects': { | 443 | 'projects': { |
1091 | 417 | 'autopilot': { | 444 | 'autopilot': { |
1092 | 445 | 'rebuild_template': 'rebuild-config.xml.tmpl', | ||
1093 | 418 | 'team': 'Autopilot Team', | 446 | 'team': 'Autopilot Team', |
1094 | 419 | 'contact_email': 'address@email', | 447 | 'contact_email': 'address@email', |
1095 | 420 | 'distributions': 'raring,quantal,precise', | 448 | 'distributions': 'raring,quantal,precise', |
1096 | 421 | 'ppa_target': 'ppa:autopilot/ppa', | 449 | 'ppa_target': 'ppa:autopilot/ppa', |
1097 | 422 | 'hooks': 'parent-hook', | 450 | 'hooks': 'parent-hook', |
1098 | 451 | 'rebuild': 'autopilot-qt , autopilot-gtk', | ||
1099 | 423 | 'autolanding': { | 452 | 'autolanding': { |
1100 | 424 | 'postbuild_job': 'autopilot-docs-upload', | 453 | 'postbuild_job': 'autopilot-docs-upload', |
1101 | 425 | 'archive_artifacts': '**/output/*deb', | 454 | 'archive_artifacts': '**/output/*deb', |
1102 | @@ -430,7 +459,13 @@ | |||
1103 | 430 | 'raring-i386': { | 459 | 'raring-i386': { |
1104 | 431 | 'template': 'autopilot-config.xml.tmpl', | 460 | 'template': 'autopilot-config.xml.tmpl', |
1105 | 432 | 'node_label': 'pbuilder'}}}}, | 461 | 'node_label': 'pbuilder'}}}}, |
1107 | 433 | 'xpathselect': {}}}} | 462 | 'autopilot-gtk': { |
1108 | 463 | 'rebuild_template': 'rebuild-config.xml.tmpl', | ||
1109 | 464 | 'target_branch': 'lp:autopilot-gtk/1.0'}, | ||
1110 | 465 | 'autopilot-qt': { | ||
1111 | 466 | 'rebuild_template': 'rebuild-config.xml.tmpl'}, | ||
1112 | 467 | 'xpathselect': { | ||
1113 | 468 | 'rebuild': 'autopilot,another-project-rebuild'}}}} | ||
1114 | 434 | 469 | ||
1115 | 435 | def setUp(self): | 470 | def setUp(self): |
1116 | 436 | self.update_ci = UpdateCi() | 471 | self.update_ci = UpdateCi() |
1117 | @@ -447,12 +482,27 @@ | |||
1118 | 447 | 'autopilot-raring-armhf-autolanding', | 482 | 'autopilot-raring-armhf-autolanding', |
1119 | 448 | 'autopilot-raring-i386-autolanding', | 483 | 'autopilot-raring-i386-autolanding', |
1120 | 449 | 'autopilot-autolanding', | 484 | 'autopilot-autolanding', |
1121 | 485 | 'autopilot-rebuild', | ||
1122 | 486 | 'autopilot-qt-raring-amd64-ci', | ||
1123 | 487 | 'autopilot-qt-raring-armhf-ci', | ||
1124 | 488 | 'autopilot-qt-ci', | ||
1125 | 489 | 'autopilot-qt-raring-amd64-autolanding', | ||
1126 | 490 | 'autopilot-qt-raring-armhf-autolanding', | ||
1127 | 491 | 'autopilot-qt-autolanding', | ||
1128 | 492 | 'autopilot-qt-rebuild', | ||
1129 | 450 | 'xpathselect-raring-amd64-ci', | 493 | 'xpathselect-raring-amd64-ci', |
1130 | 451 | 'xpathselect-raring-armhf-ci', | 494 | 'xpathselect-raring-armhf-ci', |
1131 | 452 | 'xpathselect-ci', | 495 | 'xpathselect-ci', |
1132 | 453 | 'xpathselect-raring-amd64-autolanding', | 496 | 'xpathselect-raring-amd64-autolanding', |
1133 | 454 | 'xpathselect-raring-armhf-autolanding', | 497 | 'xpathselect-raring-armhf-autolanding', |
1135 | 455 | 'xpathselect-autolanding'] | 498 | 'xpathselect-autolanding', |
1136 | 499 | 'autopilot-gtk-1.0-raring-amd64-ci', | ||
1137 | 500 | 'autopilot-gtk-1.0-raring-armhf-ci', | ||
1138 | 501 | 'autopilot-gtk-1.0-ci', | ||
1139 | 502 | 'autopilot-gtk-1.0-raring-amd64-autolanding', | ||
1140 | 503 | 'autopilot-gtk-1.0-raring-armhf-autolanding', | ||
1141 | 504 | 'autopilot-gtk-1.0-autolanding', | ||
1142 | 505 | 'autopilot-gtk-1.0-rebuild'] | ||
1143 | 456 | actual_name_list = [job['name'] for job in self.job_list] | 506 | actual_name_list = [job['name'] for job in self.job_list] |
1144 | 457 | self.assertEqual(expected_name_list, actual_name_list) | 507 | self.assertEqual(expected_name_list, actual_name_list) |
1145 | 458 | 508 | ||
1146 | @@ -464,12 +514,27 @@ | |||
1147 | 464 | 'pbuilder-config.xml.tmpl', | 514 | 'pbuilder-config.xml.tmpl', |
1148 | 465 | 'autopilot-config.xml.tmpl', | 515 | 'autopilot-config.xml.tmpl', |
1149 | 466 | 'autolanding-config.xml.tmpl', | 516 | 'autolanding-config.xml.tmpl', |
1156 | 467 | 'pbuilder-config.xml.tmpl', | 517 | 'rebuild-config.xml.tmpl', |
1157 | 468 | 'pbuilder-config.xml.tmpl', | 518 | 'pbuilder-config.xml.tmpl', |
1158 | 469 | 'ci-config.xml.tmpl', | 519 | 'pbuilder-config.xml.tmpl', |
1159 | 470 | 'pbuilder-config.xml.tmpl', | 520 | 'ci-config.xml.tmpl', |
1160 | 471 | 'pbuilder-config.xml.tmpl', | 521 | 'pbuilder-config.xml.tmpl', |
1161 | 472 | 'autolanding-config.xml.tmpl'] | 522 | 'pbuilder-config.xml.tmpl', |
1162 | 523 | 'autolanding-config.xml.tmpl', | ||
1163 | 524 | 'rebuild-config.xml.tmpl', | ||
1164 | 525 | 'pbuilder-config.xml.tmpl', | ||
1165 | 526 | 'pbuilder-config.xml.tmpl', | ||
1166 | 527 | 'ci-config.xml.tmpl', | ||
1167 | 528 | 'pbuilder-config.xml.tmpl', | ||
1168 | 529 | 'pbuilder-config.xml.tmpl', | ||
1169 | 530 | 'autolanding-config.xml.tmpl', | ||
1170 | 531 | 'pbuilder-config.xml.tmpl', | ||
1171 | 532 | 'pbuilder-config.xml.tmpl', | ||
1172 | 533 | 'ci-config.xml.tmpl', | ||
1173 | 534 | 'pbuilder-config.xml.tmpl', | ||
1174 | 535 | 'pbuilder-config.xml.tmpl', | ||
1175 | 536 | 'autolanding-config.xml.tmpl', | ||
1176 | 537 | 'rebuild-config.xml.tmpl'] | ||
1177 | 473 | actual_template_list = [job['template'] for job in self.job_list] | 538 | actual_template_list = [job['template'] for job in self.job_list] |
1178 | 474 | self.assertEqual(expected_template_list, actual_template_list) | 539 | self.assertEqual(expected_template_list, actual_template_list) |
1179 | 475 | 540 | ||
1180 | @@ -498,6 +563,8 @@ | |||
1181 | 498 | self.assertEqual(job['ctx']['priority'], 10000) | 563 | self.assertEqual(job['ctx']['priority'], 10000) |
1182 | 499 | elif job['name'].endswith('autolanding'): | 564 | elif job['name'].endswith('autolanding'): |
1183 | 500 | self.assertEqual(job['ctx']['priority'], 1000) | 565 | self.assertEqual(job['ctx']['priority'], 1000) |
1184 | 566 | elif job['name'].endswith('rebuild'): | ||
1185 | 567 | self.assertEqual(job['ctx']['priority'], 1000) | ||
1186 | 501 | else: | 568 | else: |
1187 | 502 | self.assertEqual(job['ctx']['priority'], 100) | 569 | self.assertEqual(job['ctx']['priority'], 100) |
1188 | 503 | 570 | ||
1189 | @@ -554,6 +621,21 @@ | |||
1190 | 554 | # Make sure no assertion groups were missed | 621 | # Make sure no assertion groups were missed |
1191 | 555 | self.assertEqual(count, 3) | 622 | self.assertEqual(count, 3) |
1192 | 556 | 623 | ||
1193 | 624 | def test_rebuild_list(self): | ||
1194 | 625 | count = 0 | ||
1195 | 626 | for job in self.job_list: | ||
1196 | 627 | if job['name'] == 'xpathselect-autolanding': | ||
1197 | 628 | self.assertEqual(job['ctx']['rebuild'], | ||
1198 | 629 | 'autopilot-rebuild,another-project-rebuild') | ||
1199 | 630 | count += 1 | ||
1200 | 631 | if job['name'] == 'autopilot-autolanding': | ||
1201 | 632 | self.assertEqual(job['ctx']['rebuild'], | ||
1202 | 633 | 'autopilot-qt-rebuild,' | ||
1203 | 634 | 'autopilot-gtk-1.0-rebuild') | ||
1204 | 635 | count += 1 | ||
1205 | 636 | # Make sure no assertion groups were missed | ||
1206 | 637 | self.assertEqual(count, 2) | ||
1207 | 638 | |||
1208 | 557 | def test_target_project(self): | 639 | def test_target_project(self): |
1209 | 558 | job_list = [] | 640 | job_list = [] |
1210 | 559 | target_project = 'autopilot' | 641 | target_project = 'autopilot' |
1211 | @@ -565,7 +647,8 @@ | |||
1212 | 565 | 'autopilot-raring-amd64-autolanding', | 647 | 'autopilot-raring-amd64-autolanding', |
1213 | 566 | 'autopilot-raring-armhf-autolanding', | 648 | 'autopilot-raring-armhf-autolanding', |
1214 | 567 | 'autopilot-raring-i386-autolanding', | 649 | 'autopilot-raring-i386-autolanding', |
1216 | 568 | 'autopilot-autolanding'] | 650 | 'autopilot-autolanding', |
1217 | 651 | 'autopilot-rebuild'] | ||
1218 | 569 | actual_name_list = [job['name'] for job in job_list] | 652 | actual_name_list = [job['name'] for job in job_list] |
1219 | 570 | self.assertEqual(expected_name_list, actual_name_list) | 653 | self.assertEqual(expected_name_list, actual_name_list) |
1220 | 571 | 654 |
PASSED: Continuous integration, rev:297 jenkins. qa.ubuntu. com/job/ cupstream2distr o-config- ci/256/ jenkins. qa.ubuntu. com/job/ cupstream2distr o-config- saucy-amd64- ci/54
http://
Executed test runs:
SUCCESS: http://
Click here to trigger a rebuild: s-jenkins: 8080/job/ cupstream2distr o-config- ci/256/ rebuild
http://