Merge lp:~canonical-platform-qa/qa-jenkins-jobs/daily-spread into lp:qa-jenkins-jobs

Proposed by Max Brustkern
Status: Merged
Approved by: Max Brustkern
Approved revision: 218
Merged at revision: 219
Proposed branch: lp:~canonical-platform-qa/qa-jenkins-jobs/daily-spread
Merge into: lp:qa-jenkins-jobs
Diff against target: 166 lines (+137/-1)
3 files modified
debian/control (+1/-1)
jobs/macros.yaml (+22/-0)
jobs/snapcore-qa-tests/jobs.yaml (+114/-0)
To merge this branch: bzr merge lp:~canonical-platform-qa/qa-jenkins-jobs/daily-spread
Reviewer Review Type Date Requested Status
platform-qa-bot continuous-integration Approve
Jean-Baptiste Lallement Approve
prod-platform-qa continuous-integration Pending
Review via email: mp+317547@code.launchpad.net

Commit message

Add daily spread tests for ubuntu core

Description of the change

This branch adds daily jobs to run spread tests on virtual machines. Building daily images from candidate snaps and upgrading the ubuntu core 16 released images to current stable are currently supported. Only pc-amd64 is included in the initial release, but pc-i386 should be easy to support once a model assertion is available and the appropriate released image is setup. Triggering the tests based on updates is the next step, and grafana reporting will be added once spread can output junit.

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
Max Brustkern (nuclearbob) wrote :

pc-i386 is added now.

