Sha256: 60f71408835fe05582206d21a418520b338b2ec1a004614b1c1e3a19bce77c45

Contents?: true

Size: 606 Bytes

Versions: 8

Compression:

Stored size: 606 Bytes

Contents

# frozen_string_literal: true

module Datadog
  module CI
    module TestRetries
      module Driver
        # Driver is the class responsible for the current test retry mechanism.
        # It receives signals about each retry execution and steers the current retry strategy.
        class Base
          def should_retry?
            false
          end

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

          # duration in float seconds
          def record_duration(duration)
          end
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
datadog-ci-1.11.0 lib/datadog/ci/test_retries/driver/base.rb
datadog-ci-1.10.0 lib/datadog/ci/test_retries/driver/base.rb
datadog-ci-1.9.0 lib/datadog/ci/test_retries/driver/base.rb
datadog-ci-1.8.1 lib/datadog/ci/test_retries/driver/base.rb
datadog-ci-1.8.0 lib/datadog/ci/test_retries/driver/base.rb
datadog-ci-1.7.0 lib/datadog/ci/test_retries/driver/base.rb
datadog-ci-1.6.0 lib/datadog/ci/test_retries/driver/base.rb
datadog-ci-1.5.0 lib/datadog/ci/test_retries/driver/base.rb