Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-64528

ConfigurationTest takes long time

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      With https://github.com/jenkinsci/flexible-publish-plugin/pull/19,
      running tests on docker results ConfigurationTest takes really long time and some tests failed with SocketTimeout exceptions.

        Attachments

          Activity

          Hide
          ikedam ikedam added a comment -
          # mvn test -Dtest=ConfigurationTest#testExecutionStrategy
          ...
          [ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 125.921 s <<< FAILURE! - in org.jenkins_ci.plugins.flexible_publish.ConfigurationTest
          [ERROR] org.jenkins_ci.plugins.flexible_publish.ConfigurationTest.testExecutionStrategy  Time elapsed: 125.823 s  <<< ERROR!
          java.net.SocketTimeoutException: Read timed out
                  at java.net.SocketInputStream.socketRead0(Native Method)
                  at java.net.SocketInputStream.socketRead(SocketInputStream.java:116)
                  at java.net.SocketInputStream.read(SocketInputStream.java:171)
                  at java.net.SocketInputStream.read(SocketInputStream.java:141)
                  at hidden.jth.org.apache.http.impl.conn.LoggingInputStream.read(LoggingInputStream.java:84)
                  at hidden.jth.org.apache.http.impl.io.SessionInputBufferImpl.streamRead(SessionInputBufferImpl.java:137)
                  at hidden.jth.org.apache.http.impl.io.SessionInputBufferImpl.fillBuffer(SessionInputBufferImpl.java:153)
                  at hidden.jth.org.apache.http.impl.io.SessionInputBufferImpl.readLine(SessionInputBufferImpl.java:280)
                  at hidden.jth.org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:138)
                  at hidden.jth.org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:56)
                  at hidden.jth.org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:259)
                  at hidden.jth.org.apache.http.impl.DefaultBHttpClientConnection.receiveResponseHeader(DefaultBHttpClientConnection.java:163)
                  at hidden.jth.org.apache.http.impl.conn.CPoolProxy.receiveResponseHeader(CPoolProxy.java:157)
                  at hidden.jth.org.apache.http.protocol.HttpRequestExecutor.doReceiveResponse(HttpRequestExecutor.java:273)
                  at hidden.jth.org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:125)
                  at hidden.jth.org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:272)
                  at hidden.jth.org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:186)
                  at hidden.jth.org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89)
                  at hidden.jth.org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)
                  at hidden.jth.org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185)
                  at hidden.jth.org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:72)
                  at com.gargoylesoftware.htmlunit.HttpWebConnection.getResponse(HttpWebConnection.java:193)
                  at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseFromWebConnection(WebClient.java:1537)
                  at com.gargoylesoftware.htmlunit.WebClient.loadWebResponse(WebClient.java:1456)
                  at org.jvnet.hudson.test.JenkinsRule$WebClient.loadWebResponse(JenkinsRule.java:2301)
                  at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:447)
                  at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:368)
                  at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:520)
                  at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:501)
                  at org.jvnet.hudson.test.JenkinsRule$WebClient.getPage(JenkinsRule.java:2568)
                  at org.jenkins_ci.plugins.flexible_publish.ConfigurationTest.reconfigure(ConfigurationTest.java:117)
                  at org.jenkins_ci.plugins.flexible_publish.ConfigurationTest.testExecutionStrategy(ConfigurationTest.java:592)
                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                  at java.lang.reflect.Method.invoke(Method.java:498)
                  at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
                  at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
                  at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
                  at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
                  at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
                  at org.jvnet.hudson.test.JenkinsRule$1.evaluate(JenkinsRule.java:601)
                  at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:288)
                  at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:282)
                  at java.util.concurrent.FutureTask.run(FutureTask.java:266)
                  at java.lang.Thread.run(Thread.java:748)
          
          Show
          ikedam ikedam added a comment - # mvn test -Dtest=ConfigurationTest#testExecutionStrategy ... [ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 125.921 s <<< FAILURE! - in org.jenkins_ci.plugins.flexible_publish.ConfigurationTest [ERROR] org.jenkins_ci.plugins.flexible_publish.ConfigurationTest.testExecutionStrategy Time elapsed: 125.823 s <<< ERROR! java.net.SocketTimeoutException: Read timed out at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.socketRead(SocketInputStream.java:116) at java.net.SocketInputStream.read(SocketInputStream.java:171) at java.net.SocketInputStream.read(SocketInputStream.java:141) at hidden.jth.org.apache.http.impl.conn.LoggingInputStream.read(LoggingInputStream.java:84) at hidden.jth.org.apache.http.impl.io.SessionInputBufferImpl.streamRead(SessionInputBufferImpl.java:137) at hidden.jth.org.apache.http.impl.io.SessionInputBufferImpl.fillBuffer(SessionInputBufferImpl.java:153) at hidden.jth.org.apache.http.impl.io.SessionInputBufferImpl.readLine(SessionInputBufferImpl.java:280) at hidden.jth.org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:138) at hidden.jth.org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:56) at hidden.jth.org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:259) at hidden.jth.org.apache.http.impl.DefaultBHttpClientConnection.receiveResponseHeader(DefaultBHttpClientConnection.java:163) at hidden.jth.org.apache.http.impl.conn.CPoolProxy.receiveResponseHeader(CPoolProxy.java:157) at hidden.jth.org.apache.http.protocol.HttpRequestExecutor.doReceiveResponse(HttpRequestExecutor.java:273) at hidden.jth.org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:125) at hidden.jth.org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:272) at hidden.jth.org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:186) at hidden.jth.org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89) at hidden.jth.org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110) at hidden.jth.org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185) at hidden.jth.org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:72) at com.gargoylesoftware.htmlunit.HttpWebConnection.getResponse(HttpWebConnection.java:193) at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseFromWebConnection(WebClient.java:1537) at com.gargoylesoftware.htmlunit.WebClient.loadWebResponse(WebClient.java:1456) at org.jvnet.hudson.test.JenkinsRule$WebClient.loadWebResponse(JenkinsRule.java:2301) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:447) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:368) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:520) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:501) at org.jvnet.hudson.test.JenkinsRule$WebClient.getPage(JenkinsRule.java:2568) at org.jenkins_ci.plugins.flexible_publish.ConfigurationTest.reconfigure(ConfigurationTest.java:117) at org.jenkins_ci.plugins.flexible_publish.ConfigurationTest.testExecutionStrategy(ConfigurationTest.java:592) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26) at org.jvnet.hudson.test.JenkinsRule$1.evaluate(JenkinsRule.java:601) at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:288) at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:282) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.lang. Thread .run( Thread .java:748)
          Hide
          ikedam ikedam added a comment -

          Many warnings are output inside Jenkins:

           121.291 [id=21]        WARNING h.ExpressionFactory2$JexlExpression#evaluate: Caught exception evaluating: h.createRenderOnDemandProxy(context,attrs.capture) in /jenkins/job/test0/configure. Reason: java.lang.IllegalStateException: Invalid for read: id=node01ebszxh4dw5kkmzgxysduwwbe0 not resident
          java.lang.IllegalStateException: Invalid for read: id=node01ebszxh4dw5kkmzgxysduwwbe0 not resident
                  at org.eclipse.jetty.server.session.Session.checkValidForRead(Session.java:698)
                  at org.eclipse.jetty.server.session.Session.getAttribute(Session.java:715)
                  at org.kohsuke.stapler.bind.BoundObjectTable.resolve(BoundObjectTable.java:94)
                  at org.kohsuke.stapler.bind.BoundObjectTable.bind(BoundObjectTable.java:58)
                  at org.kohsuke.stapler.bind.BoundObjectTable.bind(BoundObjectTable.java:65)
                  at org.kohsuke.stapler.RequestImpl.createJavaScriptProxy(RequestImpl.java:141)
                  at hudson.Functions.createRenderOnDemandProxy(Functions.java:2163)
          ...
          
           121.295 [id=21]        WARNING o.k.stapler.jelly.AdjunctTag#doTag: AdjunctManager is not installed for this application. Skipping <adjunct> tags
          java.lang.Exception
                  at org.kohsuke.stapler.jelly.AdjunctTag.doTag(AdjunctTag.java:74)
          ...
          

          each logs are output several times.

          Show
          ikedam ikedam added a comment - Many warnings are output inside Jenkins: 121.291 [id=21] WARNING h.ExpressionFactory2$JexlExpression#evaluate: Caught exception evaluating: h.createRenderOnDemandProxy(context,attrs.capture) in /jenkins/job/test0/configure. Reason: java.lang.IllegalStateException: Invalid for read: id=node01ebszxh4dw5kkmzgxysduwwbe0 not resident java.lang.IllegalStateException: Invalid for read: id=node01ebszxh4dw5kkmzgxysduwwbe0 not resident at org.eclipse.jetty.server.session.Session.checkValidForRead(Session.java:698) at org.eclipse.jetty.server.session.Session.getAttribute(Session.java:715) at org.kohsuke.stapler.bind.BoundObjectTable.resolve(BoundObjectTable.java:94) at org.kohsuke.stapler.bind.BoundObjectTable.bind(BoundObjectTable.java:58) at org.kohsuke.stapler.bind.BoundObjectTable.bind(BoundObjectTable.java:65) at org.kohsuke.stapler.RequestImpl.createJavaScriptProxy(RequestImpl.java:141) at hudson.Functions.createRenderOnDemandProxy(Functions.java:2163) ... 121.295 [id=21] WARNING o.k.stapler.jelly.AdjunctTag#doTag: AdjunctManager is not installed for this application. Skipping <adjunct> tags java.lang.Exception at org.kohsuke.stapler.jelly.AdjunctTag.doTag(AdjunctTag.java:74) ... each logs are output several times.
          Hide
          ikedam ikedam added a comment -

          Succeeding tests also takes long time:

          # mvn test -Dtest=ConfigurationTest#testWithoutPublishers
          ...
          === Starting testWithoutPublishers(org.jenkins_ci.plugins.flexible_publish.ConfigurationTest)
             0.142 [id=14]        INFO    o.jvnet.hudson.test.WarExploder#explode: Picking up existing exploded jenkins.war at /workspace/target/jenkins-for-test
             0.565 [id=14]        INFO    o.jvnet.hudson.test.JenkinsRule#createWebServer: Running on http://localhost:42163/jenkins/
             4.949 [id=28]        INFO    jenkins.InitReactorRunner$1#onAttained: Started initialization
             5.477 [id=30]        INFO    hudson.PluginManager#considerDetachedPlugin: Loading a detached plugin as a dependency: /workspace/target/tmp/jenkins3755368883337197337/plugins/trilead-api.jpi
             5.623 [id=38]        INFO    hudson.PluginManager#considerDetachedPlugin: Loading a detached plugin as a dependency: /workspace/target/tmp/jenkins3755368883337197337/plugins/jdk-tool.jpi
             8.311 [id=28]        INFO    jenkins.InitReactorRunner$1#onAttained: Listed all plugins
            10.724 [id=28]        INFO    jenkins.InitReactorRunner$1#onAttained: Prepared all plugins
            10.743 [id=30]        INFO    jenkins.InitReactorRunner$1#onAttained: Started all plugins
            10.745 [id=35]        INFO    jenkins.InitReactorRunner$1#onAttained: Augmented all extensions
            14.463 [id=39]        INFO    jenkins.InitReactorRunner$1#onAttained: System config loaded
            14.464 [id=26]        INFO    jenkins.InitReactorRunner$1#onAttained: System config adapted
            14.466 [id=27]        INFO    jenkins.InitReactorRunner$1#onAttained: Loaded all jobs
            14.468 [id=41]        INFO    jenkins.InitReactorRunner$1#onAttained: Configuration for all jobs updated
            14.820 [id=34]        INFO    jenkins.InitReactorRunner$1#onAttained: Completed initialization
           100.646 [id=14]        INFO    jenkins.model.Jenkins#cleanUp: Stopping Jenkins
           101.067 [id=14]        INFO    jenkins.model.Jenkins#cleanUp: Jenkins stopped
          [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 102.67 s - in org.jenkins_ci.plugins.flexible_publish.ConfigurationTest
          

          It looks strange.

          Show
          ikedam ikedam added a comment - Succeeding tests also takes long time: # mvn test -Dtest=ConfigurationTest#testWithoutPublishers ... === Starting testWithoutPublishers(org.jenkins_ci.plugins.flexible_publish.ConfigurationTest) 0.142 [id=14] INFO o.jvnet.hudson.test.WarExploder#explode: Picking up existing exploded jenkins.war at /workspace/target/jenkins- for -test 0.565 [id=14] INFO o.jvnet.hudson.test.JenkinsRule#createWebServer: Running on http: //localhost:42163/jenkins/ 4.949 [id=28] INFO jenkins.InitReactorRunner$1#onAttained: Started initialization 5.477 [id=30] INFO hudson.PluginManager#considerDetachedPlugin: Loading a detached plugin as a dependency: /workspace/target/tmp/jenkins3755368883337197337/plugins/trilead-api.jpi 5.623 [id=38] INFO hudson.PluginManager#considerDetachedPlugin: Loading a detached plugin as a dependency: /workspace/target/tmp/jenkins3755368883337197337/plugins/jdk-tool.jpi 8.311 [id=28] INFO jenkins.InitReactorRunner$1#onAttained: Listed all plugins 10.724 [id=28] INFO jenkins.InitReactorRunner$1#onAttained: Prepared all plugins 10.743 [id=30] INFO jenkins.InitReactorRunner$1#onAttained: Started all plugins 10.745 [id=35] INFO jenkins.InitReactorRunner$1#onAttained: Augmented all extensions 14.463 [id=39] INFO jenkins.InitReactorRunner$1#onAttained: System config loaded 14.464 [id=26] INFO jenkins.InitReactorRunner$1#onAttained: System config adapted 14.466 [id=27] INFO jenkins.InitReactorRunner$1#onAttained: Loaded all jobs 14.468 [id=41] INFO jenkins.InitReactorRunner$1#onAttained: Configuration for all jobs updated 14.820 [id=34] INFO jenkins.InitReactorRunner$1#onAttained: Completed initialization 100.646 [id=14] INFO jenkins.model.Jenkins#cleanUp: Stopping Jenkins 101.067 [id=14] INFO jenkins.model.Jenkins#cleanUp: Jenkins stopped [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 102.67 s - in org.jenkins_ci.plugins.flexible_publish.ConfigurationTest It looks strange.
          Hide
          ikedam ikedam added a comment - - edited

          Looks an issue of Jetty.
          Jenkins version may affect:

          NG: 2.263.1
          NG: 2.235.5
          NG: 2.222.4 (run-condition-1.3)
          NG: 2.204.6 (run-condition-1.3, matrix-project-1.17)
          NG: 2.190.3 (run-condition-1.3, matrix-project-1.17)

          Show
          ikedam ikedam added a comment - - edited Looks an issue of Jetty. Jenkins version may affect: NG: 2.263.1 NG: 2.235.5 NG: 2.222.4 (run-condition-1.3) NG: 2.204.6 (run-condition-1.3, matrix-project-1.17) NG: 2.190.3 (run-condition-1.3, matrix-project-1.17)
          Hide
          ikedam ikedam added a comment -

          Succeeds on 0.15.2 (Jenkins-1.425)

          Show
          ikedam ikedam added a comment - Succeeds on 0.15.2 (Jenkins-1.425)
          Hide
          ikedam ikedam added a comment -

          It might be affected by the version of jenkins-test-harness.

          Show
          ikedam ikedam added a comment - It might be affected by the version of jenkins-test-harness.
          Hide
          ikedam ikedam added a comment -

          Doesn't reproduce after rebooting the computer

          Show
          ikedam ikedam added a comment - Doesn't reproduce after rebooting the computer

            People

            Assignee:
            ikedam ikedam
            Reporter:
            ikedam ikedam
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: