Skip to content

Commit

Permalink
add require_git tag to git_requests.settings_response telemetry metric
Browse files Browse the repository at this point in the history
  • Loading branch information
anmarchenko committed Dec 17, 2024
1 parent c7eca65 commit 96f8c5a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions lib/datadog/ci/ext/telemetry.rb
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ module Telemetry
TAG_COVERAGE_ENABLED = "coverage_enabled"
TAG_ITR_ENABLED = "itr_enabled"
TAG_ITR_SKIP_ENABLED = "itrskip_enabled"
TAG_REQUIRE_GIT = "require_git"
TAG_EARLY_FLAKE_DETECTION_ENABLED = "early_flake_detection_enabled"
TAG_FLAKY_TEST_RETRIES_ENABLED = "flaky_test_retries_enabled"
# tags for test_session metric
Expand Down
3 changes: 2 additions & 1 deletion lib/datadog/ci/remote/library_settings_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ def fetch(test_session)
Ext::Telemetry::TAG_ITR_SKIP_ENABLED => library_settings.tests_skipping_enabled?.to_s,
Ext::Telemetry::TAG_EARLY_FLAKE_DETECTION_ENABLED => library_settings.early_flake_detection_enabled?.to_s,
Ext::Telemetry::TAG_FLAKY_TEST_RETRIES_ENABLED => library_settings.flaky_test_retries_enabled?.to_s,
Ext::Telemetry::TAG_ITR_ENABLED => library_settings.itr_enabled?.to_s
Ext::Telemetry::TAG_ITR_ENABLED => library_settings.itr_enabled?.to_s,
Ext::Telemetry::TAG_REQUIRE_GIT => library_settings.require_git?.to_s
}
)

Expand Down
2 changes: 2 additions & 0 deletions sig/datadog/ci/ext/telemetry.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,8 @@ module Datadog

TAG_ITR_SKIP_ENABLED: "itrskip_enabled"

TAG_REQUIRE_GIT: "require_git"

TAG_EARLY_FLAKE_DETECTION_ENABLED: "early_flake_detection_enabled"

TAG_FLAKY_TEST_RETRIES_ENABLED: "flaky_test_retries_enabled"
Expand Down
3 changes: 2 additions & 1 deletion spec/datadog/ci/remote/library_settings_client_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,8 @@
"itr_enabled" => "true",
"itrskip_enabled" => "false",
"early_flake_detection_enabled" => "true",
"flaky_test_retries_enabled" => "true"
"flaky_test_retries_enabled" => "true",
"require_git" => "false"
)
end

Expand Down

0 comments on commit 96f8c5a

Please sign in to comment.