DataDog / datadog-ci-rb

Ruby library for Datadog test visibility
https://docs.datadoghq.com/continuous_integration/tests/ruby
Other
8 stars 4 forks source link

[CIVIS-3172] use repository name as default test service name #104

Closed anmarchenko closed 9 months ago

anmarchenko commented 9 months ago

What does this PR do? In order to simplify onboarding for new customers it provides better default service name when none is provided.

Additional Notes

How to test the change? Unit tests are provided.

Example project without service name configured: https://github.com/anmarchenko/sidekiq/tree/anmarchenko/datadog-ci-visibility

Service is set to repository name:

image
codecov-commenter commented 9 months ago

Codecov Report

Attention: 3 lines in your changes are missing coverage. Please review.

Comparison is base (c56656c) 99.15% compared to head (f8e5691) 99.11%. Report is 5 commits behind head on main.

Files Patch % Lines
lib/datadog/ci/utils/git.rb 84.61% 2 Missing :warning:
...adog/ci/contrib/cucumber/configuration/settings.rb 66.66% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #104 +/- ## ========================================== - Coverage 99.15% 99.11% -0.05% ========================================== Files 147 147 Lines 6289 6338 +49 Branches 264 269 +5 ========================================== + Hits 6236 6282 +46 - Misses 53 56 +3 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.