bellows 1.0.11 → 1.0.12
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +4 -0
- data/VERSION +1 -1
- data/lib/bellows/smoke_stack.rb +3 -1
- data/lib/bellows/tasks.rb +6 -4
- data/test/test_task.rb +3 -0
- metadata +17 -17
data/CHANGELOG
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
* Mon May 17 2012 Dan Prince <dprince@redhat.com> - 1.0.12
|
2
|
+
- Ordering fix to ensure job types are displayed in Gerrit comments
|
3
|
+
in the same order they are listed in the config file.
|
4
|
+
|
1
5
|
* Mon May 7 2012 Dan Prince <dprince@redhat.com> - 1.0.11
|
2
6
|
- The comment task now uses Gerrit 'verified' to report results.
|
3
7
|
It votes with -1 and +1 based on SmokeStack results.
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.12
|
data/lib/bellows/smoke_stack.rb
CHANGED
@@ -121,7 +121,9 @@ module Bellows
|
|
121
121
|
#returns true if jobs all passed (green) or all failed results are approved
|
122
122
|
def self.complete?(job_datas)
|
123
123
|
approved = true
|
124
|
-
job_datas.
|
124
|
+
job_datas.each do |arr|
|
125
|
+
job_type = arr[0]
|
126
|
+
job_data = arr[1]
|
125
127
|
if job_data.nil? or (job_data['status'] == 'Failed' and (job_data['approved_by'].nil? and not job_type['auto_approved']))
|
126
128
|
approved = false
|
127
129
|
end
|
data/lib/bellows/tasks.rb
CHANGED
@@ -139,17 +139,19 @@ module Bellows
|
|
139
139
|
if jobs_for_rev.count > 0 then
|
140
140
|
|
141
141
|
job_types = Bellows::SmokeStack.job_types
|
142
|
-
job_datas =
|
142
|
+
job_datas = []
|
143
143
|
job_types.each do |job_type|
|
144
144
|
job_data=Bellows::SmokeStack.job_data_for_type(jobs_for_rev, job_type['name'])
|
145
|
-
job_datas
|
145
|
+
job_datas << [job_type, job_data]
|
146
146
|
end
|
147
147
|
|
148
148
|
if Bellows::SmokeStack.complete?(job_datas) then
|
149
149
|
puts "Commenting ... " + desc if not options[:quiet]
|
150
150
|
message = "SmokeStack Results (patch set #{patchset_num}):\n"
|
151
151
|
verify_vote = 1
|
152
|
-
job_datas.
|
152
|
+
job_datas.each do |arr|
|
153
|
+
job_type = arr[0]
|
154
|
+
job_data = arr[1]
|
153
155
|
message += "\t#{job_type['description']} #{job_data['status']}:#{job_data['msg']} http://smokestack.openstack.org/?go=/jobs/#{job_data['id']}\n"
|
154
156
|
verify_vote = -1 if job_data['status'] == 'Failed'
|
155
157
|
end
|
@@ -158,7 +160,7 @@ module Bellows
|
|
158
160
|
puts out if not options[:quiet] and not test
|
159
161
|
file.write revision + "\n" if not test
|
160
162
|
end
|
161
|
-
|
163
|
+
|
162
164
|
end
|
163
165
|
|
164
166
|
end
|
data/test/test_task.rb
CHANGED
@@ -24,6 +24,9 @@ class TaskTest < Test::Unit::TestCase
|
|
24
24
|
|
25
25
|
def test_comment
|
26
26
|
|
27
|
+
sample_config = fixture('config.yaml')
|
28
|
+
Bellows::Util.stubs(:load_configs).returns(YAML::load(sample_config))
|
29
|
+
|
27
30
|
jobs_data = fixture('jobs.json')
|
28
31
|
Bellows::SmokeStack.stubs(:jobs).returns(JSON.parse(jobs_data))
|
29
32
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bellows
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.12
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-05-
|
12
|
+
date: 2012-05-17 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
16
|
-
requirement: &
|
16
|
+
requirement: &5858420 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: 1.0.0
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *5858420
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: jeweler
|
27
|
-
requirement: &
|
27
|
+
requirement: &5857160 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ~>
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: 1.6.4
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *5857160
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: thor
|
38
|
-
requirement: &
|
38
|
+
requirement: &5855760 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ~>
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: 0.14.6
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *5855760
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: json
|
49
|
-
requirement: &
|
49
|
+
requirement: &5854600 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ~>
|
@@ -54,10 +54,10 @@ dependencies:
|
|
54
54
|
version: 1.4.6
|
55
55
|
type: :development
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *5854600
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: mocha
|
60
|
-
requirement: &
|
60
|
+
requirement: &5853540 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ~>
|
@@ -65,10 +65,10 @@ dependencies:
|
|
65
65
|
version: 0.9.9
|
66
66
|
type: :development
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *5853540
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: json
|
71
|
-
requirement: &
|
71
|
+
requirement: &5852140 !ruby/object:Gem::Requirement
|
72
72
|
none: false
|
73
73
|
requirements:
|
74
74
|
- - ! '>='
|
@@ -76,10 +76,10 @@ dependencies:
|
|
76
76
|
version: '0'
|
77
77
|
type: :runtime
|
78
78
|
prerelease: false
|
79
|
-
version_requirements: *
|
79
|
+
version_requirements: *5852140
|
80
80
|
- !ruby/object:Gem::Dependency
|
81
81
|
name: thor
|
82
|
-
requirement: &
|
82
|
+
requirement: &5824800 !ruby/object:Gem::Requirement
|
83
83
|
none: false
|
84
84
|
requirements:
|
85
85
|
- - ! '>='
|
@@ -87,7 +87,7 @@ dependencies:
|
|
87
87
|
version: '0'
|
88
88
|
type: :runtime
|
89
89
|
prerelease: false
|
90
|
-
version_requirements: *
|
90
|
+
version_requirements: *5824800
|
91
91
|
description: CLI to drive SmokeStack test creation and maintenance based on Gerrit
|
92
92
|
reviews.
|
93
93
|
email: dan.prince@rackspace.com
|
@@ -136,7 +136,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
136
136
|
version: '0'
|
137
137
|
segments:
|
138
138
|
- 0
|
139
|
-
hash:
|
139
|
+
hash: 2565287707468473955
|
140
140
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
141
141
|
none: false
|
142
142
|
requirements:
|