Skip to content

use check_output for git log fetching so that it can fail more easily#3232

Merged
sgoggins merged 1 commit intochaoss:mainfrom
MoralCode:hang
Jul 18, 2025
Merged

use check_output for git log fetching so that it can fail more easily#3232
sgoggins merged 1 commit intochaoss:mainfrom
MoralCode:hang

Conversation

@MoralCode
Copy link
Contributor

Description
This PR attempts to address the problem of analyze_commits_in_parallel hanging as mentioned in #3228

It does so by using the same check_output method of running git shell commands as can be seen in the rest of the analyze_commit function. This method of running commands has a lot more error handling capabilities than Popen (which was used before) and can thus fail on conditions such as a nonzero exit code, allowing the facade task to fail and therefore allowing other tasks to run in that time (while allowing us to go in and diagnose the failure)

Signed commits

  • Yes, I signed my commits.

Signed-off-by: Adrian Edwards <adredwar@redhat.com>
@MoralCode MoralCode linked an issue Jul 17, 2025 that may be closed by this pull request
Copy link
Member

@sgoggins sgoggins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@MoralCode : Does this possibly fix the facade stall issue @cdolfi identied on your instance?

@sgoggins sgoggins added the bug-fix Fixes a bug label Jul 18, 2025
@sgoggins sgoggins merged commit 1190187 into chaoss:main Jul 18, 2025
10 checks passed
@MoralCode
Copy link
Contributor Author

@MoralCode : Does this possibly fix the facade stall issue @cdolfi identied on your instance?

Possibly, but I was hoping that others could help test and confirm that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug-fix Fixes a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Analyze_commit_in_parallel lock out: 5 days and none completed

2 participants