bellows 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +9 -0
- data/VERSION +1 -1
- data/lib/bellows/gerrit.rb +2 -2
- data/lib/bellows/tasks.rb +5 -4
- metadata +5 -4
data/CHANGELOG
ADDED
@@ -0,0 +1,9 @@
|
|
1
|
+
* Thu Oct 20 2011 Dan Prince <dan.prince@rackspace.com> - 1.0.1
|
2
|
+
- Update gerrit reviews call so it only searches 'master' reviews.
|
3
|
+
- Set status to 'Updated' when a smoke tests is updated on sync.
|
4
|
+
- Explicitly set description on sync/update calls. (Works around UTF-8
|
5
|
+
encoding issue w/ Rails 3 Ruby 1.9 JSON responses).
|
6
|
+
- Rename 'update' task to 'reconfig'.
|
7
|
+
|
8
|
+
* Thu Oct 13 2011 Dan Prince <dan.prince@rackspace.com> - 1.0.0
|
9
|
+
- Initial release.
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.1
|
data/lib/bellows/gerrit.rb
CHANGED
@@ -3,12 +3,12 @@ require 'json'
|
|
3
3
|
module Bellows
|
4
4
|
class Gerrit
|
5
5
|
|
6
|
-
def self.reviews(project, status="open")
|
6
|
+
def self.reviews(project, status="open", branch="master")
|
7
7
|
reviews = []
|
8
8
|
out=%x{ssh review gerrit query "status: #{status}" --current-patch-set --format JSON}
|
9
9
|
out.each_line do |line|
|
10
10
|
data = JSON.parse(line)
|
11
|
-
if data['project'] and data['project'] == "openstack/#{project}"
|
11
|
+
if data['project'] and data['project'] == "openstack/#{project}" and data['branch'] and data['branch'] == branch
|
12
12
|
if block_given?
|
13
13
|
yield data
|
14
14
|
else
|
data/lib/bellows/tasks.rb
CHANGED
@@ -33,7 +33,7 @@ module Bellows
|
|
33
33
|
if smoke_test["#{project}_package_builder"]['branch'] != refspec then
|
34
34
|
puts "Updating... " + desc
|
35
35
|
puts "refspec: " + refspec
|
36
|
-
Bellows::SmokeStack.update_smoke_test(smoke_test['id'], {"#{project}_package_builder" => { "branch" => refspec}}) if not test
|
36
|
+
Bellows::SmokeStack.update_smoke_test(smoke_test['id'], {"#{project}_package_builder" => { "branch" => refspec}, "description" => desc, "status" => "Updated"}) if not test
|
37
37
|
end
|
38
38
|
end
|
39
39
|
end
|
@@ -60,8 +60,8 @@ module Bellows
|
|
60
60
|
end
|
61
61
|
end
|
62
62
|
|
63
|
-
desc "
|
64
|
-
def
|
63
|
+
desc "reconfig PROJECT", "Reconfigure test suite and configuration selections."
|
64
|
+
def reconfig(project)
|
65
65
|
if not ['nova', 'glance', 'keystone'].include?(project) then
|
66
66
|
puts "ERROR: Please specify a valid project name."
|
67
67
|
exit 1
|
@@ -75,8 +75,9 @@ module Bellows
|
|
75
75
|
refspec = review['currentPatchSet']['ref']
|
76
76
|
review_id = Bellows::Util.short_spec(refspec)
|
77
77
|
smoke_test = smoke_tests[review_id]
|
78
|
+
desc = review['owner']['name'] + ": " +review['subject']
|
78
79
|
if smoke_test
|
79
|
-
Bellows::SmokeStack.update_smoke_test(smoke_test['id'], {"test_suite_ids" => test_suite_ids, "config_template_ids" => config_template_ids})
|
80
|
+
Bellows::SmokeStack.update_smoke_test(smoke_test['id'], {"test_suite_ids" => test_suite_ids, "config_template_ids" => config_template_ids, "description" => desc})
|
80
81
|
end
|
81
82
|
end
|
82
83
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bellows
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
9
|
+
- 1
|
10
|
+
version: 1.0.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Dan Prince
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-10-
|
18
|
+
date: 2011-10-23 00:00:00 -04:00
|
19
19
|
default_executable: bellows
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -93,6 +93,7 @@ extra_rdoc_files:
|
|
93
93
|
- README.md
|
94
94
|
files:
|
95
95
|
- .document
|
96
|
+
- CHANGELOG
|
96
97
|
- Gemfile
|
97
98
|
- LICENSE.txt
|
98
99
|
- README.md
|