Class: Datadog::CI::TestRetries::Driver::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/datadog/ci/test_retries/driver/base.rb

Overview

Driver is the class responsible for the current test retry mechanism. It receives signals about each retry execution and steers the current retry strategy.

Direct Known Subclasses

NoRetry, RetryFailed, RetryNew

Instance Method Summary collapse

Instance Method Details

#record_duration(duration) ⇒ Object

duration in float seconds



19
20
# File 'lib/datadog/ci/test_retries/driver/base.rb', line 19

def record_duration(duration)
end

#record_retry(test_span) ⇒ Object



14
15
16
# File 'lib/datadog/ci/test_retries/driver/base.rb', line 14

def record_retry(test_span)
  test_span&.set_tag(Ext::Test::TAG_IS_RETRY, "true")
end

#should_retry?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/datadog/ci/test_retries/driver/base.rb', line 10

def should_retry?
  false
end