Merge lp:~canonical-platform-qa/qa-jenkins-jobs/snappy-integration-tests-experimental into lp:qa-jenkins-jobs

Proposed by Allan LeSage
Status: Work in progress
Proposed branch: lp:~canonical-platform-qa/qa-jenkins-jobs/snappy-integration-tests-experimental
Merge into: lp:qa-jenkins-jobs
Diff against target: 66 lines (+56/-0)
2 files modified
jobs/snappy/jobs.yaml (+31/-0)
jobs/snappy/run-snappy-integration-tests.sh (+25/-0)
To merge this branch: bzr merge lp:~canonical-platform-qa/qa-jenkins-jobs/snappy-integration-tests-experimental
Reviewer Review Type Date Requested Status
Max Brustkern Pending
Review via email: mp+302861@code.launchpad.net

Commit message

Add experimental snappy integration-testing Jenkins job.

Description of the change

Add an experimental snappy job.

To post a comment you must log in.
Revision history for this message
Max Brustkern (nuclearbob) wrote :

When I try to run it locally (without the proxy line [aside: at some point, maybe we should have a way of declaring that automatically across all jobs in the lab that doesn't interfere with running jobs at home?]) I get this:
+ go run integration-tests/main.go
Building snapbuild...
Building tests...
Creating image...
Determining gadget configuration
40.00 KB / 40.00 KB [====================================] 100.00 % 56.49 MB/s 0
Parallel unsquashfs: Using 8 processors
3 inodes (3 blocks) to write

/tmp/gadget992689236/gadget/fake-gadget/1.0-fake
/tmp/gadget992689236/gadget/fake-gadget/1.0-fake/grub.cfg
/tmp/gadget992689236/gadget/fake-gadget/1.0-fake/meta
/tmp/gadget992689236/gadget/fake-gadget/1.0-fake/meta/icon.png
/tmp/gadget992689236/gadget/fake-gadget/1.0-fake/meta/snap.yaml

created 3 files
created 2 directories
created 0 symlinks
created 0 devices
created 0 fifos

no hardware description in Gadget snap
2016/08/15 13:52:34 Error while running [sudo /home/max/workspace.d//bin/ubuntu-device-flash --verbose core 16 --output /tmp/snappy-test/image/snappy-16-edge-latest.img --channel edge --gadget canonical-pc --os ubuntu-core --kernel canonical-pc-linux --developer-mode]: exit status 1
panic: Error while running [sudo /home/max/workspace.d//bin/ubuntu-device-flash --verbose core 16 --output /tmp/snappy-test/image/snappy-16-edge-latest.img --channel edge --gadget canonical-pc --os ubuntu-core --kernel canonical-pc-linux --developer-mode]: exit status 1

goroutine 1 [running]:
panic(0x594a00, 0xc8200ea1e0)
 /usr/lib/go-1.6/src/runtime/panic.go:481 +0x3e6
log.Panicf(0x65fd60, 0x1b, 0xc8200f3908, 0x2, 0x2)
 /usr/lib/go-1.6/src/log/log.go:327 +0xd8
github.com/snapcore/snapd/integration-tests/testutils/testutils.ExecCommand(0xc8200bab00, 0x10, 0x10, 0x0, 0x0)
 /home/max/workspace.d/workspace.d/src/github.com/snapcore/snapd/integration-tests/testutils/testutils/testutils.go:66 +0x42f
github.com/snapcore/snapd/integration-tests/testutils/image.Image.UdfCreate(0x62f130, 0x2, 0x630d90, 0x4, 0x0, 0x0, 0x656040, 0x10, 0x658fe0, 0x12, ...)
 /home/max/workspace.d/workspace.d/src/github.com/snapcore/snapd/integration-tests/testutils/image/image.go:74 +0x66e
main.main()
 /home/max/workspace.d/workspace.d/src/github.com/snapcore/snapd/integration-tests/main.go:143 +0xdba
exit status 2

One diff question also.

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

Going to revisit this when I've worked through whatever firewall blockers thanks for the early review regardless!

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

Definitely want to keep it in $WORKSPACE. I actually just used $WORKSPACE as $GOPATH in my early tests, but if there's any reason not to, that's fine by me, I just did some double takes because my outside-of-jenkins testing workspace is ~/workspace.d so I had things in ~/workspace.d/workspace.d which looked like a mistake, but wasn't.

Unmerged revisions

169. By Allan LeSage

Experimental running snappy integration-tests.

168. By Allan LeSage

Temporarily pass jobs with no tests specified to appease CI MP process pending Conditional Build Step plugin installation.

Approved by Max Brustkern, platform-qa-bot.

167. By Allan LeSage

Add a timeout for ust_report-results-to-practitest.

Approved by Allan LeSage, platform-qa-bot.

166. By Allan LeSage

Add periodic ubuntu-system-tests jobs.

Approved by Allan LeSage, platform-qa-bot.

165. By Allan LeSage

Restrict ubuntu-system-tests testing to specific nodes.

Approved by Allan LeSage, platform-qa-bot.

164. By Allan LeSage

Pass ust landing candidate into -ci job for MP review.

Approved by platform-qa-bot, Allan LeSage.

163. By Allan LeSage

Rename ust CI job from -test, replacing official job.

Approved by Allan LeSage, platform-qa-bot.

162. By Allan LeSage

Add Jenkins jobs for ust MP reviews.

Approved by Max Brustkern, platform-qa-bot, Santiago Baldassin.

161. By Santiago Baldassin

Adding a script to select the tests to be run from the commit message.

Approved by Allan LeSage, platform-qa-bot.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added directory 'jobs/snappy'
2=== added file 'jobs/snappy/jobs.yaml'
3--- jobs/snappy/jobs.yaml 1970-01-01 00:00:00 +0000
4+++ jobs/snappy/jobs.yaml 2016-08-12 22:56:14 +0000
5@@ -0,0 +1,31 @@
6+# vim: sw=4 ts=4 et
7+
8+# QA Jenkins Jobs
9+# Copyright 2016 Canonical Ltd.
10+
11+# This program is free software: you can redistribute it and/or modify it
12+# under the terms of the GNU General Public License version 3, as published
13+# by the Free Software Foundation.
14+
15+# This program is distributed in the hope that it will be useful, but
16+# WITHOUT ANY WARRANTY; without even the implied warranties of
17+# MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
18+# PURPOSE. See the GNU General Public License for more details.
19+
20+# You should have received a copy of the GNU General Public License along
21+# with this program. If not, see <http://www.gnu.org/licenses/>.
22+
23+- project:
24+ name: snappy
25+ jobs:
26+ - 'test-alesage-snappy-integration-tests'
27+
28+- job:
29+ name: 'test-alesage-snappy-integration-tests'
30+ description: |
31+ Run snappy integration tests
32+ node: jenkins-slave-2
33+ builders:
34+ - shell:
35+ !include-raw: 'run-snappy-integration-tests.sh'
36+ # subunit-to-junit processing as in qa-jenkins-jobs/jobs/ubuntu-system-tests/subunit-to-junit.sh
37
38=== added file 'jobs/snappy/run-snappy-integration-tests.sh'
39--- jobs/snappy/run-snappy-integration-tests.sh 1970-01-01 00:00:00 +0000
40+++ jobs/snappy/run-snappy-integration-tests.sh 2016-08-12 22:56:14 +0000
41@@ -0,0 +1,25 @@
42+
43+export https_proxy="https://squid.internal:3128/"
44+
45+# install udf snap without apt-get removing deb-installed udf from
46+# global env
47+UDF_SNAP_URL=http://people.canonical.com/~mvo/all-snaps/ubuntu-device-flash
48+mkdir -p ${WORKSPACE}/bin
49+wget -O ${WORKSPACE}/bin/ubuntu-device-flash $UDF_SNAP_URL
50+chmod a+x ${WORKSPACE}/bin/ubuntu-device-flash
51+# munge path to include our downloaded path dir
52+PATH="$WORKSPACE/bin:$PATH"
53+echo $PATH
54+which ubuntu-device-flash
55+
56+# golang setup
57+export GOPATH=${WORKSPACE}/workspace.d
58+PATH="$PATH:$GOPATH/bin"
59+echo $PATH
60+mkdir -p ${GOPATH}
61+go get launchpad.net/godeps
62+go get -d -v github.com/snapcore/snapd/...
63+cd ${GOPATH}/src/github.com/snapcore/snapd
64+godeps -t -u dependencies.tsv
65+
66+go run integration-tests/main.go

Subscribers

People subscribed via source and target branches