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
#record_duration(duration) ⇒ Object
duration in float seconds
20
21
|
# File 'lib/datadog/ci/test_retries/driver/base.rb', line 20
def record_duration(duration)
end
|
#record_retry(test_span) ⇒ Object
14
15
16
17
|
# 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")
test_span&.set_tag(Ext::Test::TAG_RETRY_REASON, retry_reason)
end
|
#retry_reason ⇒ Object
23
24
25
|
# File 'lib/datadog/ci/test_retries/driver/base.rb', line 23
def retry_reason
"unknown"
end
|
#should_retry? ⇒ Boolean
10
11
12
|
# File 'lib/datadog/ci/test_retries/driver/base.rb', line 10
def should_retry?
false
end
|