Class: Datadog::CI::TestRetries::Driver::Base
- Inherits:
-
Object
- Object
- Datadog::CI::TestRetries::Driver::Base
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.
Instance Method Summary
collapse
Instance Method Details
#mark_as_retry(test_span) ⇒ Object
14
15
16
17
|
# File 'lib/datadog/ci/test_retries/driver/base.rb', line 14
def mark_as_retry(test_span)
test_span&.set_tag(Ext::Test::TAG_IS_RETRY, "true")
test_span&.set_tag(Ext::Test::TAG_RETRY_REASON, retry_reason)
end
|
#record_duration(duration) ⇒ Object
duration in float seconds
23
24
|
# File 'lib/datadog/ci/test_retries/driver/base.rb', line 23
def record_duration(duration)
end
|
#record_retry(test_span) ⇒ Object
19
20
|
# File 'lib/datadog/ci/test_retries/driver/base.rb', line 19
def record_retry(test_span)
end
|
#should_retry? ⇒ Boolean
10
11
12
|
# File 'lib/datadog/ci/test_retries/driver/base.rb', line 10
def should_retry?
false
end
|