made better reason for failure (to then count the

ones that are unsuccessfull)
This commit is contained in:
Karma Riuk
2025-03-17 19:58:37 +01:00
parent 5aa7054ea2
commit 6a857b2a9d

View File

@ -110,8 +110,8 @@ def process_pull(repo: Repository, pr: PullRequest, dataset: Dataset, repos_dir:
ensure_full_history(repo_path)
run_git_cmd(["checkout", pr.merge_commit_sha], repo_path)
except subprocess.CalledProcessError as e:
entry.metadata.last_cmd_error_msg = f"stdout: {e.stdout}\n\n\nstderr: {e.stderr}"
entry.metadata.reason_for_failure = f"Couldn't checkout the commit '{pr.merge_commit_sha}'"
entry.metadata.last_cmd_error_msg = f"{e.stderr}"
entry.metadata.reason_for_failure = f"Couldn't checkout the commit"
entry.metadata.successful = False
return