Hi!
We are getting a socket timeout error while publishing test results (1064 cases total, filesize 4.5Mb) within Jenkins pipeline using AIO Jenkins plugin (https://plugins.jenkins.io/aio-tests/)
08:52:13 Jira Hosting : cloud
08:52:13 Framework Type: TestNG
08:52:13 File Path: ./build/reports/tests/mainTestsStage/testng-results.xml
08:52:13 Build running on slave
08:52:13 File path : /var/lib/jenkins/jobs/xxxxxxxxxxxxxx-pipeline/builds/571/build/reports/tests/mainTestsStage/testng-results.xml
08:52:13 Result files 1
08:52:13 Creating new cycle with prefix AQA-REGRESSION
08:52:13 ....
08:52:15 Cycle created successfully XXX-CY-49
08:52:15 Updating results for XXX-CY-49
08:52:15 *****File Name: testng-results.xml*****
08:54:47 Publishing results failed : java.net.SocketTimeoutException: Read timed out
08:54:47 kong.unirest.DefaultInterceptor.onFail(DefaultInterceptor.java:43)
08:54:47 kong.unirest.apache.ApacheClient.request(ApacheClient.java:133)
08:54:47 kong.unirest.BaseRequest.asString(BaseRequest.java:199)
08:54:47 com.navarambh.aiotests.utils.AIOCloudClient.importResults(AIOCloudClient.java:208)
08:54:47 com.navarambh.aiotests.utils.AIOCloudClient.importResults(AIOCloudClient.java:85)
08:54:47 com.navarambh.aiotests.postbuildsteps.AIOTestsResultRecorder.perform(AIOTestsResultRecorder.java:187)
As I can see from https://github.com/jenkinsci/aio-tests-plugin/blob/master/src/main/java/com/navarambh/aiotests/utils/AIOCloudClient.java a socket timeout value hardcoded to 150 seconds.
Any chance this will be fixed or defined as step parameter?
Hello,
A new Jenkins update is due for release on 22nd Jan, which would allow the users to choose if they want to import results as a batch process. The batch results will then be viewable from the Cycle Batches view.
With the new release, users will be able to choose if they want to have the upload done synchronously (good for small number of cases, small files) or choose the batch process (good for larger files). We will update this thread once the plugin is available for use.
HTH.
-N