Merge lp:~canonical-platform-qa/qa-jenkins-jobs/ust-mp-review-jobs into lp:qa-jenkins-jobs

Proposed by Allan LeSage
Status: Merged
Approved by: Max Brustkern
Approved revision: 175
Merged at revision: 162
Proposed branch: lp:~canonical-platform-qa/qa-jenkins-jobs/ust-mp-review-jobs
Merge into: lp:qa-jenkins-jobs
Prerequisite: lp:~sbaldassin/qa-jenkins-jobs/run_tests
Diff against target: 185 lines (+126/-4)
4 files modified
jobs/mp-ci-autoland/ci-jobs.yaml (+7/-4)
jobs/ubuntu-system-tests/ci-jobs.yaml (+103/-0)
jobs/ubuntu-system-tests/trigger-ust-pre-builder.sh (+14/-0)
scripts/ubuntu-system-tests/get_test_to_run.sh (+2/-0)
To merge this branch: bzr merge lp:~canonical-platform-qa/qa-jenkins-jobs/ust-mp-review-jobs
Reviewer Review Type Date Requested Status
Max Brustkern (community) Approve
platform-qa-bot continuous-integration Approve
Santiago Baldassin (community) Approve
Review via email: mp+301227@code.launchpad.net

Commit message

Add Jenkins jobs for ust MP reviews.

Description of the change

Add the Jenkins jobs to do ubuntu-system-tests CI, using sbalda's script to glean tests from MPs.

