Merge lp:~canonical-platform-qa/qa-jenkins-jobs/iso-footprint-jobs into lp:qa-jenkins-jobs

Proposed by Sergio Cazzolato
Status: Merged
Approved by: Max Brustkern
Approved revision: 216
Merged at revision: 207
Proposed branch: lp:~canonical-platform-qa/qa-jenkins-jobs/iso-footprint-jobs
Merge into: lp:qa-jenkins-jobs
Prerequisite: lp:~canonical-platform-qa/qa-jenkins-jobs/performance-jobs
Diff against target: 106 lines (+23/-24)
3 files modified
jobs/iso-testing/jobs.yaml (+12/-17)
jobs/macros.yaml (+10/-1)
jobs/performance/jobs.yaml (+1/-6)
To merge this branch: bzr merge lp:~canonical-platform-qa/qa-jenkins-jobs/iso-footprint-jobs
Reviewer Review Type Date Requested Status
platform-qa-bot continuous-integration Approve
Canonical Platform QA Jenkins Pending
Review via email: mp+316704@code.launchpad.net

This proposal supersedes a proposal from 2017-02-08.

Commit message

Update iso footprint jobs to support new grafana scripts

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
platform-qa-bot (platform-qa-bot) wrote :
review: Approve (continuous-integration)
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 :

Looks good!

Revision history for this message
platform-qa-bot (platform-qa-bot) wrote :
review: Needs Fixing (continuous-integration)
216. By Sergio Cazzolato

Merge with trunk

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

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'jobs/iso-testing/jobs.yaml'
2--- jobs/iso-testing/jobs.yaml 2017-01-04 15:59:52 +0000
3+++ jobs/iso-testing/jobs.yaml 2017-02-08 18:13:54 +0000
4@@ -473,26 +473,17 @@
5 jobs: '{flavor}-{release}-desktop-{arch}-iso-download'
6 result: 'success'
7 builders:
8+ - branch-bzr-project:
9+ project-url: 'lp:qakit'
10+ project-name: 'qakit'
11+ - grafana-setup
12 - shell: |
13- echo "Creating results dir"
14+ #!/bin/bash
15+ rm -rf *
16+ mkdir -p $OUTPUTDIR
17 export OUTPUTDIR=$WORKSPACE/results
18- rm -rf $OUTPUTDIR
19- mkdir -p $OUTPUTDIR
20+ mkdir -p $DATADIR
21 export DATADIR=/data/footprint/{flavor}-{release}-desktop-{arch}
22- mkdir -p $DATADIR
23-
24- echo "Downloading QAKIT"
25- rm -rf qakit
26- bzr branch lp:qakit qakit
27- export PYTHONPATH=qakit
28-
29- echo "Setting up grafana"
30- export CARBON_SERVER=10.25.236.71
31- export CARBON_PORT=2003
32-
33- echo "Setting up mongo"
34- export MONGO_HOST=10.25.236.10
35- export MONGO_PORT=27017
36
37 echo "Getting build id"
38 ISO="/data/iso/{flavor}/{release}-desktop-{arch}.iso"
39@@ -509,6 +500,10 @@
40 echo "Running iso footprint"
41 ./qakit/disk_footprint/iso_footprint.sh -d /data/iso/{flavor}/{release}-desktop-{arch}.iso -D $OUTPUTDIR $PREVARGS
42
43+ echo "Running sync with grafana"
44+ source $WORKSPACE/grafana.conf
45+ $GRAFANA_INTEGRATION_PATH/run_script sync-iso $ISO $OUTPUTDIR/$BUILD_ID -m iso_01 -t $(date +%s)
46+
47 echo "Moving old data"
48 cp -rf $OUTPUTDIR/* $DATADIR/
49 rm -rf $OUTPUTDIR/*
50
51=== modified file 'jobs/macros.yaml'
52--- jobs/macros.yaml 2017-02-07 21:47:51 +0000
53+++ jobs/macros.yaml 2017-02-08 18:13:54 +0000
54@@ -20,10 +20,18 @@
55 cat media_info
56
57 - builder:
58+ name: branch-bzr-project
59+ builders:
60+ - shell: |
61+ bzr branch {project-url} {project-name}
62+
63+- builder:
64 name: grafana-setup
65 builders:
66+ - branch-bzr-project:
67+ project-url: 'lp:custom-grafana-integration'
68+ project-name: 'grafana-integration'
69 - shell: |
70- bzr branch lp:custom-grafana-integration $WORKSPACE/grafana-integration
71 cat > $WORKSPACE/grafana.conf <<EOF
72 export MONGO_HOST=10.25.236.10
73 export MONGO_PORT=27017
74@@ -39,6 +47,7 @@
75 builders:
76 - grafana-setup:
77 - shell: |
78+ #!/bin/bash
79 source $WORKSPACE/grafana.conf
80 if [ -z "$BUILDSTAMP" ] ; then
81 BUILDSTAMP=$(grep -o '([0-9.]\+)' media_info | tr -d '()')
82
83=== modified file 'jobs/performance/jobs.yaml'
84--- jobs/performance/jobs.yaml 2017-02-08 00:12:49 +0000
85+++ jobs/performance/jobs.yaml 2017-02-08 18:13:54 +0000
86@@ -52,12 +52,6 @@
87 mkdir $WORKSPACE/results
88
89 - builder:
90- name: branch-bzr-project
91- builders:
92- - shell: |
93- bzr branch {project-url} {project-name}
94-
95-- builder:
96 name: run-performance-tests
97 builders:
98 - shell: |
99@@ -88,6 +82,7 @@
100 builders:
101 - grafana-setup
102 - shell: |
103+ #!/bin/bash
104 set -ex
105 source $WORKSPACE/grafana.conf
106 $GRAFANA_INTEGRATION_PATH/run_script sync-perf -l $WORKSPACE/results/tests.log -m performance_01 -t $(date +%s)

Subscribers

People subscribed via source and target branches