GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Test generation timeout is exceeded several times for BaseStreamExample · Issue #1027 · UnitTestBot/UTBotJava

Test generation timeout is exceeded several times for BaseStreamExample #1027

New issue
Copy link
New issue
Copy link
Closed
Closed
Test generation timeout is exceeded several times for BaseStreamExample#1027
Copy link
Assignees
alisevych
Labels
ctg-bugIssue is a bugIssue is a bugstatus-verifiedBug fix is verifiedBug fix is verified
Milestone
2022.10.1 Release

Description

@alisevych
alisevych
opened on Sep 28, 2022
Issue body actions

Description

BaseStreamExample test generation produces many failures in Concrete Execution.
Test generation timeout was set to 20 sec.
Test generation continued for 2 minutes 5 sec.

To Reproduce

  1. Run the 'UTBotJava' project in IntelliJ Idea 2022.1.4
  2. Install one of the latest from main branch
  3. Open test generation dialog for utbot-sample/src/main/java/org/utbot/examples/stream/BaseStreamExample.java
  4. Test generation timeout was set to 20 sec.
  5. Check when test generation finishes.
  6. Check generated test class.

Expected behavior

Tests are supposed to be generated during the defined timeout of 20 sec.

Actual behavior

Tests are generation for 2+ minutes
An error test is generated with information about errors in the concrete executor.
There are many java.lang.IllegalStateException: Can't find method <init>()V in org.utbot.examples.stream.BaseStreamExample$CustomCollection in concrete execution logs

Visual proofs (screenshots, logs, images)

    ///region Errors report for customCollectionStreamExample

    public void testCustomCollectionStreamExample_errors() {
        // Couldn't generate some tests. List of errors:
        // 
        // 333 occurrences of:
        // Default concrete execution failed

    }
    ///endregion
16:14:07.317 ERROR| java.lang.IllegalStateException: Can't find method <init>()V in org.utbot.examples.stream.BaseStreamExample$CustomCollection
	at org.utbot.framework.plugin.api.util.IdUtilKt.getConstructor(IdUtil.kt:438)
	at org.utbot.framework.concrete.MockValueConstructor.call(MockValueConstructor.kt:482)
	at org.utbot.framework.concrete.MockValueConstructor.updateWithExecutableCallModel(MockValueConstructor.kt:421)
	at org.utbot.framework.concrete.MockValueConstructor.constructFromAssembleModel(MockValueConstructor.kt:362)
	at org.utbot.framework.concrete.MockValueConstructor.construct(MockValueConstructor.kt:132)
	at org.utbot.framework.concrete.MockValueConstructor.constructMethodParameters(MockValueConstructor.kt:107)
	at org.utbot.framework.concrete.UtExecutionInstrumentation.invoke(UtExecutionInstrumentation.kt:156)
	at org.utbot.framework.concrete.UtExecutionInstrumentation.invoke(UtExecutionInstrumentation.kt:118)
	at org.utbot.instrumentation.process.ChildProcessKt$setup$2.invoke(ChildProcess.kt:211)
	at org.utbot.instrumentation.process.ChildProcessKt$setup$2.invoke(ChildProcess.kt:208)
	at org.utbot.instrumentation.process.ChildProcessKt$measureExecutionForTermination$2$1$1.invoke(ChildProcess.kt:190)
	at org.utbot.instrumentation.process.ChildProcessKt$measureExecutionForTermination$1.invokeSuspend(ChildProcess.kt:174)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
	at kotlinx.coroutines.EventLoopImplBase.processNextEvent(EventLoop.common.kt:284)
	at kotlinx.coroutines.BlockingCoroutine.joinBlocking(Builders.kt:85)
	at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking(Builders.kt:59)
	at kotlinx.coroutines.BuildersKt.runBlocking(Unknown Source)
	at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking$default(Builders.kt:38)
	at kotlinx.coroutines.BuildersKt.runBlocking$default(Unknown Source)
	at org.utbot.instrumentation.process.ChildProcessKt.measureExecutionForTermination(ChildProcess.kt:171)
	at org.utbot.instrumentation.process.ChildProcessKt.access$measureExecutionForTermination(ChildProcess.kt:1)
	at org.utbot.instrumentation.process.ChildProcessKt$measureExecutionForTermination$2$1.invokeSuspend(ChildProcess.kt:188)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
	at kotlinx.coroutines.EventLoopImplBase.processNextEvent(EventLoop.common.kt:284)
	at kotlinx.coroutines.BlockingCoroutine.joinBlocking(Builders.kt:85)
	at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking(Builders.kt:59)
	at kotlinx.coroutines.BuildersKt.runBlocking(Unknown Source)
	at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking$default(Builders.kt:38)
	at kotlinx.coroutines.BuildersKt.runBlocking$default(Unknown Source)
	at org.utbot.instrumentation.process.ChildProcessKt$measureExecutionForTermination$2.invoke(ChildProcess.kt:187)
	at com.jetbrains.rd.framework.IRdEndpoint$set$1.invoke(TaskInterfaces.kt:182)
	at com.jetbrains.rd.framework.IRdEndpoint$set$1.invoke(TaskInterfaces.kt:182)
	at com.jetbrains.rd.framework.impl.RdCall.onWireReceived(RdTask.kt:360)
	at com.jetbrains.rd.framework.MessageBroker$invoke$2$2.invoke(MessageBroker.kt:57)
	at com.jetbrains.rd.framework.MessageBroker$invoke$2$2.invoke(MessageBroker.kt:56)
	at com.jetbrains.rd.framework.impl.ProtocolContexts.readMessageContextAndInvoke(ProtocolContexts.kt:148)
	at com.jetbrains.rd.framework.MessageBroker$invoke$2.invoke(MessageBroker.kt:56)
	at com.jetbrains.rd.framework.MessageBroker$invoke$2.invoke(MessageBroker.kt:54)
	at com.jetbrains.rd.util.threading.SingleThreadSchedulerBase.queue$lambda-3(SingleThreadScheduler.kt:41)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	at java.base/java.lang.Thread.run(Thread.java:829)

