lib/ci/queue/configuration.rb in ci-queue-0.27.0 vs lib/ci/queue/configuration.rb in ci-queue-0.28.0
- old
+ new
@@ -1,10 +1,10 @@
# frozen_string_literal: true
module CI
module Queue
class Configuration
- attr_accessor :timeout, :worker_id, :max_requeues, :grind_count, :failure_file
+ attr_accessor :timeout, :worker_id, :max_requeues, :grind_count, :failure_file, :export_flaky_tests_file
attr_accessor :requeue_tolerance, :namespace, :failing_test, :statsd_endpoint
attr_accessor :max_test_duration, :max_test_duration_percentile, :track_test_duration
attr_accessor :max_test_failed, :redis_ttl
attr_reader :circuit_breakers
attr_writer :seed, :build_id
@@ -33,11 +33,12 @@
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, track_test_duration: false, max_test_failed: nil,
- queue_init_timeout: nil, redis_ttl: 8 * 60 * 60, report_timeout: nil, inactive_workers_timeout: nil
+ queue_init_timeout: nil, redis_ttl: 8 * 60 * 60, report_timeout: nil, inactive_workers_timeout: nil,
+ export_flaky_tests_file: nil
)
@build_id = build_id
@circuit_breakers = [CircuitBreaker::Disabled]
@failure_file = failure_file
@flaky_tests = flaky_tests
@@ -57,9 +58,10 @@
self.max_consecutive_failures = max_consecutive_failures
self.max_duration = max_duration
@redis_ttl = redis_ttl
@report_timeout = report_timeout
@inactive_workers_timeout = inactive_workers_timeout
+ @export_flaky_tests_file = export_flaky_tests_file
end
def queue_init_timeout
@queue_init_timeout || timeout
end