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.
@@ -1,4 +1,4 @@
1
1
  :MAJOR: 2
2
2
  :MINOR: 1
3
3
  :PATCH: 2
4
- :BUILD: '001'
4
+ :BUILD: '002'
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
@@ -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
- Stella.li
93
- Stella.li ' %s' % [@report.headers.request_headers.split(/\n/).join("\n ")]
94
- Stella.li
95
- Stella.li ' %s' % [@report.headers.response_headers.split(/\n/).join("\n ")]
96
- Stella.li ''
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
- args = [@report.statuses.values.first,
100
- metrics.response_time.mean*1000,
101
- metrics.socket_connect.mean*1000,
102
- metrics.first_byte.mean*1000,
103
- metrics.last_byte.mean*1000,
104
- @more_info]
105
- Stella.li "[%3s] %7.2fms (%5.2fms + %6.2fms + %6.2fms) %s" % args
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
@@ -88,7 +88,7 @@ class Stella
88
88
 
89
89
  tt.add_count :requests, 1, :kind => :http
90
90
 
91
- run_sleeper @opts[:wait]
91
+ run_sleeper @opts[:wait] unless usecase.requests.size == idx+1
92
92
 
93
93
  if @session.response_handler?
94
94
  @session.handle_response
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{stella}
8
- s.version = "2.1.2.001"
8
+ s.version = "2.1.2.002"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Delano Mandelbaum"]
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: stella
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 2.1.2.001
5
+ version: 2.1.2.002
6
6
  platform: ruby
7
7
  authors:
8
8
  - Delano Mandelbaum