diff --git a/lib/datadog/ci/git/local_repository.rb b/lib/datadog/ci/git/local_repository.rb index cc6f96ab..a100ab9c 100644 --- a/lib/datadog/ci/git/local_repository.rb +++ b/lib/datadog/ci/git/local_repository.rb @@ -195,10 +195,14 @@ def self.git_commits end def self.git_commits_rev_list(included_commits:, excluded_commits:) + p "git_commits_rev_list" Telemetry.git_command(Ext::Telemetry::Command::GET_OBJECTS) included_commits = filter_invalid_commits(included_commits).join(" ") excluded_commits = filter_invalid_commits(excluded_commits).map! { |sha| "^#{sha}" }.join(" ") + p "included: #{included_commits}" + p "excluded: #{excluded_commits}" + res = nil duration_ms = Core::Utils::Time.measure(:float_millisecond) do @@ -212,10 +216,14 @@ def self.git_commits_rev_list(included_commits:, excluded_commits:) ) end + p "result: #{res}" + Telemetry.git_command_ms(Ext::Telemetry::Command::GET_OBJECTS, duration_ms) res rescue => e + p "error!!!!!!!!!!" + p e log_failure(e, "git commits rev list") telemetry_track_error(e, Ext::Telemetry::Command::GET_OBJECTS) nil @@ -223,7 +231,9 @@ def self.git_commits_rev_list(included_commits:, excluded_commits:) def self.git_generate_packfiles(included_commits:, excluded_commits:, path:) p "git_generate_packfiles" - p path + p "path: #{path}" + p "included_commits: #{included_commits}" + p "excluded_commits: #{excluded_commits}" return nil unless File.exist?(path) commit_tree = git_commits_rev_list(included_commits: included_commits, excluded_commits: excluded_commits)