stella 2.1.2.001 → 2.1.2.002
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION.yml +1 -1
- data/bin/stella +1 -0
- data/lib/stella/cli.rb +21 -12
- data/lib/stella/client.rb +1 -1
- data/stella.gemspec +1 -1
- metadata +1 -1
data/VERSION.yml
CHANGED
data/bin/stella
CHANGED
|
@@ -82,6 +82,7 @@ class Stella::CLI::Definition
|
|
|
82
82
|
option :c, :concurrency, Integer, "Maximum number of virtual clients"
|
|
83
83
|
#option :a, :arrival, Float, "Arrival rate (new clients per second)"
|
|
84
84
|
option :r, :repetitions, Integer, "Number of times to repeat the testplan (per vclient)"
|
|
85
|
+
option :timeout, Integer, "Timeout requests after the given number of seconds"
|
|
85
86
|
option :W, :nowait, "Ignore wait times"
|
|
86
87
|
option :w, :wait, Float, "Wait time (in seconds) between requests"
|
|
87
88
|
command :checkup => Stella::CLI
|
data/lib/stella/cli.rb
CHANGED
|
@@ -17,6 +17,7 @@ class Stella::CLI < Drydock::Command
|
|
|
17
17
|
run_opts = {
|
|
18
18
|
:repetitions => @option.repetitions || 1,
|
|
19
19
|
:concurrency => @option.concurrency || 1,
|
|
20
|
+
:timeout => @option.timeout || 30,
|
|
20
21
|
:wait => @option.wait || 1
|
|
21
22
|
}
|
|
22
23
|
# NOTE ABOUT CLI OUTPUT:
|
|
@@ -89,20 +90,28 @@ class Stella::CLI < Drydock::Command
|
|
|
89
90
|
if @global.verbose > 0 || @report.errors?
|
|
90
91
|
test_uri = @report.log.first ? @report.log.first.uri : '[unknown]'
|
|
91
92
|
Stella.li 'Checkup for %s' % [test_uri]
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
93
|
+
if !@report.timeouts? && !@report.fubars?
|
|
94
|
+
Stella.li
|
|
95
|
+
Stella.li ' %s' % [@report.headers.request_headers.split(/\n/).join("\n ")]
|
|
96
|
+
Stella.li
|
|
97
|
+
Stella.li ' %s' % [@report.headers.response_headers.split(/\n/).join("\n ")]
|
|
98
|
+
Stella.li ''
|
|
99
|
+
end
|
|
97
100
|
end
|
|
98
101
|
metrics = @report.metrics
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
102
|
+
if @report.fubars?
|
|
103
|
+
Stella.li "You found a Stella bug!"
|
|
104
|
+
Stella.li "Let Tucker know: https://www.blamestella.com/feedback"
|
|
105
|
+
else
|
|
106
|
+
args = [
|
|
107
|
+
@report.timeouts? ? 'timeout' : @report.statuses.values.first,
|
|
108
|
+
metrics.response_time.mean*1000,
|
|
109
|
+
metrics.socket_connect.mean*1000,
|
|
110
|
+
metrics.first_byte.mean*1000,
|
|
111
|
+
metrics.last_byte.mean*1000,
|
|
112
|
+
@more_info]
|
|
113
|
+
Stella.li "[%3s] %7.2fms (%5.2fms + %6.2fms + %6.2fms) %s" % args
|
|
114
|
+
end
|
|
106
115
|
end
|
|
107
116
|
end
|
|
108
117
|
rescue Stella::API::Unauthorized => ex
|
data/lib/stella/client.rb
CHANGED
data/stella.gemspec
CHANGED