Merge lp:~jibel/qa-jenkins-jobs/snapcore-upgrade into lp:qa-jenkins-jobs

Proposed by Jean-Baptiste Lallement
Status: Needs review
Proposed branch: lp:~jibel/qa-jenkins-jobs/snapcore-upgrade
Merge into: lp:qa-jenkins-jobs
Diff against target: 74 lines (+67/-0)
1 file modified
jobs/snapcore-qa-tests/jobs.yaml (+67/-0)
To merge this branch: bzr merge lp:~jibel/qa-jenkins-jobs/snapcore-upgrade
Reviewer Review Type Date Requested Status
platform-qa-bot continuous-integration Approve
Canonical Platform QA Jenkins Pending
Review via email: mp+319332@code.launchpad.net

Commit message

Added job description for core upgrade tests

Description of the change

Added job description for core upgrade tests

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

I've got a couple of suggestions regarding the main builder, and I can prepare a patch for that if you want. I think it should work fine as is, though, my stuff is mostly related to maintainability if things change in the future.

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

Here's my attempt at recreating this using a centralized builder stanza:
https://code.launchpad.net/~nuclearbob/qa-jenkins-jobs/snapcore-upgrade-1
However, the parameters seem backwards to me. I would expect
sudo apt install -y snapd/{release}-proposed
to install the new snapd, and -updates to install the current one. I would expect
sudo snap install core --candidate
to install the new core snap, and --stable to install the current one. I may be misunderstanding this, but if I'm not, I've got a version that reverses the parameters at:
https://code.launchpad.net/~nuclearbob/qa-jenkins-jobs/snapcore-upgrade-2

Unmerged revisions

227. By Jean-Baptiste Lallement

jobs/snapcore-qa-tests/jobs.yaml: Added jobs for upgrade tests.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'jobs/snapcore-qa-tests/jobs.yaml'
2--- jobs/snapcore-qa-tests/jobs.yaml 2017-03-03 18:04:29 +0000
3+++ jobs/snapcore-qa-tests/jobs.yaml 2017-03-08 15:11:59 +0000
4@@ -152,3 +152,70 @@
5 IMGDIR="$HOME/autopkgtest_images/"
6 mkdir -p "$IMGDIR"
7 autopkgtest-buildvm-ubuntu-cloud -r $RELEASE -a $ARCH -v -o $IMGDIR
8+
9+- project:
10+ # Requires: Post Build Script plugin.
11+ name: snapcore-autopkgtest-upgrade
12+ node: venonat-upgrade
13+ release:
14+ - xenial
15+ - yakkety
16+ - zesty
17+ arch:
18+ - i386
19+ - amd64
20+ jobs:
21+ - snapcore-autopkgtest-{release}-{arch}-snapd-upgrade
22+ - snapcore-autopkgtest-{release}-{arch}-core_snapd-upgrade
23+ - snapcore-autopkgtest-{release}-{arch}-core-upgrade
24+
25+- job-template:
26+ name: snapcore-autopkgtest-{release}-{arch}-core_snapd-upgrade
27+ description: |
28+ Run spread tests after an upgrade of the core snap and snapd
29+ builders:
30+ - clear-artifacts:
31+ - shell: |
32+ IMGDIR="$HOME/autopkgtest_images"
33+ rm -Rf ./log
34+
35+ autopkgtest -ddd \
36+ --setup-commands "sudo apt install -y snapd/{release}-updates \
37+ && sudo snap install core --stable" \
38+ --apt-pocket "proposed=src:snapd" snapd \
39+ -o log \
40+ -- qemu $IMGDIR/autopkgtest-{release}-{arch}.img
41+
42+- job-template:
43+ name: snapcore-autopkgtest-{release}-{arch}-snapd-upgrade
44+ description: |
45+ Run spread tests after an upgrade of snapd
46+ builders:
47+ - clear-artifacts:
48+ - shell: |
49+ IMGDIR="$HOME/autopkgtest_images"
50+ rm -Rf ./log
51+
52+ autopkgtest -ddd \
53+ --setup-commands "sudo apt install -y snapd/{release}-updates \
54+ && sudo snap install core --candidate" \
55+ --apt-pocket "proposed=src:snapd" snapd \
56+ -o log \
57+ -- qemu $IMGDIR/autopkgtest-{release}-{arch}.img
58+
59+- job-template:
60+ name: snapcore-autopkgtest-{release}-{arch}-core-upgrade
61+ description: |
62+ Run spread tests after an upgrade of the core snap
63+ builders:
64+ - clear-artifacts:
65+ - shell: |
66+ IMGDIR="$HOME/autopkgtest_images"
67+ rm -Rf ./log
68+
69+ autopkgtest -ddd \
70+ --setup-commands "sudo apt install -y snapd/{release}-proposed \
71+ && sudo snap install core --stable" \
72+ --apt-pocket "proposed=src:snapd" snapd \
73+ -o log \
74+ -- qemu $IMGDIR/autopkgtest-{release}-{arch}.img

Subscribers

People subscribed via source and target branches