Merge lp:~canonical-ci-engineering/ubiquity/ubiquity-ci-testing into lp:ubiquity

Proposed by Paul Larson
Status: Merged
Approved by: Colin Watson
Approved revision: 6271
Merged at revision: 6275
Proposed branch: lp:~canonical-ci-engineering/ubiquity/ubiquity-ci-testing
Merge into: lp:ubiquity
Diff against target: 208 lines (+45/-44)
10 files modified
autopilot/README.md (+3/-1)
autopilot/ubiquity-autopilot-runner/jenkins/config/edubuntu.cfg (+0/-8)
autopilot/ubiquity-autopilot-runner/jenkins/config/lubuntu.cfg (+0/-8)
autopilot/ubiquity-autopilot-runner/jenkins/config/ubuntu-gnome.cfg (+0/-10)
autopilot/ubiquity-autopilot-runner/jenkins/config/ubuntu.cfg (+1/-1)
autopilot/ubiquity-autopilot-runner/jenkins/config/xubuntu.cfg (+0/-8)
autopilot/ubiquity-autopilot-runner/jenkins/publish2jenkins (+3/-1)
autopilot/ubiquity-autopilot-runner/jenkins/templates/ubiquity_ap-flavor_devel_daily-download.xml (+19/-4)
autopilot/ubiquity-autopilot-runner/jenkins/templates/ubiquity_ap-flavor_devel_daily-run.xml (+13/-0)
autopilot/ubiquity-autopilot-runner/jenkins/templates/ubiquity_ap-flavor_devel_daily-test.xml (+6/-3)
To merge this branch: bzr merge lp:~canonical-ci-engineering/ubiquity/ubiquity-ci-testing
Reviewer Review Type Date Requested Status
Colin Watson (community) Approve
Review via email: mp+251032@code.launchpad.net

Description of the change

Here are some changes and updates that we needed in order to get the autopilot tests for ubiquity up and running again

