Description
Description
Test generation timeout is exceeded 2-3 times for every StringExamples.
To Reproduce
- Run the 'UTBotJava' project in IntelliJ Idea 2022.2.2
- Install RC plugin build
- Open test generation dialog for utbot-sample/src/main/java/org/utbot/examples/strings/StringExamples.java
- Select both classes: IntPair and StringExamples, timeout is 60 sec
- Check when test generation finishes.
Expected behavior
Tests are supposed to be generated during the defined timeout of 60 sec.
Actual behavior
Tests are generation for about 4 minutes 45 sec - up to 5 minutes
Environment
Windows 10 Pro
RAM 32.0 GB
Processor Intel(R) Core(TM) i7-9700K CPU @ 3.60GHz 3.60 GHz
IntelliJ IDEA 2022.1.4
Heap memory allocated for IDEA is 2 GB
Additional context
Originally posted by @alisevych in #1102 (comment)
@dtim has made some investigation on the Release 2022.10 build
Metadata
Metadata
Assignees
Type
Projects
Status
Done
Activity
alisevych commentedon Oct 11, 2022
probably related to other performance issues:
#1028
#1027
dtim commentedon Oct 12, 2022
I just tried to reproduce this issue locally (I used a debug IDE instead of the RC plugin because the linked RC plugin does not contain the fix for running child processes in Linux, so no tests can be generated at all). For me (Ubuntu 20.04.5 LTS,
main
branch with last commit5af1f4888cbcf5d96ab935af37234b9dc0515962
), test generations correctly stops in 60 seconds. Of course, most of tests are fuzzed, because the symbolic engine requires more time to process all methods). Method coverage is 100%, line coverage is 85%.Domonion commentedon Oct 12, 2022
I also tried to reproduce in on W10,
312e34795e18decee752e98cc2f3e3499e21194e
, also 60secdtim commentedon Oct 12, 2022
With fuzzer turned off in
settings.properties
, test generation also stops in 60 seconds for me. I tried to generate tests in the empty test root, and not I am unable to actually run these tests, but it seems that it is related to some AWT issues under Linux in the debug Idea itself. I'll check it out one more time when I can run the plugin binary in my main Idea.Hardware specs:
Domonion commentedon Oct 12, 2022
Repro step-by-step:
Domonion commentedon Oct 12, 2022
Also following exception is generated
alisevych commentedon Oct 17, 2022
Verified on the build from latest main - Not reproducing.