Class: Datadog::CI::TestRetries::Driver::Base
- Inherits:
-
Object
- Object
- Datadog::CI::TestRetries::Driver::Base
- 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
Instance Method Summary collapse
-
#record_duration(duration) ⇒ Object
duration in float seconds.
- #record_retry(test_span) ⇒ Object
- #should_retry? ⇒ Boolean
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
10 11 12 |
# File 'lib/datadog/ci/test_retries/driver/base.rb', line 10 def should_retry? false end |