Revision history for this message
platform-qa-bot (platform-qa-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

LGTM, thanks!

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

Autolanding is still trying to run with the allanlesage user. I've deployed this manually so we can get daily tests while we fix that.

Revision history for this message
platform-qa-bot (platform-qa-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
platform-qa-bot (platform-qa-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
platform-qa-bot (platform-qa-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
platform-qa-bot (platform-qa-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
platform-qa-bot (platform-qa-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
platform-qa-bot (platform-qa-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
platform-qa-bot (platform-qa-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
platform-qa-bot (platform-qa-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
platform-qa-bot (platform-qa-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
platform-qa-bot (platform-qa-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
platform-qa-bot (platform-qa-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
platform-qa-bot (platform-qa-bot) :
review: Approve (continuous-integration)
Revision history for this message
platform-qa-bot (platform-qa-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
platform-qa-bot (platform-qa-bot) :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'debian/control'
--- debian/control 2016-05-19 19:54:52 +0000
+++ debian/control 2017-02-23 16:39:06 +0000
@@ -2,7 +2,7 @@
2Section: devel2Section: devel
3Priority: optional3Priority: optional
4Maintainer: Max Brustkern <max@canonical.com>4Maintainer: Max Brustkern <max@canonical.com>
5Build-Depends: debhelper (>= 9)5Build-Depends: debhelper (>= 9), bzr
6Standards-Version: 3.9.76Standards-Version: 3.9.7
7Homepage: https://launchpad.net/qa-jenkins-jobs7Homepage: https://launchpad.net/qa-jenkins-jobs
88
99
=== modified file 'jobs/macros.yaml'
--- jobs/macros.yaml 2017-02-14 11:57:56 +0000
+++ jobs/macros.yaml 2017-02-23 16:39:06 +0000
@@ -1,3 +1,20 @@
1# vim: sw=4 ts=4 et
2
3# Auto Upgrade Testing
4# Copyright 2016-2017 Canonical Ltd.
5
6# This program is free software: you can redistribute it and/or modify it
7# under the terms of the GNU General Public License version 3, as published
8# by the Free Software Foundation.
9
10# This program is distributed in the hope that it will be useful, but
11# WITHOUT ANY WARRANTY; without even the implied warranties of
12# MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
13# PURPOSE. See the GNU General Public License for more details.
14
15# You should have received a copy of the GNU General Public License along
16# with this program. If not, see <http://www.gnu.org/licenses/>.
17
1- builder: # This step removes artifacts from previous builds18- builder: # This step removes artifacts from previous builds
2 name: clear-artifacts19 name: clear-artifacts
3 builders:20 builders:
@@ -77,3 +94,8 @@
77 - archive:94 - archive:
78 artifacts: '**/*'95 artifacts: '**/*'
79 allow-empty: 'true'96 allow-empty: 'true'
97
98- trigger: # This will schedule a daily build at a staggered time
99 name: 'daily'
100 triggers:
101 - timed: 'H H * * *'
80102
=== added directory 'jobs/snapcore-qa-tests'
=== added file 'jobs/snapcore-qa-tests/jobs.yaml'
--- jobs/snapcore-qa-tests/jobs.yaml 1970-01-01 00:00:00 +0000
+++ jobs/snapcore-qa-tests/jobs.yaml 2017-02-23 16:39:06 +0000
@@ -0,0 +1,114 @@
1# vim: sw=4 ts=4 et
2
3# QA Jenkins Jobs
4# Copyright 2017 Canonical Ltd.
5
6# This program is free software: you can redistribute it and/or modify it
7# under the terms of the GNU General Public License version 3, as published
8# by the Free Software Foundation.
9
10# This program is distributed in the hope that it will be useful, but
11# WITHOUT ANY WARRANTY; without even the implied warranties of
12# MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
13# PURPOSE. See the GNU General Public License for more details.
14
15# You should have received a copy of the GNU General Public License along
16# with this program. If not, see <http://www.gnu.org/licenses/>.
17
18- project:
19 name: snapcore-qa-tests-setup
20 node: iso-testing
21 jobs:
22 - snapcore-qa-tests-setup
23
24- project:
25 # Requires: Post Build Script plugin.
26 name: snapcore-qa-tests
27 model:
28 - pc-amd64
29 - pc-i386
30 jobs:
31 - snapcore-candidate-{model}-spread
32 - snapcore-stable-upgrade-{model}-spread
33
34- builder:
35 name: snap-vm
36 builders:
37 - shell: |
38 if [ -f ~/.proxy_info ] ; then
39 . ~/.proxy_info
40 fi
41
42 cd snapcore-qa-tests/autospread
43
44 export USER="{user}"
45 IMAGE="{image}"
46 if [ -z "$IMAGE" ] ; then
47 sudo ./create-image.sh -k ~/.ssh/id_rsa.pub -c {channel} -m {model}
48 IMAGE=ubuntu-core-16-{model}.img
49 fi
50
51 ./spread-vm.sh $IMAGE {upgrade}
52
53- job-template:
54 name: snapcore-candidate-{model}-spread
55 description: |
56 This job runs the spread tests on an image built from candidate snaps for the {model} model
57 Defined in lp:qa-jenkins-jobs
58 node: iso-testing
59 triggers:
60 - daily:
61 builders:
62 - clear-artifacts:
63 - branch-bzr-project:
64 project-url: 'lp:snapcore-qa-tests'
65 project-name: 'snapcore-qa-tests'
66 - snap-vm:
67 user: 'qa'
68 image: ''
69 channel: 'candidate'
70 model: '{model}'
71 upgrade: ''
72 publishers:
73 - archive:
74 artifacts: 'spread-output'
75 allow-empty: 'true'
76
77- job-template:
78 name: snapcore-stable-upgrade-{model}-spread
79 description: |
80 This job runs the spread tests on released ubuntu core 16 image upgrade to current stable for the {model} model
81 Defined in lp:qa-jenkins-jobs
82 node: iso-testing
83 triggers:
84 - daily:
85 builders:
86 - clear-artifacts:
87 - branch-bzr-project:
88 project-url: 'lp:snapcore-qa-tests'
89 project-name: 'snapcore-qa-tests'
90 - snap-vm:
91 user: 'nuclearbob'
92 image: '/var/cache/auto-upgrade-testing/ubuntu-core-16-{model}.img'
93 channel: ''
94 model: ''
95 upgrade: '-upgrade'
96 publishers:
97 - archive:
98 artifacts: 'spread-output'
99 allow-empty: 'true'
100
101- job:
102 name: 'snapcore-qa-tests-setup'
103 description: |
104 This job ensures we have everything needed to run snapcore-qa-tests
105 It can be run again to update to the latest versions of dependencies
106 Defined in lp:qa-jenkins-jobs
107 builders:
108 - clear-artifacts:
109 - branch-bzr-project:
110 project-url: 'lp:snapcore-qa-tests'
111 project-name: 'snapcore-qa-tests'
112 - shell: |
113 cd snapcore-qa-tests/autospread
114 ./setup.sh

Subscribers

People subscribed via source and target branches