To post a comment you must log in.
Revision history for this message
platform-qa-bot (platform-qa-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
Santiago Baldassin (sbaldassin) wrote :

Looks good to me but let's wait until Max takes a look

review: Approve
Revision history for this message
Max Brustkern (nuclearbob) wrote :

I'm slightly concerned that if we need to make changes to the main autolanding stuff in the future, this'll get missed. Can we maybe have a comment in the main ci-jobs.yaml noting that there exists a separate u-s-t ci-jobs.yaml, and changes here should be reflected there as well? I think it could be a very long time before that happens, but that's probably just long enough for us to forget we need it. :) One diff comment also.

168. By Allan LeSage

Merge trunk.

Revision history for this message
platform-qa-bot (platform-qa-bot) wrote :
review: Approve (continuous-integration)
169. By Allan LeSage

Remove fake merge proposal.

170. By Allan LeSage

Adapt to sbalda's changes.

171. By Allan LeSage

Merge sbalda's changes, remove QA_JENKINS_JOBS hardcode.

Revision history for this message
platform-qa-bot (platform-qa-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
Max Brustkern (nuclearbob) wrote :

I'd still like to see a note in the main ci-jobs.yaml file about how there's a separate file now and changes may need to be propagated to it as well.

Revision history for this message
Allan LeSage (allanlesage) wrote :

Haven't forgotten about you Max ;) , waiting for sbalda's changes to land and then will give another test.

172. By Allan LeSage

Revert a couple of necessary changes temporarily.

173. By Allan LeSage

Merge new sbalda changes, including working from MP instead of landing candidate.

174. By Allan LeSage

Restore changes, having landed sbalda's code.

Revision history for this message
platform-qa-bot (platform-qa-bot) wrote :
review: Approve (continuous-integration)
175. By Allan LeSage

Add descriptive notes for tracking CI templates to ust, restore a QA_JENKINS_JOBS_BRANCH setting.

Revision history for this message
platform-qa-bot (platform-qa-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
Allan LeSage (allanlesage) wrote :

100% ready for you Max, you can see that it's invoking the job properly here: https://platform-qa-jenkins.ubuntu.com/job/ust_rc-proposed_krillin_sanity_test/60/parameters/ .

Revision history for this message
Max Brustkern (nuclearbob) wrote :

Awesome! Should be good to go.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'jobs/mp-ci-autoland/ci-jobs.yaml'
2--- jobs/mp-ci-autoland/ci-jobs.yaml 2016-06-16 20:25:29 +0000
3+++ jobs/mp-ci-autoland/ci-jobs.yaml 2016-08-02 21:55:58 +0000
4@@ -15,6 +15,11 @@
5 # You should have received a copy of the GNU General Public License along
6 # with this program. If not, see <http://www.gnu.org/licenses/>.
7
8+
9+# NOTE that a separate CI workflow and Jenkins jobs exist for
10+# ubuntu-system-tests, using templates found here--changes made here
11+# should be tested there as well, as noted below.
12+
13 - builder:
14 name: create-chroot
15 # This and the update-chroot builder share a lot of code. TODO: Dedupe/be
16@@ -197,8 +202,6 @@
17 # Must be projects lp:<name>
18 - autopilot
19 - auto-upgrade-testing
20- - ubuntu-system-tests:
21- hooks: 'H05set_package_version H10strip_native_depends D09add_ppa~canonical-platform-qa~ppa'
22 - qa-jenkins-jobs
23 dist:
24 - wily
25@@ -231,6 +234,7 @@
26 name: ci_revision
27 description: 'The revision of the processed branch'
28
29+# NOTE that this template is employed in jobs/ubuntu-system-tests/ci-jobs.yaml
30 - job-template:
31 name: 'trigger-{target_project}-ci'
32 description: |
33@@ -358,8 +362,6 @@
34 # Must be lp:<name>
35 - autopilot
36 - auto-upgrade-testing
37- - ubuntu-system-tests:
38- hooks: 'H05set_package_version H10strip_native_depends D09add_ppa~canonical-platform-qa~ppa'
39 - qa-jenkins-jobs
40
41 - job-template:
42@@ -426,6 +428,7 @@
43 ci_merge_proposal=$merge_proposal
44 ci_revision=$candidate_revision
45
46+# NOTE that this template is employed in jobs/ubuntu-system-tests/ci-jobs.yaml
47 - job-template:
48 name: 'trigger-{target_project}-autoland'
49 description: |
50
51=== added file 'jobs/ubuntu-system-tests/ci-jobs.yaml'
52--- jobs/ubuntu-system-tests/ci-jobs.yaml 1970-01-01 00:00:00 +0000
53+++ jobs/ubuntu-system-tests/ci-jobs.yaml 2016-08-02 21:55:58 +0000
54@@ -0,0 +1,103 @@
55+# vim: sw=4 ts=4 et
56+
57+# QA Jenkins Jobs
58+# Copyright 2016 Canonical Ltd.
59+
60+# This program is free software: you can redistribute it and/or modify it
61+# under the terms of the GNU General Public License version 3, as published
62+# by the Free Software Foundation.
63+
64+# This program is distributed in the hope that it will be useful, but
65+# WITHOUT ANY WARRANTY; without even the implied warranties of
66+# MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
67+# PURPOSE. See the GNU General Public License for more details.
68+
69+# You should have received a copy of the GNU General Public License along
70+# with this program. If not, see <http://www.gnu.org/licenses/>.
71+
72+
73+- project:
74+ name: ubuntu-system-tests-ci
75+ target_project:
76+ - ubuntu-system-tests
77+ jobs:
78+ - 'ubuntu-system-tests-ci-test'
79+ - 'ubuntu-system-tests-autoland'
80+ # from jobs/mp-ci-autoland/ci-jobs.yaml
81+ - 'trigger-{target_project}-ci'
82+ - 'trigger-{target_project}-autoland'
83+
84+- job:
85+ name: 'ubuntu-system-tests-ci-test'
86+ description: |
87+ Build packages and run tests for an ubuntu-system-tests merge proposal
88+ node: 'jenkins-slave-2'
89+ # This token is the string that was setup for the launchpad bot.
90+ auth-token: BUILD_ME
91+ builders:
92+ - trigger-deb-builders:
93+ landing_candidate: {landing_candidate}
94+ target_branch: 'lp:ubuntu-system-tests'
95+ hooks: 'H05set_package_version H10strip_native_depends D09add_ppa~canonical-platform-qa~ppa'
96+ parallelism: 1
97+ - trigger-ust-pre-builder
98+ - trigger-ust-builder
99+ - upcopy-i386-from-downstream
100+ - upcopy-amd64-from-downstream
101+ - trigger-generic-update-mp
102+ publishers:
103+ - collect-debs
104+ - trigger-generic-update-mp-failed
105+ parameters:
106+ - string:
107+ name: landing_candidate
108+ description: The launchpad branch to process
109+ - string:
110+ name: candidate_revision
111+ description: The revision of the branch
112+ - string:
113+ name: merge_proposal
114+ description: The merge proposal to process
115+
116+- job-template:
117+ name: 'ubuntu-system-tests-autoland'
118+ description: |
119+ Gets triggered when a MP exists that meets autoland criteria. Merges with
120+ ubuntu-system-tests trunk.
121+ node: 'jenkins-slave-2'
122+ # This token is the string that was setup for the launchpad bot.
123+ auth-token: BUILD_ME
124+ parameters:
125+ - string:
126+ name: 'landing_candidate'
127+ description: 'The launchpad branch to process'
128+ - string:
129+ name: 'candidate_revision'
130+ description: 'The revision of the branch'
131+ - string:
132+ name: 'merge_proposal'
133+ description: 'The merge proposal to process'
134+ builders:
135+ - trigger-deb-builders:
136+ landing_candidate: {landing_candidate}
137+ target_branch: 'lp:ubuntu-system-tests'
138+ hooks: 'H05set_package_version H10strip_native_depends D09add_ppa~canonical-platform-qa~ppa'
139+ parallelism: 1
140+ - 'trigger-generic-land-mp'
141+ publishers:
142+ - 'trigger-generic-land-mp-failed'
143+
144+- builder:
145+ name: trigger-ust-pre-builder
146+ builders:
147+ - shell:
148+ !include-raw: trigger-ust-pre-builder.sh
149+
150+- builder:
151+ name: trigger-ust-builder
152+ builders:
153+ - trigger-builds:
154+ - project:
155+ - 'ust_rc-proposed_krillin_sanity_test'
156+ block: true
157+ property-file: $WORKSPACE/ust-parameters.txt
158
159=== added file 'jobs/ubuntu-system-tests/trigger-ust-pre-builder.sh'
160--- jobs/ubuntu-system-tests/trigger-ust-pre-builder.sh 1970-01-01 00:00:00 +0000
161+++ jobs/ubuntu-system-tests/trigger-ust-pre-builder.sh 2016-08-02 21:55:58 +0000
162@@ -0,0 +1,14 @@
163+
164+QA_JENKINS_JOBS_BRANCH=lp:qa-jenkins-jobs
165+rm -rf qa-jenkins-jobs
166+bzr branch $QA_JENKINS_JOBS_BRANCH qa-jenkins-jobs
167+
168+TESTS_TO_RUN=$(python qa-jenkins-jobs/scripts/ubuntu-system-tests/get_tests_to_run.py -mpu "$merge_proposal" 2>&1)
169+echo $TESTS_TO_RUN
170+
171+rm -f ${WORKSPACE}/ust-parameters.txt
172+export PROPERTIES_FILE_PATH=${WORKSPACE}/ust-parameters.txt
173+cat >> $PROPERTIES_FILE_PATH <<EOF
174+TESTS_TO_RUN=$TESTS_TO_RUN
175+EOF
176+cat $PROPERTIES_FILE_PATH
177
178=== added file 'scripts/ubuntu-system-tests/get_test_to_run.sh'
179--- scripts/ubuntu-system-tests/get_test_to_run.sh 1970-01-01 00:00:00 +0000
180+++ scripts/ubuntu-system-tests/get_test_to_run.sh 2016-08-02 21:55:58 +0000
181@@ -0,0 +1,2 @@
182+#!/bin/sh
183+TESTS_TO_RUN=$(python qa-jenkins-jobs/scripts/ubuntu-system-tests/get_tests_to_run.py -mpu "$landing_candidate" 2>&1)
184
185=== modified file 'scripts/ubuntu-system-tests/get_tests_to_run.py' (properties changed: +x to -x)

Subscribers

People subscribed via source and target branches