-
Notifications
You must be signed in to change notification settings - Fork 46
Go. Bug fixes #2031
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
Go. Bug fixes #2031
Conversation
throw TimeoutException("Timeout exceeded: Worker didn't finish") | ||
val processOutput = InputStreamReader(process.inputStream).readText() | ||
throw TimeoutException( | ||
StringBuilder() |
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.
You can use buildString { }
to do the same
@@ -112,7 +112,13 @@ object GoTestCasesGenerator { | |||
val processHasExited = process.waitFor(endOfWorkerExecutionTimeout, TimeUnit.MILLISECONDS) | |||
if (!processHasExited) { | |||
process.destroy() | |||
throw TimeoutException("Timeout exceeded: Worker didn't finish") | |||
val processOutput = InputStreamReader(process.inputStream).readText() |
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.
Output can be huge. Do this read really necessary?
@@ -132,7 +138,13 @@ object GoTestCasesGenerator { | |||
val processHasExited = process.waitFor(endOfWorkerExecutionTimeout, TimeUnit.MILLISECONDS) | |||
if (!processHasExited) { | |||
process.destroy() | |||
logger.error { "Timeout exceeded: Worker didn't finish" } | |||
val processOutput = InputStreamReader(process.inputStream).readText() |
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.
Same comments as before
* Fix bug with nested unexported structs * Delete timeout for worker execution * Add logging when worker doesn't finish * Add sample file * Add message about failed parsing of source code analysis result * Change StringBuilder on buildString * Add message about failed starting the worker (cherry picked from commit 86a20d5)
Description
How to test
Manual tests
Test on
utbot-go/go-samples/simple/samples.go
andutbot-go/go-samples/simple/supported_types.go
files.Self-check list
Check off the item if the statement is true. Hint: [x] is a marked item.
Please do not delete the list or its items.