To post a comment you must log in.
Revision history for this message
Colin Watson (cjwatson) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'autopilot/README.md'
2--- autopilot/README.md 2013-11-22 14:29:50 +0000
3+++ autopilot/README.md 2015-02-26 03:44:26 +0000
4@@ -116,6 +116,7 @@
5 handling to run multiple time in parallel.
6
7 $ bzr cat lp:ubuntu-server-iso-testing/download-latest-test-iso.py > ~/bin/download-latest-test-iso.py
8+ $ chmod 755 ~/bin/download-latest-test-iso.py
9
10 * Create the following links in ~/bin/
11
12@@ -138,7 +139,8 @@
13
14 * Create the same symlinks than symlinks in `/home/ubiquity/bin/`
15
16- $ find /home/ubiquity/bin/ ! -type d -exec ln -s {} $HOME/bin/
17+ $ find /home/ubiquity/bin/ ! -type d -exec ln -s {} $HOME/bin/ \;
18+ $ ln -s /home/ubiquity/ubiquity/autopilot/ubiquity-autopilot-runner/ ubiquity-autopilot-runner
19
20 * **Logout** from user jenkins
21
22
23=== removed file 'autopilot/ubiquity-autopilot-runner/jenkins/config/edubuntu.cfg'
24--- autopilot/ubiquity-autopilot-runner/jenkins/config/edubuntu.cfg 2013-11-09 10:36:16 +0000
25+++ autopilot/ubiquity-autopilot-runner/jenkins/config/edubuntu.cfg 1970-01-01 00:00:00 +0000
26@@ -1,8 +0,0 @@
27-node: rabisu
28-flavor: edubuntu
29-variant: dvd
30-cdimageurl: http://cdimage.ubuntu.com/edubuntu/dvd/pending/
31-testcases:
32- - test_custom_install
33- - test_english_default
34- - test_nonenglish_default
35
36=== removed file 'autopilot/ubiquity-autopilot-runner/jenkins/config/lubuntu.cfg'
37--- autopilot/ubiquity-autopilot-runner/jenkins/config/lubuntu.cfg 2013-11-09 10:36:16 +0000
38+++ autopilot/ubiquity-autopilot-runner/jenkins/config/lubuntu.cfg 1970-01-01 00:00:00 +0000
39@@ -1,8 +0,0 @@
40-node: rabisu
41-flavor: lubuntu
42-variant: desktop
43-cdimageurl: http://cdimage.ubuntu.com/lubuntu/daily-live/pending/
44-testcases:
45- - test_custom_install
46- - test_english_default
47- - test_nonenglish_default
48
49=== removed file 'autopilot/ubiquity-autopilot-runner/jenkins/config/ubuntu-gnome.cfg'
50--- autopilot/ubiquity-autopilot-runner/jenkins/config/ubuntu-gnome.cfg 2013-11-09 10:36:16 +0000
51+++ autopilot/ubiquity-autopilot-runner/jenkins/config/ubuntu-gnome.cfg 1970-01-01 00:00:00 +0000
52@@ -1,10 +0,0 @@
53-node: rabisu
54-flavor: ubuntu-gnome
55-variant: desktop
56-cdimageurl: http://cdimage.ubuntu.com/ubuntu-gnome/daily-live/pending/
57-testcases:
58- - test_custom_install
59- - test_english_default
60- - test_english_lvm
61- - test_english_encrypt_lvm
62- - test_nonenglish_default
63
64=== modified file 'autopilot/ubiquity-autopilot-runner/jenkins/config/ubuntu.cfg'
65--- autopilot/ubiquity-autopilot-runner/jenkins/config/ubuntu.cfg 2014-03-28 15:25:31 +0000
66+++ autopilot/ubiquity-autopilot-runner/jenkins/config/ubuntu.cfg 2015-02-26 03:44:26 +0000
67@@ -1,4 +1,4 @@
68-node: rabisu
69+node: master
70 flavor: ubuntu
71 variant: desktop
72 cdimageurl: http://cdimage.ubuntu.com/daily-live/pending/
73
74=== removed file 'autopilot/ubiquity-autopilot-runner/jenkins/config/xubuntu.cfg'
75--- autopilot/ubiquity-autopilot-runner/jenkins/config/xubuntu.cfg 2013-11-09 10:36:16 +0000
76+++ autopilot/ubiquity-autopilot-runner/jenkins/config/xubuntu.cfg 1970-01-01 00:00:00 +0000
77@@ -1,8 +0,0 @@
78-node: rabisu
79-flavor: xubuntu
80-variant: desktop
81-cdimageurl: http://cdimage.ubuntu.com/xubuntu/daily-live/pending/
82-testcases:
83- - test_custom_install
84- - test_english_default
85- - test_nonenglish_default
86
87=== modified file 'autopilot/ubiquity-autopilot-runner/jenkins/publish2jenkins'
88--- autopilot/ubiquity-autopilot-runner/jenkins/publish2jenkins 2013-11-08 09:25:04 +0000
89+++ autopilot/ubiquity-autopilot-runner/jenkins/publish2jenkins 2015-02-26 03:44:26 +0000
90@@ -27,7 +27,7 @@
91 TEMPLATE_DIR=$BASEDIR/templates
92 UPDATE_CMD=$BASEDIR/update-jenkins-job
93 UPDATE_OPTS="-U"
94-SERVER=drude
95+SERVER=${SERVER:-drude}
96
97 on_exit() {
98 # Do some cleanup
99@@ -40,6 +40,7 @@
100 for cfg in $CONFIG_DIR/*cfg; do
101 flavor=$(grep ^flavor $cfg |awk '{print $2}')
102 variant=$(grep ^variant $cfg |awk '{print $2}')
103+ node=$(grep ^node $cfg |awk '{print $2}')
104
105 echo "I: Updating flavor '$flavor'"
106 # Download jobs
107@@ -65,6 +66,7 @@
108 flavor: $flavor
109 variant: $(grep ^variant $cfg |cut -d: -f2)
110 testcase: $testcase
111+node: $node
112 EOF
113 echo "I: Updating testcase '$testcase'"
114 $UPDATE_CMD $UPDATE_OPTS -J $SERVER \
115
116=== modified file 'autopilot/ubiquity-autopilot-runner/jenkins/templates/ubiquity_ap-flavor_devel_daily-download.xml'
117--- autopilot/ubiquity-autopilot-runner/jenkins/templates/ubiquity_ap-flavor_devel_daily-download.xml 2013-11-11 11:52:51 +0000
118+++ autopilot/ubiquity-autopilot-runner/jenkins/templates/ubiquity_ap-flavor_devel_daily-download.xml 2015-02-26 03:44:26 +0000
119@@ -31,10 +31,25 @@
120 <blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
121 <blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
122 <triggers class="vector">
123- <com.redfin.hudson.UrlChangeTrigger>
124- <spec></spec>
125- <url>{{ cdimageurl }}/MD5SUMS</url>
126- </com.redfin.hudson.UrlChangeTrigger>
127+ <org.jenkinsci.plugins.urltrigger.URLTrigger plugin="urltrigger@0.37">
128+ <spec>*/15 * * * *</spec>
129+ <entries>
130+ <org.jenkinsci.plugins.urltrigger.URLTriggerEntry>
131+ <url>{{ cdimageurl }}/MD5SUMS</url>
132+ <proxyActivated>false</proxyActivated>
133+ <checkStatus>false</checkStatus>
134+ <statusCode>200</statusCode>
135+ <timeout>300</timeout>
136+ <checkETag>false</checkETag>
137+ <checkLastModificationDate>false</checkLastModificationDate>
138+ <inspectingContent>true</inspectingContent>
139+ <contentTypes>
140+ <org.jenkinsci.plugins.urltrigger.content.SimpleContentType/>
141+ </contentTypes>
142+ </org.jenkinsci.plugins.urltrigger.URLTriggerEntry>
143+ </entries>
144+ <labelRestriction>false</labelRestriction>
145+ </org.jenkinsci.plugins.urltrigger.URLTrigger>
146 </triggers>
147 <concurrentBuild>false</concurrentBuild>
148 <builders>
149
150=== modified file 'autopilot/ubiquity-autopilot-runner/jenkins/templates/ubiquity_ap-flavor_devel_daily-run.xml'
151--- autopilot/ubiquity-autopilot-runner/jenkins/templates/ubiquity_ap-flavor_devel_daily-run.xml 2013-12-20 08:15:37 +0000
152+++ autopilot/ubiquity-autopilot-runner/jenkins/templates/ubiquity_ap-flavor_devel_daily-run.xml 2015-02-26 03:44:26 +0000
153@@ -30,6 +30,19 @@
154 <triggers class="vector"/>
155 <concurrentBuild>false</concurrentBuild>
156 <builders>
157+ <hudson.tasks.Shell>
158+ <command>#!/bin/bash
159+
160+BRANCH=&quot;lp:ubiquity&quot;
161+BZRDIR=`echo &quot;$BRANCH&quot; | awk -F: &apos;{ print $(NF) }&apos;`
162+if [ -d $JENKINS_HOME/$BZRDIR ]; then
163+ cd $JENKINS_HOME/$BZRDIR
164+ bzr pull
165+else
166+ bzr branch ${BRANCH} $JENKINS_HOME/${BZRDIR}
167+fi
168+</command>
169+ </hudson.tasks.Shell>
170 <hudson.plugins.parameterizedtrigger.TriggerBuilder>
171 <configs>
172 <hudson.plugins.parameterizedtrigger.BlockableBuildTriggerConfig>
173
174=== modified file 'autopilot/ubiquity-autopilot-runner/jenkins/templates/ubiquity_ap-flavor_devel_daily-test.xml'
175--- autopilot/ubiquity-autopilot-runner/jenkins/templates/ubiquity_ap-flavor_devel_daily-test.xml 2013-12-20 08:15:37 +0000
176+++ autopilot/ubiquity-autopilot-runner/jenkins/templates/ubiquity_ap-flavor_devel_daily-test.xml 2015-02-26 03:44:26 +0000
177@@ -40,7 +40,7 @@
178 <hudson.matrix.LabelAxis>
179 <name>label</name>
180 <values>
181- <string>rabisu</string>
182+ <string>{{ node }}</string>
183 </values>
184 </hudson.matrix.LabelAxis>
185 </axes>
186@@ -49,9 +49,12 @@
187 <command>#!/bin/bash
188 [ -n &quot;$WORKSPACE&quot; ] &amp;&amp; rm -Rf $WORKSPACE/*
189
190+BRANCH=&quot;lp:ubiquity&quot;
191+BZRDIR=`echo &quot;$BRANCH&quot; | awk -F: &apos;{ print $(NF) }&apos;`
192+
193 RELEASE=$(distro-info -d||distro-info -s)
194 VARIANT={{ variant }}
195-ISO=$JENKINS_HOME/iso/{{ flavor }}/${RELEASE}-${VARIANT}-${ARCH}.iso
196+ISO=$JENKINS_HOME/isos/{{ flavor }}/${RELEASE}-${VARIANT}-${ARCH}.iso
197 TESTNAME={{ testcase }}
198
199 if [ ! -f &quot;$ISO&quot; ]; then
200@@ -61,7 +64,7 @@
201
202 echo &quot;I: Starting test $TESTNAME with image $ISO&quot;
203 FULLNAME=&quot;ubiquity_autopilot_tests.tests.${TESTNAME}&quot;
204-$JENKINS_HOME/ubiquity-autopilot-runner/run-ubiquity-test -t $FULLNAME $ISO</command>
205+$JENKINS_HOME/$BZRDIR/autopilot/ubiquity-autopilot-runner/run-ubiquity-test -t $FULLNAME $ISO</command>
206 </hudson.tasks.Shell>
207 </builders>
208 <publishers>

Subscribers

People subscribed via source and target branches

to status/vote changes: