Merge lp:~canonical-platform-qa/qa-jenkins-jobs/dynamic-upgrade-testing into lp:qa-jenkins-jobs

Proposed by Max Brustkern
Status: Merged
Approved by: Max Brustkern
Approved revision: 52
Merged at revision: 149
Proposed branch: lp:~canonical-platform-qa/qa-jenkins-jobs/dynamic-upgrade-testing
Merge into: lp:qa-jenkins-jobs
Diff against target: 100 lines (+30/-24)
6 files modified
Makefile (+9/-3)
jobs/Makefile (+7/-0)
jobs/auto-upgrade-testing/Makefile (+7/-0)
jobs/auto-upgrade-testing/jobs.yaml (+1/-21)
scripts/deploy-jobs.sh (+1/-0)
scripts/generate-upgrade-testing-profiles-from-branch.sh (+5/-0)
To merge this branch: bzr merge lp:~canonical-platform-qa/qa-jenkins-jobs/dynamic-upgrade-testing
Reviewer Review Type Date Requested Status
platform-qa-bot continuous-integration Approve
Canonical Platform QA Jenkins Pending
Review via email: mp+296846@code.launchpad.net

Commit message

Generate list of upgrade tests from branch using Makefile

Description of the change

This branch implements a Makefile to generate a list of auto-upgrade-testing jobs from a branch, which defaults to lp:auto-upgrade-testing-specifications

The make process is incorporated into deploy-jobs.sh, meaning its use is now recommended over other deployment methods, as they will not correctly include the upgrade tests.

To post a comment you must log in.
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
1=== modified file 'Makefile'
2--- Makefile 2016-05-19 20:02:19 +0000
3+++ Makefile 2016-06-08 19:04:10 +0000
4@@ -1,6 +1,9 @@
5-all:
6-
7-install:
8+.PHONY: jobs install clean
9+
10+jobs:
11+ $(MAKE) -C jobs
12+
13+install: jobs
14 mkdir -p "$$DESTDIR/usr/bin"
15 for FILE in $$(find scripts -name *.sh); do \
16 NEWNAME=$$(basename "$$FILE" | sed 's/\.sh//'); \
17@@ -8,3 +11,6 @@
18 done
19 mkdir -p "$$DESTDIR/usr/share"
20 cp -r jobs "$$DESTDIR/usr/share/qa-jenkins-jobs"
21+
22+clean:
23+ $(MAKE) -C jobs clean
24
25=== added file 'jobs/Makefile'
26--- jobs/Makefile 1970-01-01 00:00:00 +0000
27+++ jobs/Makefile 2016-06-08 19:04:10 +0000
28@@ -0,0 +1,7 @@
29+.PHONY: auto-upgrade-testing clean
30+
31+auto-upgrade-testing:
32+ $(MAKE) -C auto-upgrade-testing
33+
34+clean:
35+ $(MAKE) -C auto-upgrade-testing clean
36
37=== added file 'jobs/auto-upgrade-testing/Makefile'
38--- jobs/auto-upgrade-testing/Makefile 1970-01-01 00:00:00 +0000
39+++ jobs/auto-upgrade-testing/Makefile 2016-06-08 19:04:10 +0000
40@@ -0,0 +1,7 @@
41+.PHONY: clean
42+
43+profiles:
44+ ../../scripts/generate-upgrade-testing-profiles-from-branch.sh > profiles
45+
46+clean:
47+ rm -f profiles
48
49=== modified file 'jobs/auto-upgrade-testing/jobs.yaml'
50--- jobs/auto-upgrade-testing/jobs.yaml 2016-04-27 21:26:00 +0000
51+++ jobs/auto-upgrade-testing/jobs.yaml 2016-06-08 19:04:10 +0000
52@@ -19,27 +19,7 @@
53 # Requires: Post Build Script plugin.
54 name: auto-upgrade-testing
55 # TODO: automatically generate this list, possibly with a blacklist
56- profile:
57- - ubuntu-precise-xenial-basic-amd64_lxc
58- - ubuntu-precise-xenial-basic-i386_lxc
59- - ubuntu-trusty-xenial-basic-amd64_qemu
60- - ubuntu-trusty-xenial-basic-i386_qemu
61- - ubuntu-trusty-xenial-desktop-amd64_qemu
62- - ubuntu-trusty-xenial-desktop-i386_qemu
63- - ubuntu-trusty-xenial-basic-amd64_lxc
64- - ubuntu-trusty-xenial-basic-i386_lxc
65- - ubuntu-trusty-xenial-desktop-amd64_lxc
66- - ubuntu-trusty-xenial-desktop-i386_lxc
67- - ubuntu-wily-xenial-basic-amd64_qemu
68- - ubuntu-wily-xenial-basic-i386_qemu
69- - ubuntu-wily-xenial-desktop-amd64_qemu
70- - ubuntu-wily-xenial-desktop-i386_qemu
71- - ubuntu-trusty-xenial-desktop-hwe-utopic-amd64_qemu
72- - ubuntu-trusty-xenial-desktop-hwe-utopic-i386_qemu
73- - ubuntu-trusty-xenial-desktop-hwe-vivid-amd64_qemu
74- - ubuntu-trusty-xenial-desktop-hwe-vivid-i386_qemu
75- - ubuntu-trusty-xenial-desktop-hwe-wily-amd64_qemu
76- - ubuntu-trusty-xenial-desktop-hwe-wily-i386_qemu
77+ profile: !include: 'profiles'
78 jobs:
79 - upgrade_{profile}
80
81
82=== modified file 'scripts/deploy-jobs.sh'
83--- scripts/deploy-jobs.sh 2016-05-17 21:10:40 +0000
84+++ scripts/deploy-jobs.sh 2016-06-08 19:04:10 +0000
85@@ -10,4 +10,5 @@
86 ARGS="update";;
87 esac
88
89+make -C "$JOB_PATH"
90 python -m jenkins_jobs.cmd $ARGS -r "$JOB_PATH"
91
92=== added file 'scripts/generate-upgrade-testing-profiles-from-branch.sh'
93--- scripts/generate-upgrade-testing-profiles-from-branch.sh 1970-01-01 00:00:00 +0000
94+++ scripts/generate-upgrade-testing-profiles-from-branch.sh 2016-06-08 19:04:10 +0000
95@@ -0,0 +1,5 @@
96+#!/bin/sh
97+
98+export BRANCH=${UPGRADE_TESTING_SPECIFICATIONS_BRANCH-lp:auto-upgrade-testing-specifications}
99+
100+bzr ls $BRANCH/profiles | grep "$BRANCH/profiles/[^/]*\.yaml" | grep -o "[^/]*\.yaml$" | sed 's/^/ - /;s/\.yaml$//' > profiles

Subscribers

People subscribed via source and target branches