Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[incubator-kie-issues-1444] drools.weekly-deploy jobs frequently fail… #6049

Merged

Conversation

tkobayas
Copy link
Contributor

@@ -91,7 +91,8 @@ pipeline {
withCredentials([usernamePassword(credentialsId: env.MAVEN_REPO_CREDS_ID, usernameVariable: 'REPOSITORY_USER', passwordVariable: 'REPOSITORY_TOKEN')]) {
def installOrDeploy
if (shouldDeployToRepository()) {
installOrDeploy = "deploy -DdeployAtEnd -Dapache.repository.username=${REPOSITORY_USER} -Dapache.repository.password=${REPOSITORY_TOKEN} -DretryFailedDeploymentCount=5"
installOrDeploy = "deploy -DdeployAtEnd -Dapache.repository.username=${REPOSITORY_USER} -Dapache.repository.password=${REPOSITORY_TOKEN} -DretryFailedDeploymentCount=5" +
" -Dhttp.socket.timeout=300000 -Dhttp.connection.timeout=300000"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As far as I understand, maven-deploy-plugin doesn't specify timeout values, so the default values seem to be 60 sec. https://stackoverflow.com/questions/9734384/default-timeout-for-httpcomponent-client

Indeed, there was a log telling that the timeout happened within 2 minutes.

[2024-08-04T04:32:56.568Z] [INFO] Retrying deployment attempt 4 of 5
[2024-08-04T04:34:17.465Z] [WARNING] Failed to upload checksum to org/drools/drools-ruleunits/999-20240804-SNAPSHOT/drools-ruleunits-999-20240804-20240804.030311-1.pom.sha1
[2024-08-04T04:34:17.465Z] org.apache.http.client.HttpResponseException: status code: 408, reason phrase: Request Timeout (408)

So I set 300 sec this time. I hope we can see an observable difference.

@tkobayas tkobayas merged commit 20d20f7 into apache:main Aug 23, 2024
2 checks passed
rodrigonull pushed a commit to rodrigonull/incubator-kie-drools that referenced this pull request Oct 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants