lib/ci/queue/configuration.rb in ci-queue-0.17.0 vs lib/ci/queue/configuration.rb in ci-queue-0.17.1
- old
+ new
@@ -2,11 +2,11 @@
module CI
module Queue
class Configuration
attr_accessor :timeout, :build_id, :worker_id, :max_requeues, :grind_count, :failure_file
attr_accessor :requeue_tolerance, :namespace, :seed, :failing_test, :statsd_endpoint
- attr_accessor :max_test_duration, :max_test_duration_percentile
+ attr_accessor :max_test_duration, :max_test_duration_percentile, :track_test_duration
attr_reader :circuit_breakers
class << self
def from_env(env)
new(
@@ -28,11 +28,11 @@
def initialize(
timeout: 30, build_id: nil, worker_id: nil, max_requeues: 0, requeue_tolerance: 0,
namespace: nil, seed: nil, flaky_tests: [], statsd_endpoint: nil, max_consecutive_failures: nil,
grind_count: nil, max_duration: nil, failure_file: nil, max_test_duration: nil,
- max_test_duration_percentile: 0.5
+ max_test_duration_percentile: 0.5, track_test_duration: false
)
@circuit_breakers = [CircuitBreaker::Disabled]
@build_id = build_id
@failure_file = failure_file
@flaky_tests = flaky_tests
@@ -44,9 +44,10 @@
@statsd_endpoint = statsd_endpoint
@timeout = timeout
@worker_id = worker_id
@max_test_duration = max_test_duration
@max_test_duration_percentile = max_test_duration_percentile
+ @track_test_duration = track_test_duration
self.max_duration = max_duration
self.max_consecutive_failures = max_consecutive_failures
end
def max_consecutive_failures=(max)