Open jasondamour opened 1 week ago
I've run into this as well. Digging into the code a bit, it turns out that this code path isn't trying to gather any metadata that can be provided (today) via environment variables. Instead, it's gathering a list of up to 1000 commits in the past month (git command), which it then uploads to Datadog. Presumably this is needed for error attribution or other features related to change detection.
I'm working on a PR that'll be either:
.git
directory is absent; or.git
directory, if I find any)
Hello,
Our tests run in CI without a
.git/
directory intentionally. We're configuring CI Visibility git metadata withDD_GIT_REPOSITORY_URL
,DD_GIT_BRANCH
, andDD_GIT_COMMIT_SHA
. However, the ddtrace agent is still printing lots of errors about not finding git. Our configuration is below:And tests are executed with
pytest ..... --ddtrace
:Asks:
DD_TRACE_GIT_METADATA_ENABLED
variable) since git metadata is optional anyways