diff --git a/tracer/src/Datadog.Trace/Ci/CiEnvironment/CIEnvironmentValues.cs b/tracer/src/Datadog.Trace/Ci/CiEnvironment/CIEnvironmentValues.cs index 45926498130a..f329e700b7cf 100644 --- a/tracer/src/Datadog.Trace/Ci/CiEnvironment/CIEnvironmentValues.cs +++ b/tracer/src/Datadog.Trace/Ci/CiEnvironment/CIEnvironmentValues.cs @@ -85,12 +85,6 @@ public string? GitSearchFolder public string[]? NodeLabels { get; protected set; } - public string? HeadCommit { get; protected set; } - - public string? PrBaseCommit { get; protected set; } - - public string? PrBaseBranch { get; protected set; } - public CodeOwners? CodeOwners { get; protected set; } public Dictionary? VariablesToBypass { get; protected set; } @@ -528,8 +522,6 @@ internal sealed class Constants public const string GitHubRunNumber = "GITHUB_RUN_NUMBER"; public const string GitHubWorkflow = "GITHUB_WORKFLOW"; public const string GitHubJob = "GITHUB_JOB"; - public const string GitHubEventPath = "GITHUB_EVENT_PATH"; - public const string GitHubBaseRef = "GITHUB_BASE_REF"; // Teamcity CI Environment variables public const string TeamCityVersion = "TEAMCITY_VERSION"; diff --git a/tracer/src/Datadog.Trace/Ci/CiEnvironment/GithubActionsEnvironmentValues.cs b/tracer/src/Datadog.Trace/Ci/CiEnvironment/GithubActionsEnvironmentValues.cs index 9c8ebf1bcb63..a570a8616b2f 100644 --- a/tracer/src/Datadog.Trace/Ci/CiEnvironment/GithubActionsEnvironmentValues.cs +++ b/tracer/src/Datadog.Trace/Ci/CiEnvironment/GithubActionsEnvironmentValues.cs @@ -4,10 +4,7 @@ // #nullable enable -using System; using System.Collections.Generic; -using System.IO; -using Datadog.Trace.Vendors.Newtonsoft.Json.Linq; namespace Datadog.Trace.Ci.CiEnvironment; @@ -80,51 +77,5 @@ protected override void OnInitialize(GitInfo gitInfo) return kvp.Value; }); - - // Load github-event.json - LoadGithubEventJson(); - if (string.IsNullOrEmpty(PrBaseBranch)) - { - PrBaseBranch = ValueProvider.GetValue(Constants.GitHubBaseRef); - } - } - - private void LoadGithubEventJson() - { - // Load github-event.json - try - { - var githubEventPath = ValueProvider.GetValue(Constants.GitHubEventPath); - if (!string.IsNullOrWhiteSpace(githubEventPath)) - { - var githubEvent = File.ReadAllText(githubEventPath); - var githubEventObject = JObject.Parse(githubEvent); - var pullRequestObject = githubEventObject["pull_request"]; - if (pullRequestObject is not null) - { - var prHeadSha = pullRequestObject["head"]?["sha"]?.Value(); - if (!string.IsNullOrWhiteSpace(prHeadSha)) - { - HeadCommit = prHeadSha; - } - - var prBaseSha = pullRequestObject["base"]?["sha"]?.Value(); - if (!string.IsNullOrWhiteSpace(prBaseSha)) - { - PrBaseCommit = prBaseSha; - } - - var prBaseRef = pullRequestObject["base"]?["ref"]?.Value(); - if (!string.IsNullOrWhiteSpace(prBaseRef)) - { - PrBaseBranch = prBaseRef; - } - } - } - } - catch (Exception ex) - { - CIVisibility.Log.Warning(ex, "Error loading the github-event.json"); - } } } diff --git a/tracer/src/Datadog.Trace/Ci/Tagging/TestSessionSpanTags.cs b/tracer/src/Datadog.Trace/Ci/Tagging/TestSessionSpanTags.cs index 3ef5d5c6f88c..d9efebf7bdbf 100644 --- a/tracer/src/Datadog.Trace/Ci/Tagging/TestSessionSpanTags.cs +++ b/tracer/src/Datadog.Trace/Ci/Tagging/TestSessionSpanTags.cs @@ -119,15 +119,6 @@ public TestSessionSpanTags() [Metric(CommonTags.LogicalCpuCount)] public double? LogicalCpuCount { get; } - [Tag(CommonTags.GitHeadCommit)] - public string GitHeadCommit { get; set; } - - [Tag(CommonTags.GitPrBaseCommit)] - public string GitPrBaseCommit { get; set; } - - [Tag(CommonTags.GitPrBaseBranch)] - public string GitPrBaseBranch { get; set; } - public void SetCIEnvironmentValues(CIEnvironmentValues environmentValues) { if (environmentValues is not null) @@ -153,9 +144,6 @@ public void SetCIEnvironmentValues(CIEnvironmentValues environmentValues) GitCommitCommitterEmail = environmentValues.CommitterEmail; GitCommitMessage = environmentValues.Message; BuildSourceRoot = environmentValues.SourceRoot; - GitHeadCommit = environmentValues.HeadCommit; - GitPrBaseCommit = environmentValues.PrBaseCommit; - GitPrBaseBranch = environmentValues.PrBaseBranch; if (environmentValues.VariablesToBypass is { } variablesToBypass) { diff --git a/tracer/src/Datadog.Trace/Ci/Tags/CommonTags.cs b/tracer/src/Datadog.Trace/Ci/Tags/CommonTags.cs index 04cb0b5bf062..ffb0c5769b00 100644 --- a/tracer/src/Datadog.Trace/Ci/Tags/CommonTags.cs +++ b/tracer/src/Datadog.Trace/Ci/Tags/CommonTags.cs @@ -189,19 +189,4 @@ internal static class CommonTags /// Logical CPU count /// public const string LogicalCpuCount = "_dd.host.vcpu_count"; - - /// - /// GIT Head commit hash - /// - public const string GitHeadCommit = "git.commit.head_sha"; - - /// - /// GIT PR Base commit hash - /// - public const string GitPrBaseCommit = "git.pull_request.base_branch_sha"; - - /// - /// GIT PR Base branch name - /// - public const string GitPrBaseBranch = "git.pull_request.base_branch"; } diff --git a/tracer/src/Datadog.Trace/Generated/net461/Datadog.Trace.SourceGenerators/TagListGenerator/TestSessionSpanTags.g.cs b/tracer/src/Datadog.Trace/Generated/net461/Datadog.Trace.SourceGenerators/TagListGenerator/TestSessionSpanTags.g.cs index afa6777c5a8a..c78cfa0158d3 100644 --- a/tracer/src/Datadog.Trace/Generated/net461/Datadog.Trace.SourceGenerators/TagListGenerator/TestSessionSpanTags.g.cs +++ b/tracer/src/Datadog.Trace/Generated/net461/Datadog.Trace.SourceGenerators/TagListGenerator/TestSessionSpanTags.g.cs @@ -78,12 +78,6 @@ partial class TestSessionSpanTags private static ReadOnlySpan EarlyFlakeDetectionTestEnabledBytes => new byte[] { 184, 116, 101, 115, 116, 46, 101, 97, 114, 108, 121, 95, 102, 108, 97, 107, 101, 46, 101, 110, 97, 98, 108, 101, 100 }; // EarlyFlakeDetectionTestAbortReasonBytes = MessagePack.Serialize("test.early_flake.abort_reason"); private static ReadOnlySpan EarlyFlakeDetectionTestAbortReasonBytes => new byte[] { 189, 116, 101, 115, 116, 46, 101, 97, 114, 108, 121, 95, 102, 108, 97, 107, 101, 46, 97, 98, 111, 114, 116, 95, 114, 101, 97, 115, 111, 110 }; - // GitHeadCommitBytes = MessagePack.Serialize("git.commit.head_sha"); - private static ReadOnlySpan GitHeadCommitBytes => new byte[] { 179, 103, 105, 116, 46, 99, 111, 109, 109, 105, 116, 46, 104, 101, 97, 100, 95, 115, 104, 97 }; - // GitPrBaseCommitBytes = MessagePack.Serialize("git.pull_request.base_branch_sha"); - private static ReadOnlySpan GitPrBaseCommitBytes => new byte[] { 217, 32, 103, 105, 116, 46, 112, 117, 108, 108, 95, 114, 101, 113, 117, 101, 115, 116, 46, 98, 97, 115, 101, 95, 98, 114, 97, 110, 99, 104, 95, 115, 104, 97 }; - // GitPrBaseBranchBytes = MessagePack.Serialize("git.pull_request.base_branch"); - private static ReadOnlySpan GitPrBaseBranchBytes => new byte[] { 188, 103, 105, 116, 46, 112, 117, 108, 108, 95, 114, 101, 113, 117, 101, 115, 116, 46, 98, 97, 115, 101, 95, 98, 114, 97, 110, 99, 104 }; public override string? GetTag(string key) { @@ -120,9 +114,6 @@ partial class TestSessionSpanTags "test.itr.tests_skipping.type" => IntelligentTestRunnerSkippingType, "test.early_flake.enabled" => EarlyFlakeDetectionTestEnabled, "test.early_flake.abort_reason" => EarlyFlakeDetectionTestAbortReason, - "git.commit.head_sha" => GitHeadCommit, - "git.pull_request.base_branch_sha" => GitPrBaseCommit, - "git.pull_request.base_branch" => GitPrBaseBranch, _ => base.GetTag(key), }; } @@ -221,15 +212,6 @@ public override void SetTag(string key, string value) case "test.early_flake.abort_reason": EarlyFlakeDetectionTestAbortReason = value; break; - case "git.commit.head_sha": - GitHeadCommit = value; - break; - case "git.pull_request.base_branch_sha": - GitPrBaseCommit = value; - break; - case "git.pull_request.base_branch": - GitPrBaseBranch = value; - break; case "library_version": Logger.Value.Warning("Attempted to set readonly tag {TagName} on {TagType}. Ignoring.", key, nameof(TestSessionSpanTags)); break; @@ -396,21 +378,6 @@ public override void EnumerateTags(ref TProcessor processor) processor.Process(new TagItem("test.early_flake.abort_reason", EarlyFlakeDetectionTestAbortReason, EarlyFlakeDetectionTestAbortReasonBytes)); } - if (GitHeadCommit is not null) - { - processor.Process(new TagItem("git.commit.head_sha", GitHeadCommit, GitHeadCommitBytes)); - } - - if (GitPrBaseCommit is not null) - { - processor.Process(new TagItem("git.pull_request.base_branch_sha", GitPrBaseCommit, GitPrBaseCommitBytes)); - } - - if (GitPrBaseBranch is not null) - { - processor.Process(new TagItem("git.pull_request.base_branch", GitPrBaseBranch, GitPrBaseBranchBytes)); - } - base.EnumerateTags(ref processor); } @@ -633,27 +600,6 @@ protected override void WriteAdditionalTags(System.Text.StringBuilder sb) .Append(','); } - if (GitHeadCommit is not null) - { - sb.Append("git.commit.head_sha (tag):") - .Append(GitHeadCommit) - .Append(','); - } - - if (GitPrBaseCommit is not null) - { - sb.Append("git.pull_request.base_branch_sha (tag):") - .Append(GitPrBaseCommit) - .Append(','); - } - - if (GitPrBaseBranch is not null) - { - sb.Append("git.pull_request.base_branch (tag):") - .Append(GitPrBaseBranch) - .Append(','); - } - base.WriteAdditionalTags(sb); } public override double? GetMetric(string key) diff --git a/tracer/src/Datadog.Trace/Generated/net6.0/Datadog.Trace.SourceGenerators/TagListGenerator/TestSessionSpanTags.g.cs b/tracer/src/Datadog.Trace/Generated/net6.0/Datadog.Trace.SourceGenerators/TagListGenerator/TestSessionSpanTags.g.cs index afa6777c5a8a..c78cfa0158d3 100644 --- a/tracer/src/Datadog.Trace/Generated/net6.0/Datadog.Trace.SourceGenerators/TagListGenerator/TestSessionSpanTags.g.cs +++ b/tracer/src/Datadog.Trace/Generated/net6.0/Datadog.Trace.SourceGenerators/TagListGenerator/TestSessionSpanTags.g.cs @@ -78,12 +78,6 @@ partial class TestSessionSpanTags private static ReadOnlySpan EarlyFlakeDetectionTestEnabledBytes => new byte[] { 184, 116, 101, 115, 116, 46, 101, 97, 114, 108, 121, 95, 102, 108, 97, 107, 101, 46, 101, 110, 97, 98, 108, 101, 100 }; // EarlyFlakeDetectionTestAbortReasonBytes = MessagePack.Serialize("test.early_flake.abort_reason"); private static ReadOnlySpan EarlyFlakeDetectionTestAbortReasonBytes => new byte[] { 189, 116, 101, 115, 116, 46, 101, 97, 114, 108, 121, 95, 102, 108, 97, 107, 101, 46, 97, 98, 111, 114, 116, 95, 114, 101, 97, 115, 111, 110 }; - // GitHeadCommitBytes = MessagePack.Serialize("git.commit.head_sha"); - private static ReadOnlySpan GitHeadCommitBytes => new byte[] { 179, 103, 105, 116, 46, 99, 111, 109, 109, 105, 116, 46, 104, 101, 97, 100, 95, 115, 104, 97 }; - // GitPrBaseCommitBytes = MessagePack.Serialize("git.pull_request.base_branch_sha"); - private static ReadOnlySpan GitPrBaseCommitBytes => new byte[] { 217, 32, 103, 105, 116, 46, 112, 117, 108, 108, 95, 114, 101, 113, 117, 101, 115, 116, 46, 98, 97, 115, 101, 95, 98, 114, 97, 110, 99, 104, 95, 115, 104, 97 }; - // GitPrBaseBranchBytes = MessagePack.Serialize("git.pull_request.base_branch"); - private static ReadOnlySpan GitPrBaseBranchBytes => new byte[] { 188, 103, 105, 116, 46, 112, 117, 108, 108, 95, 114, 101, 113, 117, 101, 115, 116, 46, 98, 97, 115, 101, 95, 98, 114, 97, 110, 99, 104 }; public override string? GetTag(string key) { @@ -120,9 +114,6 @@ partial class TestSessionSpanTags "test.itr.tests_skipping.type" => IntelligentTestRunnerSkippingType, "test.early_flake.enabled" => EarlyFlakeDetectionTestEnabled, "test.early_flake.abort_reason" => EarlyFlakeDetectionTestAbortReason, - "git.commit.head_sha" => GitHeadCommit, - "git.pull_request.base_branch_sha" => GitPrBaseCommit, - "git.pull_request.base_branch" => GitPrBaseBranch, _ => base.GetTag(key), }; } @@ -221,15 +212,6 @@ public override void SetTag(string key, string value) case "test.early_flake.abort_reason": EarlyFlakeDetectionTestAbortReason = value; break; - case "git.commit.head_sha": - GitHeadCommit = value; - break; - case "git.pull_request.base_branch_sha": - GitPrBaseCommit = value; - break; - case "git.pull_request.base_branch": - GitPrBaseBranch = value; - break; case "library_version": Logger.Value.Warning("Attempted to set readonly tag {TagName} on {TagType}. Ignoring.", key, nameof(TestSessionSpanTags)); break; @@ -396,21 +378,6 @@ public override void EnumerateTags(ref TProcessor processor) processor.Process(new TagItem("test.early_flake.abort_reason", EarlyFlakeDetectionTestAbortReason, EarlyFlakeDetectionTestAbortReasonBytes)); } - if (GitHeadCommit is not null) - { - processor.Process(new TagItem("git.commit.head_sha", GitHeadCommit, GitHeadCommitBytes)); - } - - if (GitPrBaseCommit is not null) - { - processor.Process(new TagItem("git.pull_request.base_branch_sha", GitPrBaseCommit, GitPrBaseCommitBytes)); - } - - if (GitPrBaseBranch is not null) - { - processor.Process(new TagItem("git.pull_request.base_branch", GitPrBaseBranch, GitPrBaseBranchBytes)); - } - base.EnumerateTags(ref processor); } @@ -633,27 +600,6 @@ protected override void WriteAdditionalTags(System.Text.StringBuilder sb) .Append(','); } - if (GitHeadCommit is not null) - { - sb.Append("git.commit.head_sha (tag):") - .Append(GitHeadCommit) - .Append(','); - } - - if (GitPrBaseCommit is not null) - { - sb.Append("git.pull_request.base_branch_sha (tag):") - .Append(GitPrBaseCommit) - .Append(','); - } - - if (GitPrBaseBranch is not null) - { - sb.Append("git.pull_request.base_branch (tag):") - .Append(GitPrBaseBranch) - .Append(','); - } - base.WriteAdditionalTags(sb); } public override double? GetMetric(string key) diff --git a/tracer/src/Datadog.Trace/Generated/netcoreapp3.1/Datadog.Trace.SourceGenerators/TagListGenerator/TestSessionSpanTags.g.cs b/tracer/src/Datadog.Trace/Generated/netcoreapp3.1/Datadog.Trace.SourceGenerators/TagListGenerator/TestSessionSpanTags.g.cs index afa6777c5a8a..c78cfa0158d3 100644 --- a/tracer/src/Datadog.Trace/Generated/netcoreapp3.1/Datadog.Trace.SourceGenerators/TagListGenerator/TestSessionSpanTags.g.cs +++ b/tracer/src/Datadog.Trace/Generated/netcoreapp3.1/Datadog.Trace.SourceGenerators/TagListGenerator/TestSessionSpanTags.g.cs @@ -78,12 +78,6 @@ partial class TestSessionSpanTags private static ReadOnlySpan EarlyFlakeDetectionTestEnabledBytes => new byte[] { 184, 116, 101, 115, 116, 46, 101, 97, 114, 108, 121, 95, 102, 108, 97, 107, 101, 46, 101, 110, 97, 98, 108, 101, 100 }; // EarlyFlakeDetectionTestAbortReasonBytes = MessagePack.Serialize("test.early_flake.abort_reason"); private static ReadOnlySpan EarlyFlakeDetectionTestAbortReasonBytes => new byte[] { 189, 116, 101, 115, 116, 46, 101, 97, 114, 108, 121, 95, 102, 108, 97, 107, 101, 46, 97, 98, 111, 114, 116, 95, 114, 101, 97, 115, 111, 110 }; - // GitHeadCommitBytes = MessagePack.Serialize("git.commit.head_sha"); - private static ReadOnlySpan GitHeadCommitBytes => new byte[] { 179, 103, 105, 116, 46, 99, 111, 109, 109, 105, 116, 46, 104, 101, 97, 100, 95, 115, 104, 97 }; - // GitPrBaseCommitBytes = MessagePack.Serialize("git.pull_request.base_branch_sha"); - private static ReadOnlySpan GitPrBaseCommitBytes => new byte[] { 217, 32, 103, 105, 116, 46, 112, 117, 108, 108, 95, 114, 101, 113, 117, 101, 115, 116, 46, 98, 97, 115, 101, 95, 98, 114, 97, 110, 99, 104, 95, 115, 104, 97 }; - // GitPrBaseBranchBytes = MessagePack.Serialize("git.pull_request.base_branch"); - private static ReadOnlySpan GitPrBaseBranchBytes => new byte[] { 188, 103, 105, 116, 46, 112, 117, 108, 108, 95, 114, 101, 113, 117, 101, 115, 116, 46, 98, 97, 115, 101, 95, 98, 114, 97, 110, 99, 104 }; public override string? GetTag(string key) { @@ -120,9 +114,6 @@ partial class TestSessionSpanTags "test.itr.tests_skipping.type" => IntelligentTestRunnerSkippingType, "test.early_flake.enabled" => EarlyFlakeDetectionTestEnabled, "test.early_flake.abort_reason" => EarlyFlakeDetectionTestAbortReason, - "git.commit.head_sha" => GitHeadCommit, - "git.pull_request.base_branch_sha" => GitPrBaseCommit, - "git.pull_request.base_branch" => GitPrBaseBranch, _ => base.GetTag(key), }; } @@ -221,15 +212,6 @@ public override void SetTag(string key, string value) case "test.early_flake.abort_reason": EarlyFlakeDetectionTestAbortReason = value; break; - case "git.commit.head_sha": - GitHeadCommit = value; - break; - case "git.pull_request.base_branch_sha": - GitPrBaseCommit = value; - break; - case "git.pull_request.base_branch": - GitPrBaseBranch = value; - break; case "library_version": Logger.Value.Warning("Attempted to set readonly tag {TagName} on {TagType}. Ignoring.", key, nameof(TestSessionSpanTags)); break; @@ -396,21 +378,6 @@ public override void EnumerateTags(ref TProcessor processor) processor.Process(new TagItem("test.early_flake.abort_reason", EarlyFlakeDetectionTestAbortReason, EarlyFlakeDetectionTestAbortReasonBytes)); } - if (GitHeadCommit is not null) - { - processor.Process(new TagItem("git.commit.head_sha", GitHeadCommit, GitHeadCommitBytes)); - } - - if (GitPrBaseCommit is not null) - { - processor.Process(new TagItem("git.pull_request.base_branch_sha", GitPrBaseCommit, GitPrBaseCommitBytes)); - } - - if (GitPrBaseBranch is not null) - { - processor.Process(new TagItem("git.pull_request.base_branch", GitPrBaseBranch, GitPrBaseBranchBytes)); - } - base.EnumerateTags(ref processor); } @@ -633,27 +600,6 @@ protected override void WriteAdditionalTags(System.Text.StringBuilder sb) .Append(','); } - if (GitHeadCommit is not null) - { - sb.Append("git.commit.head_sha (tag):") - .Append(GitHeadCommit) - .Append(','); - } - - if (GitPrBaseCommit is not null) - { - sb.Append("git.pull_request.base_branch_sha (tag):") - .Append(GitPrBaseCommit) - .Append(','); - } - - if (GitPrBaseBranch is not null) - { - sb.Append("git.pull_request.base_branch (tag):") - .Append(GitPrBaseBranch) - .Append(','); - } - base.WriteAdditionalTags(sb); } public override double? GetMetric(string key) diff --git a/tracer/src/Datadog.Trace/Generated/netstandard2.0/Datadog.Trace.SourceGenerators/TagListGenerator/TestSessionSpanTags.g.cs b/tracer/src/Datadog.Trace/Generated/netstandard2.0/Datadog.Trace.SourceGenerators/TagListGenerator/TestSessionSpanTags.g.cs index afa6777c5a8a..c78cfa0158d3 100644 --- a/tracer/src/Datadog.Trace/Generated/netstandard2.0/Datadog.Trace.SourceGenerators/TagListGenerator/TestSessionSpanTags.g.cs +++ b/tracer/src/Datadog.Trace/Generated/netstandard2.0/Datadog.Trace.SourceGenerators/TagListGenerator/TestSessionSpanTags.g.cs @@ -78,12 +78,6 @@ partial class TestSessionSpanTags private static ReadOnlySpan EarlyFlakeDetectionTestEnabledBytes => new byte[] { 184, 116, 101, 115, 116, 46, 101, 97, 114, 108, 121, 95, 102, 108, 97, 107, 101, 46, 101, 110, 97, 98, 108, 101, 100 }; // EarlyFlakeDetectionTestAbortReasonBytes = MessagePack.Serialize("test.early_flake.abort_reason"); private static ReadOnlySpan EarlyFlakeDetectionTestAbortReasonBytes => new byte[] { 189, 116, 101, 115, 116, 46, 101, 97, 114, 108, 121, 95, 102, 108, 97, 107, 101, 46, 97, 98, 111, 114, 116, 95, 114, 101, 97, 115, 111, 110 }; - // GitHeadCommitBytes = MessagePack.Serialize("git.commit.head_sha"); - private static ReadOnlySpan GitHeadCommitBytes => new byte[] { 179, 103, 105, 116, 46, 99, 111, 109, 109, 105, 116, 46, 104, 101, 97, 100, 95, 115, 104, 97 }; - // GitPrBaseCommitBytes = MessagePack.Serialize("git.pull_request.base_branch_sha"); - private static ReadOnlySpan GitPrBaseCommitBytes => new byte[] { 217, 32, 103, 105, 116, 46, 112, 117, 108, 108, 95, 114, 101, 113, 117, 101, 115, 116, 46, 98, 97, 115, 101, 95, 98, 114, 97, 110, 99, 104, 95, 115, 104, 97 }; - // GitPrBaseBranchBytes = MessagePack.Serialize("git.pull_request.base_branch"); - private static ReadOnlySpan GitPrBaseBranchBytes => new byte[] { 188, 103, 105, 116, 46, 112, 117, 108, 108, 95, 114, 101, 113, 117, 101, 115, 116, 46, 98, 97, 115, 101, 95, 98, 114, 97, 110, 99, 104 }; public override string? GetTag(string key) { @@ -120,9 +114,6 @@ partial class TestSessionSpanTags "test.itr.tests_skipping.type" => IntelligentTestRunnerSkippingType, "test.early_flake.enabled" => EarlyFlakeDetectionTestEnabled, "test.early_flake.abort_reason" => EarlyFlakeDetectionTestAbortReason, - "git.commit.head_sha" => GitHeadCommit, - "git.pull_request.base_branch_sha" => GitPrBaseCommit, - "git.pull_request.base_branch" => GitPrBaseBranch, _ => base.GetTag(key), }; } @@ -221,15 +212,6 @@ public override void SetTag(string key, string value) case "test.early_flake.abort_reason": EarlyFlakeDetectionTestAbortReason = value; break; - case "git.commit.head_sha": - GitHeadCommit = value; - break; - case "git.pull_request.base_branch_sha": - GitPrBaseCommit = value; - break; - case "git.pull_request.base_branch": - GitPrBaseBranch = value; - break; case "library_version": Logger.Value.Warning("Attempted to set readonly tag {TagName} on {TagType}. Ignoring.", key, nameof(TestSessionSpanTags)); break; @@ -396,21 +378,6 @@ public override void EnumerateTags(ref TProcessor processor) processor.Process(new TagItem("test.early_flake.abort_reason", EarlyFlakeDetectionTestAbortReason, EarlyFlakeDetectionTestAbortReasonBytes)); } - if (GitHeadCommit is not null) - { - processor.Process(new TagItem("git.commit.head_sha", GitHeadCommit, GitHeadCommitBytes)); - } - - if (GitPrBaseCommit is not null) - { - processor.Process(new TagItem("git.pull_request.base_branch_sha", GitPrBaseCommit, GitPrBaseCommitBytes)); - } - - if (GitPrBaseBranch is not null) - { - processor.Process(new TagItem("git.pull_request.base_branch", GitPrBaseBranch, GitPrBaseBranchBytes)); - } - base.EnumerateTags(ref processor); } @@ -633,27 +600,6 @@ protected override void WriteAdditionalTags(System.Text.StringBuilder sb) .Append(','); } - if (GitHeadCommit is not null) - { - sb.Append("git.commit.head_sha (tag):") - .Append(GitHeadCommit) - .Append(','); - } - - if (GitPrBaseCommit is not null) - { - sb.Append("git.pull_request.base_branch_sha (tag):") - .Append(GitPrBaseCommit) - .Append(','); - } - - if (GitPrBaseBranch is not null) - { - sb.Append("git.pull_request.base_branch (tag):") - .Append(GitPrBaseBranch) - .Append(','); - } - base.WriteAdditionalTags(sb); } public override double? GetMetric(string key) diff --git a/tracer/test/Datadog.Trace.ClrProfiler.IntegrationTests/CI/CIEnvironmentVariableTests.cs b/tracer/test/Datadog.Trace.ClrProfiler.IntegrationTests/CI/CIEnvironmentVariableTests.cs index c177762aa2d3..b4b2e36ba14e 100644 --- a/tracer/test/Datadog.Trace.ClrProfiler.IntegrationTests/CI/CIEnvironmentVariableTests.cs +++ b/tracer/test/Datadog.Trace.ClrProfiler.IntegrationTests/CI/CIEnvironmentVariableTests.cs @@ -7,7 +7,6 @@ using System.Collections; using System.Collections.Generic; using System.IO; -using System.Reflection; using System.Text.RegularExpressions; using Datadog.Trace.Ci; using Datadog.Trace.Ci.CiEnvironment; @@ -41,10 +40,7 @@ public static IEnumerable GetJsonItems() var name = Path.GetFileNameWithoutExtension(filePath); var content = File.ReadAllText(filePath); var jsonObject = JsonConvert.DeserializeObject[][]>(content); - if (jsonObject is not null) - { - yield return [new JsonDataItem(name, jsonObject)]; - } + yield return new object[] { new JsonDataItem(name, jsonObject) }; } } @@ -138,42 +134,6 @@ public void CheckEnvironmentVariables(JsonDataItem jsonData) } } - [SkippableFact] - public void GithubEventJsonTest() - { - var reloadEnvironmentData = typeof(CIEnvironmentValues).GetMethod("ReloadEnvironmentData", BindingFlags.Instance | BindingFlags.NonPublic); - - // Check if the CI\Data folder exists. - var ciDataFolder = DataHelpers.GetCiDataDirectory(); - - // JSON file path - var jsonFile = Path.Combine(ciDataFolder, "githubevent", "github-event.json"); - - // Let's test the github-event.json load and check the values first. - var githubEnvVars = new GithubActionsEnvironmentValues( - new DictionaryValuesProvider( - new Dictionary - { - [CIEnvironmentValues.Constants.GitHubEventPath] = jsonFile, - })); - - reloadEnvironmentData?.Invoke(githubEnvVars, null); - githubEnvVars.HeadCommit.Should().Be("df289512a51123083a8e6931dd6f57bb3883d4c4"); - githubEnvVars.PrBaseCommit.Should().Be("52e0974c74d41160a03d59ddc73bb9f5adab054b"); - githubEnvVars.PrBaseBranch.Should().Be("main"); - - // Let's test now the `GITHUB_BASE_REF` environment variable. - githubEnvVars = new GithubActionsEnvironmentValues( - new DictionaryValuesProvider( - new Dictionary - { - [CIEnvironmentValues.Constants.GitHubBaseRef] = "my-custom-branch", - })); - - reloadEnvironmentData?.Invoke(githubEnvVars, null); - githubEnvVars.PrBaseBranch.Should().Be("my-custom-branch"); - } - public class JsonDataItem : IXunitSerializable { public JsonDataItem() diff --git a/tracer/test/Datadog.Trace.ClrProfiler.IntegrationTests/CI/Data/githubevent/github-event.json b/tracer/test/Datadog.Trace.ClrProfiler.IntegrationTests/CI/Data/githubevent/github-event.json deleted file mode 100644 index b9fe79f2aaba..000000000000 --- a/tracer/test/Datadog.Trace.ClrProfiler.IntegrationTests/CI/Data/githubevent/github-event.json +++ /dev/null @@ -1,490 +0,0 @@ -{ - "action": "synchronize", - "after": "df289512a51123083a8e6931dd6f57bb3883d4c4", - "before": "f659d2fdd7bedffb40d9ab223dbde6afa5eadc32", - "number": 1, - "pull_request": { - "_links": { - "comments": { - "href": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/issues/1/comments" - }, - "commits": { - "href": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/pulls/1/commits" - }, - "html": { - "href": "https://github.com/nikita-tkachenko-datadog/ci-test-project/pull/1" - }, - "issue": { - "href": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/issues/1" - }, - "review_comment": { - "href": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/pulls/comments{/number}" - }, - "review_comments": { - "href": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/pulls/1/comments" - }, - "self": { - "href": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/pulls/1" - }, - "statuses": { - "href": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/statuses/df289512a51123083a8e6931dd6f57bb3883d4c4" - } - }, - "active_lock_reason": null, - "additions": 2, - "assignee": null, - "assignees": [], - "author_association": "OWNER", - "auto_merge": null, - "base": { - "label": "nikita-tkachenko-datadog:main", - "ref": "main", - "repo": { - "allow_auto_merge": false, - "allow_forking": true, - "allow_merge_commit": true, - "allow_rebase_merge": true, - "allow_squash_merge": true, - "allow_update_branch": false, - "archive_url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/{archive_format}{/ref}", - "archived": false, - "assignees_url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/assignees{/user}", - "blobs_url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/git/blobs{/sha}", - "branches_url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/branches{/branch}", - "clone_url": "https://github.com/nikita-tkachenko-datadog/ci-test-project.git", - "collaborators_url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/collaborators{/collaborator}", - "comments_url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/comments{/number}", - "commits_url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/commits{/sha}", - "compare_url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/compare/{base}...{head}", - "contents_url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/contents/{+path}", - "contributors_url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/contributors", - "created_at": "2023-01-09T10:24:06Z", - "default_branch": "main", - "delete_branch_on_merge": false, - "deployments_url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/deployments", - "description": null, - "disabled": false, - "downloads_url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/downloads", - "events_url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/events", - "fork": false, - "forks": 0, - "forks_count": 0, - "forks_url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/forks", - "full_name": "nikita-tkachenko-datadog/ci-test-project", - "git_commits_url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/git/commits{/sha}", - "git_refs_url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/git/tags{/sha}", - "git_url": "git://github.com/nikita-tkachenko-datadog/ci-test-project.git", - "has_discussions": false, - "has_downloads": true, - "has_issues": true, - "has_pages": false, - "has_projects": true, - "has_wiki": false, - "homepage": null, - "hooks_url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/hooks", - "html_url": "https://github.com/nikita-tkachenko-datadog/ci-test-project", - "id": 586827266, - "is_template": false, - "issue_comment_url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/issues/comments{/number}", - "issue_events_url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/issues/events{/number}", - "issues_url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/issues{/number}", - "keys_url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/keys{/key_id}", - "labels_url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/labels{/name}", - "language": "Shell", - "languages_url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/languages", - "license": null, - "merge_commit_message": "PR_TITLE", - "merge_commit_title": "MERGE_MESSAGE", - "merges_url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/merges", - "milestones_url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/milestones{/number}", - "mirror_url": null, - "name": "ci-test-project", - "node_id": "R_kgDOIvpGAg", - "notifications_url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/notifications{?since,all,participating}", - "open_issues": 1, - "open_issues_count": 1, - "owner": { - "avatar_url": "https://avatars.githubusercontent.com/u/121111529?v=4", - "events_url": "https://api.github.com/users/nikita-tkachenko-datadog/events{/privacy}", - "followers_url": "https://api.github.com/users/nikita-tkachenko-datadog/followers", - "following_url": "https://api.github.com/users/nikita-tkachenko-datadog/following{/other_user}", - "gists_url": "https://api.github.com/users/nikita-tkachenko-datadog/gists{/gist_id}", - "gravatar_id": "", - "html_url": "https://github.com/nikita-tkachenko-datadog", - "id": 121111529, - "login": "nikita-tkachenko-datadog", - "node_id": "U_kgDOBzgD6Q", - "organizations_url": "https://api.github.com/users/nikita-tkachenko-datadog/orgs", - "received_events_url": "https://api.github.com/users/nikita-tkachenko-datadog/received_events", - "repos_url": "https://api.github.com/users/nikita-tkachenko-datadog/repos", - "site_admin": false, - "starred_url": "https://api.github.com/users/nikita-tkachenko-datadog/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/nikita-tkachenko-datadog/subscriptions", - "type": "User", - "url": "https://api.github.com/users/nikita-tkachenko-datadog" - }, - "private": true, - "pulls_url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/pulls{/number}", - "pushed_at": "2024-09-11T15:12:25Z", - "releases_url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/releases{/id}", - "size": 90, - "squash_merge_commit_message": "COMMIT_MESSAGES", - "squash_merge_commit_title": "COMMIT_OR_PR_TITLE", - "ssh_url": "git@github.com:nikita-tkachenko-datadog/ci-test-project.git", - "stargazers_count": 0, - "stargazers_url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/stargazers", - "statuses_url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/statuses/{sha}", - "subscribers_url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/subscribers", - "subscription_url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/subscription", - "svn_url": "https://github.com/nikita-tkachenko-datadog/ci-test-project", - "tags_url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/tags", - "teams_url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/teams", - "topics": [], - "trees_url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/git/trees{/sha}", - "updated_at": "2024-09-11T13:41:11Z", - "url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project", - "use_squash_pr_title_as_default": false, - "visibility": "private", - "watchers": 0, - "watchers_count": 0, - "web_commit_signoff_required": false - }, - "sha": "52e0974c74d41160a03d59ddc73bb9f5adab054b", - "user": { - "avatar_url": "https://avatars.githubusercontent.com/u/121111529?v=4", - "events_url": "https://api.github.com/users/nikita-tkachenko-datadog/events{/privacy}", - "followers_url": "https://api.github.com/users/nikita-tkachenko-datadog/followers", - "following_url": "https://api.github.com/users/nikita-tkachenko-datadog/following{/other_user}", - "gists_url": "https://api.github.com/users/nikita-tkachenko-datadog/gists{/gist_id}", - "gravatar_id": "", - "html_url": "https://github.com/nikita-tkachenko-datadog", - "id": 121111529, - "login": "nikita-tkachenko-datadog", - "node_id": "U_kgDOBzgD6Q", - "organizations_url": "https://api.github.com/users/nikita-tkachenko-datadog/orgs", - "received_events_url": "https://api.github.com/users/nikita-tkachenko-datadog/received_events", - "repos_url": "https://api.github.com/users/nikita-tkachenko-datadog/repos", - "site_admin": false, - "starred_url": "https://api.github.com/users/nikita-tkachenko-datadog/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/nikita-tkachenko-datadog/subscriptions", - "type": "User", - "url": "https://api.github.com/users/nikita-tkachenko-datadog" - } - }, - "body": "# What Does This Do\r\n\r\n# Motivation\r\n\r\n# Additional Notes\r\n", - "changed_files": 3, - "closed_at": null, - "comments": 0, - "comments_url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/issues/1/comments", - "commits": 2, - "commits_url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/pulls/1/commits", - "created_at": "2024-09-11T15:08:02Z", - "deletions": 0, - "diff_url": "https://github.com/nikita-tkachenko-datadog/ci-test-project/pull/1.diff", - "draft": false, - "head": { - "label": "nikita-tkachenko-datadog:test-branch", - "ref": "test-branch", - "repo": { - "allow_auto_merge": false, - "allow_forking": true, - "allow_merge_commit": true, - "allow_rebase_merge": true, - "allow_squash_merge": true, - "allow_update_branch": false, - "archive_url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/{archive_format}{/ref}", - "archived": false, - "assignees_url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/assignees{/user}", - "blobs_url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/git/blobs{/sha}", - "branches_url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/branches{/branch}", - "clone_url": "https://github.com/nikita-tkachenko-datadog/ci-test-project.git", - "collaborators_url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/collaborators{/collaborator}", - "comments_url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/comments{/number}", - "commits_url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/commits{/sha}", - "compare_url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/compare/{base}...{head}", - "contents_url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/contents/{+path}", - "contributors_url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/contributors", - "created_at": "2023-01-09T10:24:06Z", - "default_branch": "main", - "delete_branch_on_merge": false, - "deployments_url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/deployments", - "description": null, - "disabled": false, - "downloads_url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/downloads", - "events_url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/events", - "fork": false, - "forks": 0, - "forks_count": 0, - "forks_url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/forks", - "full_name": "nikita-tkachenko-datadog/ci-test-project", - "git_commits_url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/git/commits{/sha}", - "git_refs_url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/git/tags{/sha}", - "git_url": "git://github.com/nikita-tkachenko-datadog/ci-test-project.git", - "has_discussions": false, - "has_downloads": true, - "has_issues": true, - "has_pages": false, - "has_projects": true, - "has_wiki": false, - "homepage": null, - "hooks_url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/hooks", - "html_url": "https://github.com/nikita-tkachenko-datadog/ci-test-project", - "id": 586827266, - "is_template": false, - "issue_comment_url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/issues/comments{/number}", - "issue_events_url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/issues/events{/number}", - "issues_url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/issues{/number}", - "keys_url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/keys{/key_id}", - "labels_url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/labels{/name}", - "language": "Shell", - "languages_url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/languages", - "license": null, - "merge_commit_message": "PR_TITLE", - "merge_commit_title": "MERGE_MESSAGE", - "merges_url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/merges", - "milestones_url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/milestones{/number}", - "mirror_url": null, - "name": "ci-test-project", - "node_id": "R_kgDOIvpGAg", - "notifications_url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/notifications{?since,all,participating}", - "open_issues": 1, - "open_issues_count": 1, - "owner": { - "avatar_url": "https://avatars.githubusercontent.com/u/121111529?v=4", - "events_url": "https://api.github.com/users/nikita-tkachenko-datadog/events{/privacy}", - "followers_url": "https://api.github.com/users/nikita-tkachenko-datadog/followers", - "following_url": "https://api.github.com/users/nikita-tkachenko-datadog/following{/other_user}", - "gists_url": "https://api.github.com/users/nikita-tkachenko-datadog/gists{/gist_id}", - "gravatar_id": "", - "html_url": "https://github.com/nikita-tkachenko-datadog", - "id": 121111529, - "login": "nikita-tkachenko-datadog", - "node_id": "U_kgDOBzgD6Q", - "organizations_url": "https://api.github.com/users/nikita-tkachenko-datadog/orgs", - "received_events_url": "https://api.github.com/users/nikita-tkachenko-datadog/received_events", - "repos_url": "https://api.github.com/users/nikita-tkachenko-datadog/repos", - "site_admin": false, - "starred_url": "https://api.github.com/users/nikita-tkachenko-datadog/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/nikita-tkachenko-datadog/subscriptions", - "type": "User", - "url": "https://api.github.com/users/nikita-tkachenko-datadog" - }, - "private": true, - "pulls_url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/pulls{/number}", - "pushed_at": "2024-09-11T15:12:25Z", - "releases_url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/releases{/id}", - "size": 90, - "squash_merge_commit_message": "COMMIT_MESSAGES", - "squash_merge_commit_title": "COMMIT_OR_PR_TITLE", - "ssh_url": "git@github.com:nikita-tkachenko-datadog/ci-test-project.git", - "stargazers_count": 0, - "stargazers_url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/stargazers", - "statuses_url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/statuses/{sha}", - "subscribers_url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/subscribers", - "subscription_url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/subscription", - "svn_url": "https://github.com/nikita-tkachenko-datadog/ci-test-project", - "tags_url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/tags", - "teams_url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/teams", - "topics": [], - "trees_url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/git/trees{/sha}", - "updated_at": "2024-09-11T13:41:11Z", - "url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project", - "use_squash_pr_title_as_default": false, - "visibility": "private", - "watchers": 0, - "watchers_count": 0, - "web_commit_signoff_required": false - }, - "sha": "df289512a51123083a8e6931dd6f57bb3883d4c4", - "user": { - "avatar_url": "https://avatars.githubusercontent.com/u/121111529?v=4", - "events_url": "https://api.github.com/users/nikita-tkachenko-datadog/events{/privacy}", - "followers_url": "https://api.github.com/users/nikita-tkachenko-datadog/followers", - "following_url": "https://api.github.com/users/nikita-tkachenko-datadog/following{/other_user}", - "gists_url": "https://api.github.com/users/nikita-tkachenko-datadog/gists{/gist_id}", - "gravatar_id": "", - "html_url": "https://github.com/nikita-tkachenko-datadog", - "id": 121111529, - "login": "nikita-tkachenko-datadog", - "node_id": "U_kgDOBzgD6Q", - "organizations_url": "https://api.github.com/users/nikita-tkachenko-datadog/orgs", - "received_events_url": "https://api.github.com/users/nikita-tkachenko-datadog/received_events", - "repos_url": "https://api.github.com/users/nikita-tkachenko-datadog/repos", - "site_admin": false, - "starred_url": "https://api.github.com/users/nikita-tkachenko-datadog/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/nikita-tkachenko-datadog/subscriptions", - "type": "User", - "url": "https://api.github.com/users/nikita-tkachenko-datadog" - } - }, - "html_url": "https://github.com/nikita-tkachenko-datadog/ci-test-project/pull/1", - "id": 2066570986, - "issue_url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/issues/1", - "labels": [], - "locked": false, - "maintainer_can_modify": false, - "merge_commit_sha": "d9a3212d0d5d1483426dbbdf0beea32ee50abcde", - "mergeable": null, - "mergeable_state": "unknown", - "merged": false, - "merged_at": null, - "merged_by": null, - "milestone": null, - "node_id": "PR_kwDOIvpGAs57LV7q", - "number": 1, - "patch_url": "https://github.com/nikita-tkachenko-datadog/ci-test-project/pull/1.patch", - "rebaseable": null, - "requested_reviewers": [], - "requested_teams": [], - "review_comment_url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/pulls/comments{/number}", - "review_comments": 0, - "review_comments_url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/pulls/1/comments", - "state": "open", - "statuses_url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/statuses/df289512a51123083a8e6931dd6f57bb3883d4c4", - "title": "Test commit", - "updated_at": "2024-09-11T15:12:26Z", - "url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/pulls/1", - "user": { - "avatar_url": "https://avatars.githubusercontent.com/u/121111529?v=4", - "events_url": "https://api.github.com/users/nikita-tkachenko-datadog/events{/privacy}", - "followers_url": "https://api.github.com/users/nikita-tkachenko-datadog/followers", - "following_url": "https://api.github.com/users/nikita-tkachenko-datadog/following{/other_user}", - "gists_url": "https://api.github.com/users/nikita-tkachenko-datadog/gists{/gist_id}", - "gravatar_id": "", - "html_url": "https://github.com/nikita-tkachenko-datadog", - "id": 121111529, - "login": "nikita-tkachenko-datadog", - "node_id": "U_kgDOBzgD6Q", - "organizations_url": "https://api.github.com/users/nikita-tkachenko-datadog/orgs", - "received_events_url": "https://api.github.com/users/nikita-tkachenko-datadog/received_events", - "repos_url": "https://api.github.com/users/nikita-tkachenko-datadog/repos", - "site_admin": false, - "starred_url": "https://api.github.com/users/nikita-tkachenko-datadog/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/nikita-tkachenko-datadog/subscriptions", - "type": "User", - "url": "https://api.github.com/users/nikita-tkachenko-datadog" - } - }, - "repository": { - "allow_forking": true, - "archive_url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/{archive_format}{/ref}", - "archived": false, - "assignees_url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/assignees{/user}", - "blobs_url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/git/blobs{/sha}", - "branches_url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/branches{/branch}", - "clone_url": "https://github.com/nikita-tkachenko-datadog/ci-test-project.git", - "collaborators_url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/collaborators{/collaborator}", - "comments_url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/comments{/number}", - "commits_url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/commits{/sha}", - "compare_url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/compare/{base}...{head}", - "contents_url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/contents/{+path}", - "contributors_url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/contributors", - "created_at": "2023-01-09T10:24:06Z", - "default_branch": "main", - "deployments_url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/deployments", - "description": null, - "disabled": false, - "downloads_url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/downloads", - "events_url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/events", - "fork": false, - "forks": 0, - "forks_count": 0, - "forks_url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/forks", - "full_name": "nikita-tkachenko-datadog/ci-test-project", - "git_commits_url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/git/commits{/sha}", - "git_refs_url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/git/tags{/sha}", - "git_url": "git://github.com/nikita-tkachenko-datadog/ci-test-project.git", - "has_discussions": false, - "has_downloads": true, - "has_issues": true, - "has_pages": false, - "has_projects": true, - "has_wiki": false, - "homepage": null, - "hooks_url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/hooks", - "html_url": "https://github.com/nikita-tkachenko-datadog/ci-test-project", - "id": 586827266, - "is_template": false, - "issue_comment_url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/issues/comments{/number}", - "issue_events_url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/issues/events{/number}", - "issues_url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/issues{/number}", - "keys_url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/keys{/key_id}", - "labels_url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/labels{/name}", - "language": "Shell", - "languages_url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/languages", - "license": null, - "merges_url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/merges", - "milestones_url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/milestones{/number}", - "mirror_url": null, - "name": "ci-test-project", - "node_id": "R_kgDOIvpGAg", - "notifications_url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/notifications{?since,all,participating}", - "open_issues": 1, - "open_issues_count": 1, - "owner": { - "avatar_url": "https://avatars.githubusercontent.com/u/121111529?v=4", - "events_url": "https://api.github.com/users/nikita-tkachenko-datadog/events{/privacy}", - "followers_url": "https://api.github.com/users/nikita-tkachenko-datadog/followers", - "following_url": "https://api.github.com/users/nikita-tkachenko-datadog/following{/other_user}", - "gists_url": "https://api.github.com/users/nikita-tkachenko-datadog/gists{/gist_id}", - "gravatar_id": "", - "html_url": "https://github.com/nikita-tkachenko-datadog", - "id": 121111529, - "login": "nikita-tkachenko-datadog", - "node_id": "U_kgDOBzgD6Q", - "organizations_url": "https://api.github.com/users/nikita-tkachenko-datadog/orgs", - "received_events_url": "https://api.github.com/users/nikita-tkachenko-datadog/received_events", - "repos_url": "https://api.github.com/users/nikita-tkachenko-datadog/repos", - "site_admin": false, - "starred_url": "https://api.github.com/users/nikita-tkachenko-datadog/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/nikita-tkachenko-datadog/subscriptions", - "type": "User", - "url": "https://api.github.com/users/nikita-tkachenko-datadog" - }, - "private": true, - "pulls_url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/pulls{/number}", - "pushed_at": "2024-09-11T15:12:25Z", - "releases_url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/releases{/id}", - "size": 90, - "ssh_url": "git@github.com:nikita-tkachenko-datadog/ci-test-project.git", - "stargazers_count": 0, - "stargazers_url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/stargazers", - "statuses_url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/statuses/{sha}", - "subscribers_url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/subscribers", - "subscription_url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/subscription", - "svn_url": "https://github.com/nikita-tkachenko-datadog/ci-test-project", - "tags_url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/tags", - "teams_url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/teams", - "topics": [], - "trees_url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project/git/trees{/sha}", - "updated_at": "2024-09-11T13:41:11Z", - "url": "https://api.github.com/repos/nikita-tkachenko-datadog/ci-test-project", - "visibility": "private", - "watchers": 0, - "watchers_count": 0, - "web_commit_signoff_required": false - }, - "sender": { - "avatar_url": "https://avatars.githubusercontent.com/u/121111529?v=4", - "events_url": "https://api.github.com/users/nikita-tkachenko-datadog/events{/privacy}", - "followers_url": "https://api.github.com/users/nikita-tkachenko-datadog/followers", - "following_url": "https://api.github.com/users/nikita-tkachenko-datadog/following{/other_user}", - "gists_url": "https://api.github.com/users/nikita-tkachenko-datadog/gists{/gist_id}", - "gravatar_id": "", - "html_url": "https://github.com/nikita-tkachenko-datadog", - "id": 121111529, - "login": "nikita-tkachenko-datadog", - "node_id": "U_kgDOBzgD6Q", - "organizations_url": "https://api.github.com/users/nikita-tkachenko-datadog/orgs", - "received_events_url": "https://api.github.com/users/nikita-tkachenko-datadog/received_events", - "repos_url": "https://api.github.com/users/nikita-tkachenko-datadog/repos", - "site_admin": false, - "starred_url": "https://api.github.com/users/nikita-tkachenko-datadog/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/nikita-tkachenko-datadog/subscriptions", - "type": "User", - "url": "https://api.github.com/users/nikita-tkachenko-datadog" - } -}