Environment

Windows 10 Pro
IntelliJ IDEA 2022.1.4
Gradle
JDK 11

Additional context

Fuzzing - Symbolic is set to default 5% - 95%

Activity

  1. alisevych
    added
    ctg-bugIssue is a bugIssue is a bug
    on Sep 28, 2022
  2. alisevych
    changed the title [-]Test generation for BaseStreamExample exceeds timeout in several times[/-] [+]Test generation timeout is exceeded several times for BaseStreamExample[/+] on Sep 28, 2022
  3. alisevych
    assigned
    sergeypospelov
    on Sep 28, 2022
  4. korifey
    added this to UTBot Javaon Sep 28, 2022
  5. korifey
    moved this to Todo in UTBot Javaon Sep 28, 2022
  6. alisevych
    assigned
    Damtev
    and unassigned
    sergeypospelov
    on Sep 30, 2022
  7. alisevych
    added this to the 2022.10.1 Release milestone on Oct 7, 2022
  8. alisevych commented on Oct 14, 2022

    @alisevych
    alisevych
    on Oct 14, 2022
    MemberAuthor
    More actions

    Seems to be fixed by #1151

  9. alisevych
    closed this as completedon Oct 14, 2022
  10. Repository owner moved this from Todo to Done in UTBot Javaon Oct 14, 2022
  11. alisevych
    assigned
    alisevych
    and unassigned
    Damtev
    on Oct 14, 2022
  12. alisevych
    added
    status-verifiedBug fix is verifiedBug fix is verified
    on Oct 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @alisevych
    alisevych

Labels

ctg-bugIssue is a bugIssue is a bugstatus-verifiedBug fix is verifiedBug fix is verified

Type

No type

Projects

  • UTBot Java
    Status
    Done
    Show more project fields

Milestone

  • 2022.10.1 Release

Relationships

None yet

Development

No branches or pull requests

Issue actions

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.