datadog-ci 0.6.0 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +63 -2
- data/README.md +21 -2
- data/lib/datadog/ci/codeowners/matcher.rb +102 -0
- data/lib/datadog/ci/codeowners/parser.rb +42 -0
- data/lib/datadog/ci/codeowners/rule.rb +33 -0
- data/lib/datadog/ci/concurrent_span.rb +2 -1
- data/lib/datadog/ci/configuration/components.rb +59 -57
- data/lib/datadog/ci/configuration/settings.rb +21 -0
- data/lib/datadog/ci/contrib/cucumber/configuration/settings.rb +4 -1
- data/lib/datadog/ci/contrib/cucumber/formatter.rb +69 -38
- data/lib/datadog/ci/contrib/cucumber/instrumentation.rb +2 -1
- data/lib/datadog/ci/contrib/minitest/configuration/settings.rb +4 -1
- data/lib/datadog/ci/contrib/minitest/helpers.rb +2 -1
- data/lib/datadog/ci/contrib/minitest/hooks.rb +9 -22
- data/lib/datadog/ci/contrib/minitest/patcher.rb +9 -6
- data/lib/datadog/ci/contrib/minitest/reporter.rb +50 -0
- data/lib/datadog/ci/contrib/minitest/runnable.rb +1 -1
- data/lib/datadog/ci/contrib/minitest/runner.rb +41 -0
- data/lib/datadog/ci/contrib/rspec/configuration/settings.rb +4 -1
- data/lib/datadog/ci/contrib/rspec/example.rb +55 -14
- data/lib/datadog/ci/contrib/rspec/example_group.rb +12 -7
- data/lib/datadog/ci/contrib/rspec/patcher.rb +10 -1
- data/lib/datadog/ci/contrib/rspec/runner.rb +7 -8
- data/lib/datadog/ci/ext/app_types.rb +2 -0
- data/lib/datadog/ci/ext/environment/providers/local_git.rb +8 -29
- data/lib/datadog/ci/ext/settings.rb +2 -0
- data/lib/datadog/ci/ext/test.rb +29 -7
- data/lib/datadog/ci/ext/transport.rb +19 -1
- data/lib/datadog/ci/itr/runner.rb +67 -0
- data/lib/datadog/ci/span.rb +51 -2
- data/lib/datadog/ci/test.rb +67 -2
- data/lib/datadog/ci/test_module.rb +1 -1
- data/lib/datadog/ci/test_session.rb +10 -2
- data/lib/datadog/ci/test_suite.rb +53 -2
- data/lib/datadog/ci/test_visibility/context/local.rb +3 -9
- data/lib/datadog/ci/test_visibility/null_recorder.rb +2 -22
- data/lib/datadog/ci/test_visibility/recorder.rb +46 -20
- data/lib/datadog/ci/test_visibility/serializers/base.rb +6 -5
- data/lib/datadog/ci/test_visibility/serializers/span.rb +1 -1
- data/lib/datadog/ci/test_visibility/serializers/test_module.rb +1 -1
- data/lib/datadog/ci/test_visibility/serializers/test_session.rb +1 -1
- data/lib/datadog/ci/test_visibility/serializers/test_suite.rb +1 -1
- data/lib/datadog/ci/test_visibility/serializers/test_v1.rb +1 -1
- data/lib/datadog/ci/test_visibility/transport.rb +1 -5
- data/lib/datadog/ci/transport/api/agentless.rb +63 -0
- data/lib/datadog/ci/transport/api/base.rb +10 -14
- data/lib/datadog/ci/transport/api/builder.rb +25 -22
- data/lib/datadog/ci/transport/api/evp_proxy.rb +47 -7
- data/lib/datadog/ci/transport/http.rb +7 -1
- data/lib/datadog/ci/transport/remote_settings_api.rb +96 -0
- data/lib/datadog/ci/utils/configuration.rb +15 -0
- data/lib/datadog/ci/utils/git.rb +70 -0
- data/lib/datadog/ci/version.rb +1 -1
- data/lib/datadog/ci.rb +40 -56
- metadata +12 -90
- data/lib/datadog/ci/contrib/minitest/plugin.rb +0 -73
- data/lib/datadog/ci/null_span.rb +0 -63
- data/lib/datadog/ci/transport/api/ci_test_cycle.rb +0 -30
- data/sig/datadog/ci/concurrent_span.rbs +0 -23
- data/sig/datadog/ci/configuration/components.rbs +0 -21
- data/sig/datadog/ci/configuration/extensions.rbs +0 -9
- data/sig/datadog/ci/configuration/settings.rbs +0 -16
- data/sig/datadog/ci/contrib/cucumber/configuration/settings.rbs +0 -12
- data/sig/datadog/ci/contrib/cucumber/ext.rbs +0 -21
- data/sig/datadog/ci/contrib/cucumber/formatter.rbs +0 -48
- data/sig/datadog/ci/contrib/cucumber/instrumentation.rbs +0 -16
- data/sig/datadog/ci/contrib/cucumber/integration.rbs +0 -26
- data/sig/datadog/ci/contrib/cucumber/patcher.rbs +0 -15
- data/sig/datadog/ci/contrib/integration.rbs +0 -44
- data/sig/datadog/ci/contrib/minitest/configuration/settings.rbs +0 -12
- data/sig/datadog/ci/contrib/minitest/ext.rbs +0 -19
- data/sig/datadog/ci/contrib/minitest/helpers.rbs +0 -13
- data/sig/datadog/ci/contrib/minitest/hooks.rbs +0 -27
- data/sig/datadog/ci/contrib/minitest/integration.rbs +0 -26
- data/sig/datadog/ci/contrib/minitest/patcher.rbs +0 -15
- data/sig/datadog/ci/contrib/minitest/plugin.rbs +0 -31
- data/sig/datadog/ci/contrib/minitest/runnable.rbs +0 -24
- data/sig/datadog/ci/contrib/rspec/configuration/settings.rbs +0 -12
- data/sig/datadog/ci/contrib/rspec/example.rbs +0 -20
- data/sig/datadog/ci/contrib/rspec/example_group.rbs +0 -21
- data/sig/datadog/ci/contrib/rspec/ext.rbs +0 -17
- data/sig/datadog/ci/contrib/rspec/integration.rbs +0 -26
- data/sig/datadog/ci/contrib/rspec/patcher.rbs +0 -15
- data/sig/datadog/ci/contrib/rspec/runner.rbs +0 -21
- data/sig/datadog/ci/contrib/settings.rbs +0 -25
- data/sig/datadog/ci/ext/app_types.rbs +0 -14
- data/sig/datadog/ci/ext/environment/extractor.rbs +0 -25
- data/sig/datadog/ci/ext/environment/providers/appveyor.rbs +0 -48
- data/sig/datadog/ci/ext/environment/providers/aws_code_pipeline.rbs +0 -19
- data/sig/datadog/ci/ext/environment/providers/azure.rbs +0 -56
- data/sig/datadog/ci/ext/environment/providers/base.rbs +0 -71
- data/sig/datadog/ci/ext/environment/providers/bitbucket.rbs +0 -37
- data/sig/datadog/ci/ext/environment/providers/bitrise.rbs +0 -41
- data/sig/datadog/ci/ext/environment/providers/buddy.rbs +0 -37
- data/sig/datadog/ci/ext/environment/providers/buildkite.rbs +0 -45
- data/sig/datadog/ci/ext/environment/providers/circleci.rbs +0 -41
- data/sig/datadog/ci/ext/environment/providers/codefresh.rbs +0 -25
- data/sig/datadog/ci/ext/environment/providers/github_actions.rbs +0 -42
- data/sig/datadog/ci/ext/environment/providers/gitlab.rbs +0 -57
- data/sig/datadog/ci/ext/environment/providers/jenkins.rbs +0 -35
- data/sig/datadog/ci/ext/environment/providers/local_git.rbs +0 -66
- data/sig/datadog/ci/ext/environment/providers/teamcity.rbs +0 -17
- data/sig/datadog/ci/ext/environment/providers/travis.rbs +0 -35
- data/sig/datadog/ci/ext/environment/providers/user_defined_tags.rbs +0 -33
- data/sig/datadog/ci/ext/environment/providers.rbs +0 -13
- data/sig/datadog/ci/ext/environment.rbs +0 -44
- data/sig/datadog/ci/ext/git.rbs +0 -53
- data/sig/datadog/ci/ext/settings.rbs +0 -14
- data/sig/datadog/ci/ext/test.rbs +0 -60
- data/sig/datadog/ci/ext/transport.rbs +0 -29
- data/sig/datadog/ci/null_span.rbs +0 -37
- data/sig/datadog/ci/span.rbs +0 -47
- data/sig/datadog/ci/test.rbs +0 -12
- data/sig/datadog/ci/test_module.rbs +0 -6
- data/sig/datadog/ci/test_session.rbs +0 -9
- data/sig/datadog/ci/test_suite.rbs +0 -6
- data/sig/datadog/ci/test_visibility/context/global.rbs +0 -39
- data/sig/datadog/ci/test_visibility/context/local.rbs +0 -23
- data/sig/datadog/ci/test_visibility/flush.rbs +0 -17
- data/sig/datadog/ci/test_visibility/null_recorder.rbs +0 -45
- data/sig/datadog/ci/test_visibility/recorder.rbs +0 -85
- data/sig/datadog/ci/test_visibility/serializers/base.rbs +0 -94
- data/sig/datadog/ci/test_visibility/serializers/factories/test_level.rbs +0 -13
- data/sig/datadog/ci/test_visibility/serializers/factories/test_suite_level.rbs +0 -13
- data/sig/datadog/ci/test_visibility/serializers/span.rbs +0 -18
- data/sig/datadog/ci/test_visibility/serializers/test_module.rbs +0 -26
- data/sig/datadog/ci/test_visibility/serializers/test_session.rbs +0 -26
- data/sig/datadog/ci/test_visibility/serializers/test_suite.rbs +0 -26
- data/sig/datadog/ci/test_visibility/serializers/test_v1.rbs +0 -23
- data/sig/datadog/ci/test_visibility/serializers/test_v2.rbs +0 -25
- data/sig/datadog/ci/test_visibility/transport.rbs +0 -35
- data/sig/datadog/ci/transport/api/base.rbs +0 -21
- data/sig/datadog/ci/transport/api/builder.rbs +0 -12
- data/sig/datadog/ci/transport/api/ci_test_cycle.rbs +0 -21
- data/sig/datadog/ci/transport/api/evp_proxy.rbs +0 -19
- data/sig/datadog/ci/transport/gzip.rbs +0 -9
- data/sig/datadog/ci/transport/http.rbs +0 -36
- data/sig/datadog/ci/utils/git.rbs +0 -11
- data/sig/datadog/ci/utils/test_run.rbs +0 -11
- data/sig/datadog/ci/utils/url.rbs +0 -9
- data/sig/datadog/ci/version.rbs +0 -16
- data/sig/datadog/ci.rbs +0 -37
@@ -1,16 +0,0 @@
|
|
1
|
-
module Datadog
|
2
|
-
module CI
|
3
|
-
module Configuration
|
4
|
-
module Settings
|
5
|
-
extend Datadog::Core::Configuration::Options::ClassMethods
|
6
|
-
include Datadog::Core::Configuration::Options::InstanceMethods
|
7
|
-
|
8
|
-
extend Datadog::Core::Configuration::Base::ClassMethods
|
9
|
-
|
10
|
-
def self.extended: (untyped base) -> untyped
|
11
|
-
|
12
|
-
def self.add_settings!: (untyped base) -> untyped
|
13
|
-
end
|
14
|
-
end
|
15
|
-
end
|
16
|
-
end
|
@@ -1,21 +0,0 @@
|
|
1
|
-
module Datadog
|
2
|
-
module CI
|
3
|
-
module Contrib
|
4
|
-
module Cucumber
|
5
|
-
module Ext
|
6
|
-
ENV_ENABLED: String
|
7
|
-
|
8
|
-
ENV_OPERATION_NAME: String
|
9
|
-
|
10
|
-
FRAMEWORK: String
|
11
|
-
|
12
|
-
OPERATION_NAME: String
|
13
|
-
|
14
|
-
DEFAULT_SERVICE_NAME: String
|
15
|
-
|
16
|
-
STEP_SPAN_TYPE: String
|
17
|
-
end
|
18
|
-
end
|
19
|
-
end
|
20
|
-
end
|
21
|
-
end
|
@@ -1,48 +0,0 @@
|
|
1
|
-
module Datadog
|
2
|
-
module CI
|
3
|
-
module Contrib
|
4
|
-
module Cucumber
|
5
|
-
class Formatter
|
6
|
-
private
|
7
|
-
@failed_tests_count: Integer
|
8
|
-
@current_test_suite: Datadog::CI::Span?
|
9
|
-
@failed_tests_in_current_test_suite: Integer
|
10
|
-
|
11
|
-
attr_reader config: untyped
|
12
|
-
|
13
|
-
public
|
14
|
-
|
15
|
-
def initialize: (untyped config) -> void
|
16
|
-
|
17
|
-
def bind_events: (untyped config) -> untyped
|
18
|
-
|
19
|
-
def on_test_run_started: (untyped event) -> untyped
|
20
|
-
|
21
|
-
def on_test_run_finished: (untyped event) -> untyped
|
22
|
-
|
23
|
-
def on_test_case_started: (untyped event) -> untyped
|
24
|
-
|
25
|
-
def on_test_case_finished: (untyped event) -> (nil | untyped)
|
26
|
-
|
27
|
-
def on_test_step_started: (untyped event) -> untyped
|
28
|
-
|
29
|
-
def on_test_step_finished: (untyped event) -> (nil | untyped)
|
30
|
-
|
31
|
-
private
|
32
|
-
|
33
|
-
def start_test_suite: (String test_suite_name) -> void
|
34
|
-
|
35
|
-
def finish_current_test_suite: () -> void
|
36
|
-
|
37
|
-
def same_test_suite_as_current?: (String test_suite_name) -> bool
|
38
|
-
|
39
|
-
def finish_session: (bool result) -> void
|
40
|
-
|
41
|
-
def finish_test: (Datadog::CI::Span test, Cucumber::Core::Test::Result result) -> void
|
42
|
-
|
43
|
-
def configuration: () -> untyped
|
44
|
-
end
|
45
|
-
end
|
46
|
-
end
|
47
|
-
end
|
48
|
-
end
|
@@ -1,16 +0,0 @@
|
|
1
|
-
module Datadog
|
2
|
-
module CI
|
3
|
-
module Contrib
|
4
|
-
module Cucumber
|
5
|
-
module Instrumentation
|
6
|
-
def self.included: (untyped base) -> untyped
|
7
|
-
module InstanceMethods : Cucumber::Runtime
|
8
|
-
attr_reader datadog_formatter: CI::Contrib::Cucumber::Formatter
|
9
|
-
|
10
|
-
def formatters: () -> untyped
|
11
|
-
end
|
12
|
-
end
|
13
|
-
end
|
14
|
-
end
|
15
|
-
end
|
16
|
-
end
|
@@ -1,26 +0,0 @@
|
|
1
|
-
module Datadog
|
2
|
-
module CI
|
3
|
-
module Contrib
|
4
|
-
module Cucumber
|
5
|
-
class Integration
|
6
|
-
extend Datadog::CI::Contrib::Integration::ClassMethods
|
7
|
-
include Datadog::CI::Contrib::Integration::InstanceMethods
|
8
|
-
|
9
|
-
MINIMUM_VERSION: Gem::Version
|
10
|
-
|
11
|
-
def self.version: () -> untyped
|
12
|
-
|
13
|
-
def self.loaded?: () -> bool
|
14
|
-
|
15
|
-
def self.compatible?: () -> bool
|
16
|
-
|
17
|
-
def auto_instrument?: () -> false
|
18
|
-
|
19
|
-
def new_configuration: () -> untyped
|
20
|
-
|
21
|
-
def patcher: () -> untyped
|
22
|
-
end
|
23
|
-
end
|
24
|
-
end
|
25
|
-
end
|
26
|
-
end
|
@@ -1,44 +0,0 @@
|
|
1
|
-
module Datadog
|
2
|
-
module CI
|
3
|
-
module Contrib
|
4
|
-
module Integration
|
5
|
-
self.@registry: Hash[Symbol, untyped]
|
6
|
-
|
7
|
-
def self.included: (Module base) -> void
|
8
|
-
|
9
|
-
def self.register: (untyped integration, Symbol name) -> void
|
10
|
-
|
11
|
-
def self.registry: () -> Hash[Symbol, Struct[untyped]]
|
12
|
-
|
13
|
-
module ClassMethods
|
14
|
-
def register_as: (Symbol name) -> void
|
15
|
-
|
16
|
-
def version: () -> Gem::Version?
|
17
|
-
|
18
|
-
def available?: () -> bool
|
19
|
-
|
20
|
-
def loaded?: () -> bool
|
21
|
-
|
22
|
-
def compatible?: () -> bool
|
23
|
-
|
24
|
-
def patchable?: () -> bool
|
25
|
-
end
|
26
|
-
|
27
|
-
module InstanceMethods
|
28
|
-
extend ClassMethods
|
29
|
-
@configuration: Datadog::CI::Contrib::Settings?
|
30
|
-
|
31
|
-
def configuration: () -> Datadog::CI::Contrib::Settings
|
32
|
-
|
33
|
-
def configure: (?::Hash[Symbol, untyped] options) ?{ (Datadog::CI::Contrib::Settings) -> Datadog::CI::Contrib::Settings } -> Datadog::CI::Contrib::Settings
|
34
|
-
|
35
|
-
def reset_configuration!: () -> void
|
36
|
-
|
37
|
-
def patcher: () -> Datadog::Tracing::Contrib::Patcher?
|
38
|
-
|
39
|
-
def new_configuration: () -> Datadog::CI::Contrib::Settings
|
40
|
-
end
|
41
|
-
end
|
42
|
-
end
|
43
|
-
end
|
44
|
-
end
|
@@ -1,19 +0,0 @@
|
|
1
|
-
module Datadog
|
2
|
-
module CI
|
3
|
-
module Contrib
|
4
|
-
module Minitest
|
5
|
-
module Ext
|
6
|
-
ENV_ENABLED: String
|
7
|
-
|
8
|
-
ENV_OPERATION_NAME: String
|
9
|
-
|
10
|
-
FRAMEWORK: String
|
11
|
-
|
12
|
-
OPERATION_NAME: String
|
13
|
-
|
14
|
-
DEFAULT_SERVICE_NAME: String
|
15
|
-
end
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|
19
|
-
end
|
@@ -1,27 +0,0 @@
|
|
1
|
-
module Datadog
|
2
|
-
module CI
|
3
|
-
module Contrib
|
4
|
-
module Minitest
|
5
|
-
module Hooks : ::Minitest::Test
|
6
|
-
include ::Minitest::Test::LifecycleHooks
|
7
|
-
|
8
|
-
def before_setup: () -> (nil | untyped)
|
9
|
-
|
10
|
-
def after_teardown: () -> untyped
|
11
|
-
|
12
|
-
private
|
13
|
-
|
14
|
-
def datadog_configuration: () -> untyped
|
15
|
-
|
16
|
-
def finish_test: (Datadog::CI::Test test_span, String result_code) -> void
|
17
|
-
|
18
|
-
def finish_test_suite: (Datadog::CI::TestSuite? test_suite, String result_code) -> void
|
19
|
-
|
20
|
-
def finish_with_result: (Datadog::CI::Span span, String result_code) -> void
|
21
|
-
|
22
|
-
def self.test_order: () -> (nil | :parallel | :sorted | :random | :alpha)
|
23
|
-
end
|
24
|
-
end
|
25
|
-
end
|
26
|
-
end
|
27
|
-
end
|
@@ -1,26 +0,0 @@
|
|
1
|
-
module Datadog
|
2
|
-
module CI
|
3
|
-
module Contrib
|
4
|
-
module Minitest
|
5
|
-
class Integration
|
6
|
-
extend Datadog::CI::Contrib::Integration::ClassMethods
|
7
|
-
include Datadog::CI::Contrib::Integration::InstanceMethods
|
8
|
-
|
9
|
-
MINIMUM_VERSION: Gem::Version
|
10
|
-
|
11
|
-
def self.version: () -> untyped
|
12
|
-
|
13
|
-
def self.loaded?: () -> bool
|
14
|
-
|
15
|
-
def compatible?: () -> bool
|
16
|
-
|
17
|
-
def auto_instrument?: () -> false
|
18
|
-
|
19
|
-
def new_configuration: () -> untyped
|
20
|
-
|
21
|
-
def patcher: () -> untyped
|
22
|
-
end
|
23
|
-
end
|
24
|
-
end
|
25
|
-
end
|
26
|
-
end
|
@@ -1,31 +0,0 @@
|
|
1
|
-
module Datadog
|
2
|
-
module CI
|
3
|
-
module Contrib
|
4
|
-
module Minitest
|
5
|
-
module Plugin
|
6
|
-
def self.included: (untyped base) -> untyped
|
7
|
-
|
8
|
-
class DatadogReporter < ::Minitest::AbstractReporter
|
9
|
-
@reporter: WeakRef
|
10
|
-
|
11
|
-
def initialize: (Minitest::AbstractReporter reporter) -> void
|
12
|
-
end
|
13
|
-
|
14
|
-
module ClassMethods
|
15
|
-
def plugin_datadog_ci_init: (*untyped) -> (nil | untyped)
|
16
|
-
|
17
|
-
def initialize: (untyped reporter) -> void
|
18
|
-
|
19
|
-
def report: () -> (nil | untyped)
|
20
|
-
|
21
|
-
def reporter: () -> Minitest::CompositeReporter
|
22
|
-
|
23
|
-
private
|
24
|
-
|
25
|
-
def datadog_configuration: () -> untyped
|
26
|
-
end
|
27
|
-
end
|
28
|
-
end
|
29
|
-
end
|
30
|
-
end
|
31
|
-
end
|
@@ -1,24 +0,0 @@
|
|
1
|
-
module Datadog
|
2
|
-
module CI
|
3
|
-
module Contrib
|
4
|
-
module Minitest
|
5
|
-
module Runnable
|
6
|
-
def self.included: (untyped base) -> untyped
|
7
|
-
|
8
|
-
module ClassMethods : ::Minitest::Runnable
|
9
|
-
|
10
|
-
def run: (*untyped) -> untyped
|
11
|
-
|
12
|
-
private
|
13
|
-
|
14
|
-
def datadog_configuration: () -> untyped
|
15
|
-
|
16
|
-
def test_order: () -> (nil | :parallel | :random | :sorted | :alpha)
|
17
|
-
|
18
|
-
def runnable_methods: () -> Array[String]
|
19
|
-
end
|
20
|
-
end
|
21
|
-
end
|
22
|
-
end
|
23
|
-
end
|
24
|
-
end
|
@@ -1,20 +0,0 @@
|
|
1
|
-
module Datadog
|
2
|
-
module CI
|
3
|
-
module Contrib
|
4
|
-
module RSpec
|
5
|
-
module Example
|
6
|
-
def self.included: (untyped base) -> untyped
|
7
|
-
module InstanceMethods
|
8
|
-
include ::RSpec::Core::Example
|
9
|
-
|
10
|
-
def run: (untyped example_group_instance, untyped reporter) -> untyped
|
11
|
-
|
12
|
-
private
|
13
|
-
|
14
|
-
def configuration: () -> untyped
|
15
|
-
end
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|
19
|
-
end
|
20
|
-
end
|
@@ -1,21 +0,0 @@
|
|
1
|
-
module Datadog
|
2
|
-
module CI
|
3
|
-
module Contrib
|
4
|
-
module RSpec
|
5
|
-
module ExampleGroup
|
6
|
-
def self.included: (untyped base) -> untyped
|
7
|
-
|
8
|
-
module ClassMethods
|
9
|
-
include ::RSpec::Core::ExampleGroup::ClassMethods
|
10
|
-
|
11
|
-
def run: (?untyped reporter) -> untyped
|
12
|
-
|
13
|
-
private
|
14
|
-
|
15
|
-
def configuration: () -> untyped
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|
19
|
-
end
|
20
|
-
end
|
21
|
-
end
|
@@ -1,26 +0,0 @@
|
|
1
|
-
module Datadog
|
2
|
-
module CI
|
3
|
-
module Contrib
|
4
|
-
module RSpec
|
5
|
-
class Integration
|
6
|
-
extend Datadog::CI::Contrib::Integration::ClassMethods
|
7
|
-
include Datadog::CI::Contrib::Integration::InstanceMethods
|
8
|
-
|
9
|
-
MINIMUM_VERSION: Gem::Version
|
10
|
-
|
11
|
-
def self.version: () -> untyped
|
12
|
-
|
13
|
-
def self.loaded?: () -> untyped
|
14
|
-
|
15
|
-
def compatible?: () -> bool
|
16
|
-
|
17
|
-
def auto_instrument?: () -> false
|
18
|
-
|
19
|
-
def new_configuration: () -> untyped
|
20
|
-
|
21
|
-
def patcher: () -> untyped
|
22
|
-
end
|
23
|
-
end
|
24
|
-
end
|
25
|
-
end
|
26
|
-
end
|
@@ -1,21 +0,0 @@
|
|
1
|
-
module Datadog
|
2
|
-
module CI
|
3
|
-
module Contrib
|
4
|
-
module RSpec
|
5
|
-
module Runner
|
6
|
-
def self.included: (untyped base) -> untyped
|
7
|
-
|
8
|
-
module InstanceMethods
|
9
|
-
include ::RSpec::Core::Runner
|
10
|
-
|
11
|
-
def run_specs: (untyped example_groups) -> untyped
|
12
|
-
|
13
|
-
private
|
14
|
-
|
15
|
-
def configuration: () -> untyped
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|
19
|
-
end
|
20
|
-
end
|
21
|
-
end
|
@@ -1,25 +0,0 @@
|
|
1
|
-
module Datadog
|
2
|
-
module CI
|
3
|
-
module Contrib
|
4
|
-
class Settings
|
5
|
-
include Core::Configuration::Base
|
6
|
-
extend Datadog::Core::Configuration::Options::ClassMethods
|
7
|
-
include Datadog::Core::Configuration::Options::InstanceMethods
|
8
|
-
|
9
|
-
extend Datadog::Core::Configuration::Base::ClassMethods
|
10
|
-
|
11
|
-
def configure: (?::Hash[Symbol, untyped] options) ?{ (Datadog::CI::Contrib::Settings) -> Datadog::CI::Contrib::Settings } -> Datadog::CI::Contrib::Settings?
|
12
|
-
|
13
|
-
def []: (Symbol name) -> Datadog::CI::Contrib::Settings
|
14
|
-
|
15
|
-
def []=: (untyped name, untyped value) -> untyped
|
16
|
-
|
17
|
-
# default configuration options
|
18
|
-
#
|
19
|
-
def enabled: () -> bool
|
20
|
-
def service_name: () -> String
|
21
|
-
def operation_name: () -> String
|
22
|
-
end
|
23
|
-
end
|
24
|
-
end
|
25
|
-
end
|
@@ -1,14 +0,0 @@
|
|
1
|
-
module Datadog
|
2
|
-
module CI
|
3
|
-
module Ext
|
4
|
-
module AppTypes
|
5
|
-
TYPE_TEST: "test"
|
6
|
-
TYPE_TEST_SESSION: "test_session_end"
|
7
|
-
TYPE_TEST_MODULE: "test_module_end"
|
8
|
-
TYPE_TEST_SUITE: "test_suite_end"
|
9
|
-
|
10
|
-
CI_SPAN_TYPES: Array[String]
|
11
|
-
end
|
12
|
-
end
|
13
|
-
end
|
14
|
-
end
|
@@ -1,25 +0,0 @@
|
|
1
|
-
module Datadog
|
2
|
-
module CI
|
3
|
-
module Ext
|
4
|
-
module Environment
|
5
|
-
class Extractor
|
6
|
-
@env: Hash[String, String?]
|
7
|
-
@provider: Providers::Base
|
8
|
-
@tags: Hash[String, untyped]
|
9
|
-
|
10
|
-
def initialize: (Hash[String, String?] env, ?provider_klass: singleton(Providers::Base)?) -> void
|
11
|
-
|
12
|
-
def tags: () -> Hash[String, untyped]
|
13
|
-
|
14
|
-
private
|
15
|
-
|
16
|
-
attr_reader env: untyped
|
17
|
-
|
18
|
-
def normalize_git!: () -> void
|
19
|
-
|
20
|
-
def expand_workspace!: () -> void
|
21
|
-
end
|
22
|
-
end
|
23
|
-
end
|
24
|
-
end
|
25
|
-
end
|
@@ -1,48 +0,0 @@
|
|
1
|
-
module Datadog
|
2
|
-
module CI
|
3
|
-
module Ext
|
4
|
-
module Environment
|
5
|
-
module Providers
|
6
|
-
class Appveyor < Base
|
7
|
-
@github_repo_provider: bool
|
8
|
-
@url: String
|
9
|
-
|
10
|
-
def provider_name: () -> "appveyor"
|
11
|
-
|
12
|
-
def pipeline_url: () -> String?
|
13
|
-
|
14
|
-
def job_url: () -> String?
|
15
|
-
|
16
|
-
def workspace_path: () -> String?
|
17
|
-
|
18
|
-
def pipeline_id: () -> String?
|
19
|
-
|
20
|
-
def pipeline_name: () -> String?
|
21
|
-
|
22
|
-
def pipeline_number: () -> String?
|
23
|
-
|
24
|
-
def git_repository_url: () -> String?
|
25
|
-
|
26
|
-
def git_commit_sha: () -> String?
|
27
|
-
|
28
|
-
def git_branch: () -> String?
|
29
|
-
|
30
|
-
def git_tag: () -> String?
|
31
|
-
|
32
|
-
def git_commit_author_name: () -> String?
|
33
|
-
|
34
|
-
def git_commit_author_email: () -> String?
|
35
|
-
|
36
|
-
def git_commit_message: () -> String?
|
37
|
-
|
38
|
-
def github_repo_provider?: () -> bool
|
39
|
-
|
40
|
-
private
|
41
|
-
|
42
|
-
def url: () -> String?
|
43
|
-
end
|
44
|
-
end
|
45
|
-
end
|
46
|
-
end
|
47
|
-
end
|
48
|
-
end
|
@@ -1,19 +0,0 @@
|
|
1
|
-
module Datadog
|
2
|
-
module CI
|
3
|
-
module Ext
|
4
|
-
module Environment
|
5
|
-
module Providers
|
6
|
-
class AwsCodePipeline < Base
|
7
|
-
def self.handles?: (Hash[String, String?] env) -> bool
|
8
|
-
|
9
|
-
def provider_name: () -> "awscodepipeline"
|
10
|
-
|
11
|
-
def pipeline_id: () -> String?
|
12
|
-
|
13
|
-
def ci_env_vars: () -> String?
|
14
|
-
end
|
15
|
-
end
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|
19
|
-
end
|