New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix/3321/fix stuck metric gardener importer #3382
Conversation
inputFile = tempMgOutput | ||
if (processExitCode != 0) { | ||
throw InternalException("Error while executing metric gardener! Process returned with status $processExitCode.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would prefer to create a custom exception class for MetricGardener errors.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Replaced shellRun function which caused this
Adjusted test to not fail on windows
Adjusted test to not fail on windows
Fixes build issues
726588b
to
41fe258
Compare
[CodeCharta Analysis] Kudos, SonarCloud Quality Gate passed! |
[CodeCharta Visualization] Kudos, SonarCloud Quality Gate passed! |
Fix metric gardener importer getting stuck on larger folders
A known issue in the ShellRun function caused extensive runtimes for folders where the output of metric gardener was long. This was fixed by swapping out the ShellRun function for ProcessBuilder and discarding the output of metric gardener.
Issue: #3321
Notes
Tested on Mac in zsh shell