hive-runner 2.0.12 → 2.0.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -31
- data/bin/hive_setup +1 -15
- data/lib/hive.rb +7 -0
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7188b2673a183397d180bc4dfb841ed0c990996d
|
4
|
+
data.tar.gz: c67ad66325a1def914aa3f4ec6ad207a456551a2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a7bd3661e74d00d97dd6eda1c055e7c23888718bae401ac9798357771067c1225cede769966a9a5518d8c7bb475c2e85700810789ed0f9488382669ad1737e97
|
7
|
+
data.tar.gz: 8606ffe8c43ee9aab9af2ea346dd5817377c5a6660486ae12925ba5efb50fc8cbdff3a4fda711f7675da3aeed2cd2b3b8f585d3b99357ebbe0f89b584fe789ff
|
data/README.md
CHANGED
@@ -9,8 +9,7 @@ Install the hive-runner gem and set up your hive:
|
|
9
9
|
gem install hive-runner
|
10
10
|
hive_setup my_hive
|
11
11
|
|
12
|
-
Follow the configuration instructions
|
13
|
-
`HIVE_CONFIG` variable is set.
|
12
|
+
Follow the configuration instructions.
|
14
13
|
|
15
14
|
Start the Hive daemon:
|
16
15
|
|
@@ -89,32 +88,3 @@ The shell controller section contains the following additional field:
|
|
89
88
|
|-----------|-------------------------------------------|
|
90
89
|
| `queues` | Array of job queues for the shell workers |
|
91
90
|
| `workers` | Number of shell workers to run |
|
92
|
-
|
93
|
-
## Setting up a new Hive Runner
|
94
|
-
|
95
|
-
Check out the Hive Runner from Github:
|
96
|
-
|
97
|
-
# Using HTTPS
|
98
|
-
git clone https://github.com/bbc-test/hive-runner
|
99
|
-
# ... or using SSH
|
100
|
-
git clone ssh@github.com:bbc-test/hive-runner
|
101
|
-
# Ensure ruby gems are installed
|
102
|
-
cd hive-runner
|
103
|
-
bundle install
|
104
|
-
|
105
|
-
Configure the hive, either by editing the default configuration file,
|
106
|
-
`hive-runner/config/hive-runner.yml`, or creating a separate configuration
|
107
|
-
file in a separate location (recommended) and ensuring that the `HIVE_CONFIG`
|
108
|
-
environment variable is set correctly:
|
109
|
-
|
110
|
-
echo export HIVE_CONFIG=/path/to/hive-config-directory >> ~/.bashrc
|
111
|
-
|
112
|
-
See the "Configuration file" above for details.
|
113
|
-
|
114
|
-
Start the Hive Runner:
|
115
|
-
|
116
|
-
./bin/hived start
|
117
|
-
|
118
|
-
Ensure that your Hive Runner is running and that your workers have started:
|
119
|
-
|
120
|
-
./bin/hived status
|
data/bin/hive_setup
CHANGED
@@ -69,20 +69,8 @@ def add_modules
|
|
69
69
|
mod[:device] = STDIN.gets.chomp
|
70
70
|
mod[:name] = "hive-runner-#{mod[:device]}"
|
71
71
|
puts ''
|
72
|
-
if yn "Get '#{mod[:name]}' from Github? "
|
73
|
-
print "Enter GIT account name: "
|
74
|
-
mod[:git_account] = STDIN.gets.chomp
|
75
|
-
end
|
76
|
-
|
77
|
-
puts ''
|
78
|
-
puts "Module '#{mod[:name]}'"
|
79
|
-
if mod.has_key?(:git_account)
|
80
|
-
puts " from git@github.com:#{mod[:git_account]}/#{mod[:name]}"
|
81
|
-
else
|
82
|
-
puts " from https://rubygems.org/gems/#{mod[:name]}"
|
83
|
-
end
|
84
|
-
puts ''
|
85
72
|
|
73
|
+
puts "Module '#{mod[:name]}' from https://rubygems.org/gems/#{mod[:name]}"
|
86
74
|
if yn "Correct? "
|
87
75
|
mods << mod
|
88
76
|
end
|
@@ -186,8 +174,6 @@ def setup_hive(dir, mods)
|
|
186
174
|
puts " - #{m[:device]}"
|
187
175
|
end
|
188
176
|
end
|
189
|
-
puts ' * Add to ~/.bashrc'
|
190
|
-
puts " - export HIVE_CONFIG=#{dir}/config"
|
191
177
|
end
|
192
178
|
|
193
179
|
mods = []
|
data/lib/hive.rb
CHANGED
@@ -6,6 +6,7 @@ require 'mind_meld/hive'
|
|
6
6
|
require 'macaddr'
|
7
7
|
require 'socket'
|
8
8
|
require 'sys/uname'
|
9
|
+
require 'airbrake-ruby'
|
9
10
|
|
10
11
|
# The Hive automated testing framework
|
11
12
|
module Hive
|
@@ -38,6 +39,12 @@ module Hive
|
|
38
39
|
config.ssl_verify_mode = OpenSSL::SSL::VERIFY_NONE
|
39
40
|
end
|
40
41
|
|
42
|
+
Airbrake.configure do |config|
|
43
|
+
config.host = Chamber.env.errbit.host
|
44
|
+
config.project_id = Chamber.env.errbit.project_id
|
45
|
+
config.project_key = Chamber.env.errbit.project_key
|
46
|
+
end if Chamber.env.has_key?('errbit')
|
47
|
+
|
41
48
|
def self.config
|
42
49
|
Chamber.env
|
43
50
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hive-runner
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joe Haig
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-04-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: chamber
|
@@ -178,6 +178,20 @@ dependencies:
|
|
178
178
|
- - "~>"
|
179
179
|
- !ruby/object:Gem::Version
|
180
180
|
version: '1.0'
|
181
|
+
- !ruby/object:Gem::Dependency
|
182
|
+
name: airbrake-ruby
|
183
|
+
requirement: !ruby/object:Gem::Requirement
|
184
|
+
requirements:
|
185
|
+
- - "~>"
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
version: 1.2.2
|
188
|
+
type: :runtime
|
189
|
+
prerelease: false
|
190
|
+
version_requirements: !ruby/object:Gem::Requirement
|
191
|
+
requirements:
|
192
|
+
- - "~>"
|
193
|
+
- !ruby/object:Gem::Version
|
194
|
+
version: 1.2.2
|
181
195
|
- !ruby/object:Gem::Dependency
|
182
196
|
name: simplecov
|
183
197
|
requirement: !ruby/object:Gem::Requirement
|