Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8235774

jdk/jshell/ToolTabSnippetTest.java timed out waiting for output

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P2 P2
    • tbd
    • 14, 17, 20, 21
    • tools
    • x86_64
    • os_x

      The following test failed in the JDK14 CI:

      jdk/jshell/ToolTabSnippetTest.java

      Here are snippets from the two failing test cases:

       \u0005new JShellTest
       \u0005new JShellTest
      \u001b[?2004l\u001b[?2004h \u0005
      \u001b[?2004l\u001b[?2004h \u0005/exit
      \u001b[?2004ltest ToolTabSnippetTest.testExpression(): failure
      java.lang.IllegalStateException: Timeout waiting for: \\u001B\\[1mjshelltest.JShellTest\\u001B\\[0m\\u000D*\\u000AJShellTest 0\\u000D*\\u000A\\u000D? \\u0005new JShellTest, actual output so far: \\u000D \\u0005new JShellTest
      at UITesting.waitOutput(UITesting.java:172)
      at UITesting.waitOutput(UITesting.java:141)
      at ToolTabSnippetTest.lambda$testExpression$0(ToolTabSnippetTest.java:90)
      at UITesting.doRunTest(UITesting.java:112)
      at ToolTabSnippetTest.testExpression(ToolTabSnippetTest.java:62)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:564)
      at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:85)
      at org.testng.internal.Invoker.invokeMethod(Invoker.java:639)
      at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:821)
      at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1131)
      at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:124)
      at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:108)
      at org.testng.TestRunner.privateRun(TestRunner.java:773)
      at org.testng.TestRunner.run(TestRunner.java:623)
      at org.testng.SuiteRunner.runTest(SuiteRunner.java:357)
      at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:352)
      at org.testng.SuiteRunner.privateRun(SuiteRunner.java:310)
      at org.testng.SuiteRunner.run(SuiteRunner.java:259)
      at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
      at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
      at org.testng.TestNG.runSuitesSequentially(TestNG.java:1185)
      at org.testng.TestNG.runSuitesLocally(TestNG.java:1110)
      at org.testng.TestNG.run(TestNG.java:1018)
      at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:94)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:564)
      at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:298)
      at java.base/java.lang.Thread.run(Thread.java:832)

      and the second failure:

      | Welcome to JShell -- Version 14-ea
      | For an introduction type: /help intro
      \u001b[?2004h \u0005String xyzAA;
      \u001b[?2004ltest ToolTabSnippetTest.testNoRepeat(): failure
      java.lang.IllegalStateException: Timeout waiting for: \\u0005, actual output so far: String xyzAA;\\u000D\\u000A\\u001B[?2004l
      at UITesting.waitOutput(UITesting.java:172)
      at UITesting.waitOutput(UITesting.java:141)
      at ToolTabSnippetTest.lambda$testNoRepeat$2(ToolTabSnippetTest.java:247)
      at UITesting.doRunTest(UITesting.java:112)
      at ToolTabSnippetTest.testNoRepeat(ToolTabSnippetTest.java:245)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:564)
      at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:85)
      at org.testng.internal.Invoker.invokeMethod(Invoker.java:639)
      at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:821)
      at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1131)
      at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:124)
      at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:108)
      at org.testng.TestRunner.privateRun(TestRunner.java:773)
      at org.testng.TestRunner.run(TestRunner.java:623)
      at org.testng.SuiteRunner.runTest(SuiteRunner.java:357)
      at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:352)
      at org.testng.SuiteRunner.privateRun(SuiteRunner.java:310)
      at org.testng.SuiteRunner.run(SuiteRunner.java:259)
      at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
      at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
      at org.testng.TestNG.runSuitesSequentially(TestNG.java:1185)
      at org.testng.TestNG.runSuitesLocally(TestNG.java:1110)
      at org.testng.TestNG.run(TestNG.java:1018)
      at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:94)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:564)
      at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:298)
      at java.base/java.lang.Thread.run(Thread.java:832)


      There are also a couple of these on stderr:

      java.lang.InterruptedException

      And stderr ends with this:

      JavaTest Message: Problem cleaning up the following threads:
      AgentVMThread
        at java.base@14-ea/java.lang.Object.wait(Native Method)
        at UITesting.waitOutput(UITesting.java:175)
        at UITesting.waitOutput(UITesting.java:141)
        at ToolTabSnippetTest.lambda$testNoRepeat$2(ToolTabSnippetTest.java:247)
        at ToolTabSnippetTest$$Lambda$2056/0x00000007c0736840.test(Unknown Source)
        at UITesting.doRunTest(UITesting.java:112)
        at ToolTabSnippetTest.testNoRepeat(ToolTabSnippetTest.java:245)
        at java.base@14-ea/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base@14-ea/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base@14-ea/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base@14-ea/java.lang.reflect.Method.invoke(Method.java:564)
        at app//org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:85)
        at app//org.testng.internal.Invoker.invokeMethod(Invoker.java:639)
        at app//org.testng.internal.Invoker.invokeTestMethod(Invoker.java:821)
        at app//org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1131)
        at app//org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:124)
        at app//org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:108)
        at app//org.testng.TestRunner.privateRun(TestRunner.java:773)
        at app//org.testng.TestRunner.run(TestRunner.java:623)
        at app//org.testng.SuiteRunner.runTest(SuiteRunner.java:357)
        at app//org.testng.SuiteRunner.runSequentially(SuiteRunner.java:352)
        ...

      However, it appears that the last failure mode is a result
      of the other failures.

      Starting this bug as a P2 since this is a Tier1 test failure.

            jlahoda Jan Lahoda
            dcubed Daniel Daugherty
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: