datadog-ci 0.5.1 → 0.7.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 +60 -1
- data/README.md +1 -1
- 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 +15 -11
- data/lib/datadog/ci/configuration/settings.rb +15 -0
- data/lib/datadog/ci/contrib/cucumber/configuration/settings.rb +4 -1
- data/lib/datadog/ci/contrib/cucumber/ext.rb +7 -5
- data/lib/datadog/ci/contrib/cucumber/formatter.rb +138 -27
- 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/ext.rb +6 -4
- data/lib/datadog/ci/contrib/minitest/helpers.rb +23 -0
- data/lib/datadog/ci/contrib/minitest/hooks.rb +34 -19
- data/lib/datadog/ci/contrib/minitest/patcher.rb +10 -0
- data/lib/datadog/ci/contrib/minitest/reporter.rb +50 -0
- data/lib/datadog/ci/contrib/minitest/runnable.rb +42 -0
- 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 +51 -0
- data/lib/datadog/ci/contrib/rspec/ext.rb +5 -4
- data/lib/datadog/ci/contrib/rspec/integration.rb +1 -1
- data/lib/datadog/ci/contrib/rspec/patcher.rb +14 -0
- data/lib/datadog/ci/contrib/rspec/runner.rb +57 -0
- data/lib/datadog/ci/contrib/settings.rb +1 -1
- 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 +1 -0
- data/lib/datadog/ci/ext/test.rb +19 -6
- data/lib/datadog/ci/span.rb +33 -2
- data/lib/datadog/ci/test.rb +96 -1
- 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 +53 -0
- data/lib/datadog/ci/test_visibility/recorder.rb +52 -25
- 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/utils/configuration.rb +15 -0
- data/lib/datadog/ci/utils/git.rb +70 -0
- data/lib/datadog/ci/version.rb +2 -2
- data/lib/datadog/ci.rb +40 -56
- metadata +14 -82
- data/lib/datadog/ci/null_span.rb +0 -63
- 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 -25
- data/sig/datadog/ci/contrib/cucumber/formatter.rbs +0 -35
- 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 -23
- data/sig/datadog/ci/contrib/minitest/hooks.rbs +0 -19
- 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/rspec/configuration/settings.rbs +0 -12
- data/sig/datadog/ci/contrib/rspec/example.rbs +0 -20
- data/sig/datadog/ci/contrib/rspec/ext.rbs +0 -23
- 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/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 -58
- 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 -39
- data/sig/datadog/ci/test.rbs +0 -7
- 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/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 -35
@@ -1,37 +0,0 @@
|
|
1
|
-
module Datadog
|
2
|
-
module CI
|
3
|
-
module Ext
|
4
|
-
module Environment
|
5
|
-
module Providers
|
6
|
-
class Bitbucket < Base
|
7
|
-
def provider_name: () -> "bitbucket"
|
8
|
-
|
9
|
-
def pipeline_id: () -> String?
|
10
|
-
|
11
|
-
def pipeline_name: () -> String?
|
12
|
-
|
13
|
-
def pipeline_number: () -> String?
|
14
|
-
|
15
|
-
def pipeline_url: () -> String?
|
16
|
-
|
17
|
-
def job_url: () -> String?
|
18
|
-
|
19
|
-
def workspace_path: () -> String?
|
20
|
-
|
21
|
-
def git_repository_url: () -> String?
|
22
|
-
|
23
|
-
def git_commit_sha: () -> String?
|
24
|
-
|
25
|
-
def git_branch: () -> String?
|
26
|
-
|
27
|
-
def git_tag: () -> String?
|
28
|
-
|
29
|
-
private
|
30
|
-
|
31
|
-
def url: () -> ::String?
|
32
|
-
end
|
33
|
-
end
|
34
|
-
end
|
35
|
-
end
|
36
|
-
end
|
37
|
-
end
|
@@ -1,41 +0,0 @@
|
|
1
|
-
module Datadog
|
2
|
-
module CI
|
3
|
-
module Ext
|
4
|
-
module Environment
|
5
|
-
module Providers
|
6
|
-
class Bitrise < Base
|
7
|
-
def provider_name: () -> "bitrise"
|
8
|
-
|
9
|
-
def pipeline_id: () -> String?
|
10
|
-
|
11
|
-
def pipeline_name: () -> String?
|
12
|
-
|
13
|
-
def pipeline_number: () -> String?
|
14
|
-
|
15
|
-
def pipeline_url: () -> String?
|
16
|
-
|
17
|
-
def workspace_path: () -> String?
|
18
|
-
|
19
|
-
def git_repository_url: () -> String?
|
20
|
-
|
21
|
-
def git_commit_sha: () -> String?
|
22
|
-
|
23
|
-
def git_branch: () -> String?
|
24
|
-
|
25
|
-
def git_tag: () -> String?
|
26
|
-
|
27
|
-
def git_commit_message: () -> String?
|
28
|
-
|
29
|
-
def git_commit_author_name: () -> String?
|
30
|
-
|
31
|
-
def git_commit_author_email: () -> String?
|
32
|
-
|
33
|
-
def git_commit_committer_name: () -> String?
|
34
|
-
|
35
|
-
def git_commit_committer_email: () -> String?
|
36
|
-
end
|
37
|
-
end
|
38
|
-
end
|
39
|
-
end
|
40
|
-
end
|
41
|
-
end
|
@@ -1,37 +0,0 @@
|
|
1
|
-
module Datadog
|
2
|
-
module CI
|
3
|
-
module Ext
|
4
|
-
module Environment
|
5
|
-
module Providers
|
6
|
-
class Buddy < Extractor
|
7
|
-
def provider_name: () -> "buddy"
|
8
|
-
|
9
|
-
def pipeline_id: () -> ::String
|
10
|
-
|
11
|
-
def pipeline_name: () -> String?
|
12
|
-
|
13
|
-
def pipeline_number: () -> String?
|
14
|
-
|
15
|
-
def pipeline_url: () -> String?
|
16
|
-
|
17
|
-
def workspace_path: () -> String?
|
18
|
-
|
19
|
-
def git_repository_url: () -> String?
|
20
|
-
|
21
|
-
def git_commit_sha: () -> String?
|
22
|
-
|
23
|
-
def git_branch: () -> String?
|
24
|
-
|
25
|
-
def git_tag: () -> String?
|
26
|
-
|
27
|
-
def git_commit_message: () -> String?
|
28
|
-
|
29
|
-
def git_commit_committer_name: () -> String?
|
30
|
-
|
31
|
-
def git_commit_committer_email: () -> String?
|
32
|
-
end
|
33
|
-
end
|
34
|
-
end
|
35
|
-
end
|
36
|
-
end
|
37
|
-
end
|
@@ -1,45 +0,0 @@
|
|
1
|
-
module Datadog
|
2
|
-
module CI
|
3
|
-
module Ext
|
4
|
-
module Environment
|
5
|
-
module Providers
|
6
|
-
class Buildkite < Extractor
|
7
|
-
def provider_name: () -> "buildkite"
|
8
|
-
|
9
|
-
def job_url: () -> ::String
|
10
|
-
|
11
|
-
def pipeline_id: () -> String?
|
12
|
-
|
13
|
-
def pipeline_name: () -> String?
|
14
|
-
|
15
|
-
def pipeline_number: () -> String?
|
16
|
-
|
17
|
-
def pipeline_url: () -> String?
|
18
|
-
|
19
|
-
def node_name: () -> String?
|
20
|
-
|
21
|
-
def node_labels: () -> String?
|
22
|
-
|
23
|
-
def workspace_path: () -> String?
|
24
|
-
|
25
|
-
def git_repository_url: () -> String?
|
26
|
-
|
27
|
-
def git_commit_sha: () -> String?
|
28
|
-
|
29
|
-
def git_branch: () -> String?
|
30
|
-
|
31
|
-
def git_tag: () -> String?
|
32
|
-
|
33
|
-
def git_commit_author_name: () -> String?
|
34
|
-
|
35
|
-
def git_commit_author_email: () -> String?
|
36
|
-
|
37
|
-
def git_commit_message: () -> String?
|
38
|
-
|
39
|
-
def ci_env_vars: () -> String?
|
40
|
-
end
|
41
|
-
end
|
42
|
-
end
|
43
|
-
end
|
44
|
-
end
|
45
|
-
end
|
@@ -1,41 +0,0 @@
|
|
1
|
-
module Datadog
|
2
|
-
module CI
|
3
|
-
module Ext
|
4
|
-
module Environment
|
5
|
-
module Providers
|
6
|
-
class Circleci < Extractor
|
7
|
-
def provider_name: () -> "circleci"
|
8
|
-
|
9
|
-
def job_url: () -> String?
|
10
|
-
|
11
|
-
def job_name: () -> String?
|
12
|
-
|
13
|
-
def pipeline_id: () -> String?
|
14
|
-
|
15
|
-
def pipeline_name: () -> String?
|
16
|
-
|
17
|
-
def pipeline_url: () -> ::String
|
18
|
-
|
19
|
-
def workspace_path: () -> String?
|
20
|
-
|
21
|
-
def git_repository_url: () -> String?
|
22
|
-
|
23
|
-
def git_commit_sha: () -> String?
|
24
|
-
|
25
|
-
def git_branch: () -> String?
|
26
|
-
|
27
|
-
def git_tag: () -> String?
|
28
|
-
|
29
|
-
def git_commit_author_name: () -> String?
|
30
|
-
|
31
|
-
def git_commit_author_email: () -> String?
|
32
|
-
|
33
|
-
def git_commit_message: () -> String?
|
34
|
-
|
35
|
-
def ci_env_vars: () -> ::String
|
36
|
-
end
|
37
|
-
end
|
38
|
-
end
|
39
|
-
end
|
40
|
-
end
|
41
|
-
end
|
@@ -1,25 +0,0 @@
|
|
1
|
-
module Datadog
|
2
|
-
module CI
|
3
|
-
module Ext
|
4
|
-
module Environment
|
5
|
-
module Providers
|
6
|
-
class Codefresh < Extractor
|
7
|
-
def provider_name: () -> "codefresh"
|
8
|
-
|
9
|
-
def job_name: () -> String?
|
10
|
-
|
11
|
-
def pipeline_id: () -> String?
|
12
|
-
|
13
|
-
def pipeline_name: () -> String?
|
14
|
-
|
15
|
-
def pipeline_url: () -> String?
|
16
|
-
|
17
|
-
def git_branch_or_tag: () -> String?
|
18
|
-
|
19
|
-
def ci_env_vars: () -> String
|
20
|
-
end
|
21
|
-
end
|
22
|
-
end
|
23
|
-
end
|
24
|
-
end
|
25
|
-
end
|
@@ -1,42 +0,0 @@
|
|
1
|
-
module Datadog
|
2
|
-
module CI
|
3
|
-
module Ext
|
4
|
-
module Environment
|
5
|
-
module Providers
|
6
|
-
class GithubActions < Extractor
|
7
|
-
@ref: String
|
8
|
-
@github_server_url: String?
|
9
|
-
|
10
|
-
def provider_name: () -> "github"
|
11
|
-
|
12
|
-
def job_name: () -> String?
|
13
|
-
|
14
|
-
def job_url: () -> ::String
|
15
|
-
|
16
|
-
def pipeline_id: () -> String?
|
17
|
-
|
18
|
-
def pipeline_name: () -> String?
|
19
|
-
|
20
|
-
def pipeline_number: () -> String?
|
21
|
-
|
22
|
-
def pipeline_url: () -> String?
|
23
|
-
|
24
|
-
def workspace_path: () -> String?
|
25
|
-
|
26
|
-
def git_repository_url: () -> ::String
|
27
|
-
|
28
|
-
def git_commit_sha: () -> String?
|
29
|
-
|
30
|
-
def git_branch_or_tag: () -> String?
|
31
|
-
|
32
|
-
def ci_env_vars: () -> String?
|
33
|
-
|
34
|
-
private
|
35
|
-
|
36
|
-
def github_server_url: () -> String?
|
37
|
-
end
|
38
|
-
end
|
39
|
-
end
|
40
|
-
end
|
41
|
-
end
|
42
|
-
end
|
@@ -1,57 +0,0 @@
|
|
1
|
-
module Datadog
|
2
|
-
module CI
|
3
|
-
module Ext
|
4
|
-
module Environment
|
5
|
-
module Providers
|
6
|
-
class Gitlab < Extractor
|
7
|
-
@name_email_tuple: [String?, String?]
|
8
|
-
|
9
|
-
def provider_name: () -> "gitlab"
|
10
|
-
|
11
|
-
def job_name: () -> String?
|
12
|
-
|
13
|
-
def job_url: () -> String?
|
14
|
-
|
15
|
-
def pipeline_id: () -> String?
|
16
|
-
|
17
|
-
def pipeline_name: () -> String?
|
18
|
-
|
19
|
-
def pipeline_number: () -> String?
|
20
|
-
|
21
|
-
def pipeline_url: () -> String?
|
22
|
-
|
23
|
-
def stage_name: () -> String?
|
24
|
-
|
25
|
-
def workspace_path: () -> String?
|
26
|
-
|
27
|
-
def node_name: () -> String?
|
28
|
-
|
29
|
-
def node_labels: () -> String?
|
30
|
-
|
31
|
-
def git_repository_url: () -> String?
|
32
|
-
|
33
|
-
def git_commit_sha: () -> String?
|
34
|
-
|
35
|
-
def git_branch: () -> String?
|
36
|
-
|
37
|
-
def git_tag: () -> String?
|
38
|
-
|
39
|
-
def git_commit_author_name: () -> String?
|
40
|
-
|
41
|
-
def git_commit_author_email: () -> String?
|
42
|
-
|
43
|
-
def git_commit_author_date: () -> String?
|
44
|
-
|
45
|
-
def git_commit_message: () -> String?
|
46
|
-
|
47
|
-
def ci_env_vars: () -> String?
|
48
|
-
|
49
|
-
private
|
50
|
-
|
51
|
-
def extract_name_email: () -> [String?, String?]
|
52
|
-
end
|
53
|
-
end
|
54
|
-
end
|
55
|
-
end
|
56
|
-
end
|
57
|
-
end
|
@@ -1,35 +0,0 @@
|
|
1
|
-
module Datadog
|
2
|
-
module CI
|
3
|
-
module Ext
|
4
|
-
module Environment
|
5
|
-
module Providers
|
6
|
-
class Jenkins < Base
|
7
|
-
def provider_name: () -> "jenkins"
|
8
|
-
|
9
|
-
def pipeline_id: () -> String?
|
10
|
-
|
11
|
-
def pipeline_name: () -> String?
|
12
|
-
|
13
|
-
def pipeline_number: () -> String?
|
14
|
-
|
15
|
-
def pipeline_url: () -> String?
|
16
|
-
|
17
|
-
def workspace_path: () -> String?
|
18
|
-
|
19
|
-
def node_name: () -> String?
|
20
|
-
|
21
|
-
def node_labels: () -> String?
|
22
|
-
|
23
|
-
def git_repository_url: () -> String?
|
24
|
-
|
25
|
-
def git_commit_sha: () -> String?
|
26
|
-
|
27
|
-
def git_branch_or_tag: () -> String?
|
28
|
-
|
29
|
-
def ci_env_vars: () -> String?
|
30
|
-
end
|
31
|
-
end
|
32
|
-
end
|
33
|
-
end
|
34
|
-
end
|
35
|
-
end
|
@@ -1,66 +0,0 @@
|
|
1
|
-
module Datadog
|
2
|
-
module CI
|
3
|
-
module Ext
|
4
|
-
module Environment
|
5
|
-
module Providers
|
6
|
-
class LocalGit < Base
|
7
|
-
class GitUser
|
8
|
-
attr_reader name: String?
|
9
|
-
attr_reader email: String?
|
10
|
-
attr_reader timestamp: String?
|
11
|
-
|
12
|
-
@name: String?
|
13
|
-
@email: String?
|
14
|
-
@timestamp: String?
|
15
|
-
|
16
|
-
def initialize: (String? name, String? email, String? timestamp) -> void
|
17
|
-
|
18
|
-
def date: () -> String?
|
19
|
-
end
|
20
|
-
|
21
|
-
class NilUser < GitUser
|
22
|
-
def initialize: () -> void
|
23
|
-
end
|
24
|
-
|
25
|
-
private
|
26
|
-
|
27
|
-
@author: GitUser
|
28
|
-
@committer: GitUser
|
29
|
-
|
30
|
-
def git_repository_url: () -> String?
|
31
|
-
|
32
|
-
def git_commit_sha: () -> String?
|
33
|
-
|
34
|
-
def git_branch: () -> String?
|
35
|
-
|
36
|
-
def git_tag: () -> String?
|
37
|
-
|
38
|
-
def git_commit_message: () -> String?
|
39
|
-
|
40
|
-
def git_commit_author_name: () -> String?
|
41
|
-
|
42
|
-
def git_commit_author_email: () -> String?
|
43
|
-
|
44
|
-
def git_commit_author_date: () -> String?
|
45
|
-
|
46
|
-
def git_commit_committer_name: () -> String?
|
47
|
-
|
48
|
-
def git_commit_committer_email: () -> String?
|
49
|
-
|
50
|
-
def git_commit_committer_date: () -> String?
|
51
|
-
|
52
|
-
def workspace_path: () -> String?
|
53
|
-
|
54
|
-
def exec_git_command: (String cmd) -> String?
|
55
|
-
|
56
|
-
def author: () -> GitUser
|
57
|
-
|
58
|
-
def committer: () -> GitUser
|
59
|
-
|
60
|
-
def set_git_commit_users: () -> void
|
61
|
-
end
|
62
|
-
end
|
63
|
-
end
|
64
|
-
end
|
65
|
-
end
|
66
|
-
end
|
@@ -1,17 +0,0 @@
|
|
1
|
-
module Datadog
|
2
|
-
module CI
|
3
|
-
module Ext
|
4
|
-
module Environment
|
5
|
-
module Providers
|
6
|
-
class Teamcity < Extractor
|
7
|
-
def provider_name: () -> "teamcity"
|
8
|
-
|
9
|
-
def job_name: () -> String?
|
10
|
-
|
11
|
-
def job_url: () -> String?
|
12
|
-
end
|
13
|
-
end
|
14
|
-
end
|
15
|
-
end
|
16
|
-
end
|
17
|
-
end
|
@@ -1,35 +0,0 @@
|
|
1
|
-
module Datadog
|
2
|
-
module CI
|
3
|
-
module Ext
|
4
|
-
module Environment
|
5
|
-
module Providers
|
6
|
-
class Travis < Extractor
|
7
|
-
def provider_name: () -> "travisci"
|
8
|
-
|
9
|
-
def job_url: () -> String?
|
10
|
-
|
11
|
-
def pipeline_id: () -> String?
|
12
|
-
|
13
|
-
def pipeline_name: () -> String?
|
14
|
-
|
15
|
-
def pipeline_number: () -> String?
|
16
|
-
|
17
|
-
def pipeline_url: () -> String?
|
18
|
-
|
19
|
-
def workspace_path: () -> String?
|
20
|
-
|
21
|
-
def git_repository_url: () -> ::String
|
22
|
-
|
23
|
-
def git_commit_sha: () -> String?
|
24
|
-
|
25
|
-
def git_branch: () -> String?
|
26
|
-
|
27
|
-
def git_tag: () -> String?
|
28
|
-
|
29
|
-
def git_commit_message: () -> String?
|
30
|
-
end
|
31
|
-
end
|
32
|
-
end
|
33
|
-
end
|
34
|
-
end
|
35
|
-
end
|
@@ -1,33 +0,0 @@
|
|
1
|
-
module Datadog
|
2
|
-
module CI
|
3
|
-
module Ext
|
4
|
-
module Environment
|
5
|
-
module Providers
|
6
|
-
class UserDefinedTags < Base
|
7
|
-
def git_repository_url: () -> String?
|
8
|
-
|
9
|
-
def git_commit_sha: () -> String?
|
10
|
-
|
11
|
-
def git_branch: () -> String?
|
12
|
-
|
13
|
-
def git_tag: () -> String?
|
14
|
-
|
15
|
-
def git_commit_message: () -> String?
|
16
|
-
|
17
|
-
def git_commit_author_name: () -> String?
|
18
|
-
|
19
|
-
def git_commit_author_email: () -> String?
|
20
|
-
|
21
|
-
def git_commit_author_date: () -> String?
|
22
|
-
|
23
|
-
def git_commit_committer_name: () -> String?
|
24
|
-
|
25
|
-
def git_commit_committer_email: () -> String?
|
26
|
-
|
27
|
-
def git_commit_committer_date: () -> String?
|
28
|
-
end
|
29
|
-
end
|
30
|
-
end
|
31
|
-
end
|
32
|
-
end
|
33
|
-
end
|
@@ -1,44 +0,0 @@
|
|
1
|
-
module Datadog
|
2
|
-
module CI
|
3
|
-
module Ext
|
4
|
-
# Defines constants for CI tags
|
5
|
-
module Environment
|
6
|
-
TAG_JOB_NAME: String
|
7
|
-
|
8
|
-
TAG_JOB_URL: String
|
9
|
-
|
10
|
-
TAG_PIPELINE_ID: String
|
11
|
-
|
12
|
-
TAG_PIPELINE_NAME: String
|
13
|
-
|
14
|
-
TAG_PIPELINE_NUMBER: String
|
15
|
-
|
16
|
-
TAG_PIPELINE_URL: String
|
17
|
-
|
18
|
-
TAG_PROVIDER_NAME: String
|
19
|
-
|
20
|
-
TAG_STAGE_NAME: String
|
21
|
-
|
22
|
-
TAG_WORKSPACE_PATH: String
|
23
|
-
|
24
|
-
TAG_NODE_LABELS: String
|
25
|
-
|
26
|
-
TAG_NODE_NAME: String
|
27
|
-
|
28
|
-
TAG_CI_ENV_VARS: String
|
29
|
-
|
30
|
-
HEX_NUMBER_REGEXP: Regexp
|
31
|
-
|
32
|
-
PROVIDERS: ::Array[Array[String | Symbol]]
|
33
|
-
|
34
|
-
def self?.tags: (untyped env) -> Hash[String, String]
|
35
|
-
|
36
|
-
def self?.ensure_post_conditions: (Hash[String, String] tags) -> void
|
37
|
-
|
38
|
-
def self?.validate_repository_url: (String? repo_url) -> void
|
39
|
-
|
40
|
-
def self?.validate_git_sha: (String? git_sha) -> void
|
41
|
-
end
|
42
|
-
end
|
43
|
-
end
|
44
|
-
end
|
data/sig/datadog/ci/ext/git.rbs
DELETED
@@ -1,53 +0,0 @@
|
|
1
|
-
module Datadog
|
2
|
-
module CI
|
3
|
-
module Ext
|
4
|
-
module Git
|
5
|
-
SHA_LENGTH: 40
|
6
|
-
|
7
|
-
TAG_BRANCH: "git.branch"
|
8
|
-
|
9
|
-
TAG_REPOSITORY_URL: "git.repository_url"
|
10
|
-
|
11
|
-
TAG_TAG: "git.tag"
|
12
|
-
|
13
|
-
TAG_COMMIT_AUTHOR_DATE: "git.commit.author.date"
|
14
|
-
|
15
|
-
TAG_COMMIT_AUTHOR_EMAIL: "git.commit.author.email"
|
16
|
-
|
17
|
-
TAG_COMMIT_AUTHOR_NAME: "git.commit.author.name"
|
18
|
-
|
19
|
-
TAG_COMMIT_COMMITTER_DATE: "git.commit.committer.date"
|
20
|
-
|
21
|
-
TAG_COMMIT_COMMITTER_EMAIL: "git.commit.committer.email"
|
22
|
-
|
23
|
-
TAG_COMMIT_COMMITTER_NAME: "git.commit.committer.name"
|
24
|
-
|
25
|
-
TAG_COMMIT_MESSAGE: "git.commit.message"
|
26
|
-
|
27
|
-
TAG_COMMIT_SHA: "git.commit.sha"
|
28
|
-
|
29
|
-
ENV_REPOSITORY_URL: "DD_GIT_REPOSITORY_URL"
|
30
|
-
|
31
|
-
ENV_COMMIT_SHA: "DD_GIT_COMMIT_SHA"
|
32
|
-
|
33
|
-
ENV_BRANCH: "DD_GIT_BRANCH"
|
34
|
-
|
35
|
-
ENV_TAG: "DD_GIT_TAG"
|
36
|
-
|
37
|
-
ENV_COMMIT_MESSAGE: "DD_GIT_COMMIT_MESSAGE"
|
38
|
-
|
39
|
-
ENV_COMMIT_AUTHOR_NAME: "DD_GIT_COMMIT_AUTHOR_NAME"
|
40
|
-
|
41
|
-
ENV_COMMIT_AUTHOR_EMAIL: "DD_GIT_COMMIT_AUTHOR_EMAIL"
|
42
|
-
|
43
|
-
ENV_COMMIT_AUTHOR_DATE: "DD_GIT_COMMIT_AUTHOR_DATE"
|
44
|
-
|
45
|
-
ENV_COMMIT_COMMITTER_NAME: "DD_GIT_COMMIT_COMMITTER_NAME"
|
46
|
-
|
47
|
-
ENV_COMMIT_COMMITTER_EMAIL: "DD_GIT_COMMIT_COMMITTER_EMAIL"
|
48
|
-
|
49
|
-
ENV_COMMIT_COMMITTER_DATE: "DD_GIT_COMMIT_COMMITTER_DATE"
|
50
|
-
end
|
51
|
-
end
|
52
|
-
end
|
53
|
-
end
|
@@ -1,14 +0,0 @@
|
|
1
|
-
module Datadog
|
2
|
-
module CI
|
3
|
-
module Ext
|
4
|
-
module Settings
|
5
|
-
ENV_MODE_ENABLED: String
|
6
|
-
ENV_AGENTLESS_MODE_ENABLED: String
|
7
|
-
ENV_AGENTLESS_URL: String
|
8
|
-
ENV_EXPERIMENTAL_TEST_SUITE_LEVEL_VISIBILITY_ENABLED: String
|
9
|
-
|
10
|
-
DD_SITE_ALLOWLIST: Array[String]
|
11
|
-
end
|
12
|
-
end
|
13
|
-
end
|
14
|
-
end
|