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

timeout not working for V1 #324

Open
sgokaram-saagie opened this issue Sep 11, 2020 · 2 comments
Open

timeout not working for V1 #324

sgokaram-saagie opened this issue Sep 11, 2020 · 2 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@sgokaram-saagie
Copy link
Contributor

sgokaram-saagie commented Sep 11, 2020

Task to export variables from V1 was timing out. Tried to increase by specifying the timeout value but its not working.

plugins {
id "io.saagie.gradle-saagie-dataops-plugin" version "2.1.10"
}

saagie {
server {
url = saagieurl
login = saagieuserid
password = saagiepassword
environment = saagieplatformid
jwt = true
timeout = 20000
}
env {
include_all_var=true
}
exportArtifacts {
export_file = "./env/v1.zip"
overwrite=true
temporary_directory='./tmp'
}
}

OUTPUT
saagies-mbp:Gradle shivakumar$ gradle -b build.gradle.projectExportEnvV1 projectExportV1

Task :projectsExportV1 FAILED
Error in getListVariablesV1FromConfig
timeout getAllVariablesFromV1 Request
Error in getListVariablesV2FromConfig
timeout getListVariablesV1FromConfig

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':projectsExportV1'.

java.net.SocketTimeoutException: timeout

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

BUILD FAILED in 23s
1 actionable task: 1 executed

@sgokaram-saagie sgokaram-saagie added the bug Something isn't working label Sep 11, 2020
@sgokaram-saagie sgokaram-saagie added this to the 2.2 milestone Sep 11, 2020
@medamineziraoui
Copy link
Contributor

How to test :

Version to test : 2.1.11

The Export phase:

Create a build file:
Example of build.projectsExportV1.gradle:

plugins {
  id "io.saagie.gradle-saagie-dataops-plugin" version "2.1.11"
}
saagie {
    server {
        url = "REPLACE_SAAGIEURL" // <=== add unreachable server like - http://example.com:81
        login = "REPLACE_SAAGIELOGIN"
	password = "REPLACE_SAAGIEPASSWORD"
        environment = "REPLACE_SAAGIE"
	jwt = true
       timeout = 15 // <==== change the timeout
    }  
    ...
}

Export job using this commande :
The command line : gradle -b build.projectsExportV1.gradle projectsExportV1
Job have to fail with the given timeout time

> Task :projectsExportV1 FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':projectsExportV1'.
> java.net.ConnectException: Failed to connect to example.com/2606:2800:220:1:248:1893:25c8:1946:81

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 16s
1 actionable task: 1 executed

@medamineziraoui
Copy link
Contributor

Tested version : 2.1.11 OK

Uploading testtimeoutv1.gif…

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants