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

Option to increase Xray graph scan timeout #212

Closed
ashishch1 opened this issue May 24, 2022 · 4 comments · Fixed by jfrog/xray-client-java#32
Closed

Option to increase Xray graph scan timeout #212

ashishch1 opened this issue May 24, 2022 · 4 comments · Fixed by jfrog/xray-client-java#32
Labels
feature request New feature or request

Comments

@ashishch1
Copy link

ashishch1 commented May 24, 2022

Is your feature request related to a problem? Please describe.
For a particular Gradle project, the xray scans usually take like 15 mins to complete and the plugin always throws a "[ERROR] Xray Scan failed: IOException: Xray get graph scan exceeded the timeout" in about 6 mins

Describe the solution you'd like to see
I've been able to get the scan id from debug logs and get results from API. But that doesn't have the UI visibility I like to see.
Can we have a timeout settings for the same?

Otherwise being able to import the json result to the IDE plugin would also help.

Describe alternatives you've considered

Additional context

@ashishch1 ashishch1 added the feature request New feature or request label May 24, 2022
@yahavi
Copy link
Member

yahavi commented May 26, 2022

@colourspectrum,
The connection timeout can already be configured in the JFrog Global Configuration:
image

Please let me know if that helped.

By the way, we are planning to introduce significant performance improvements for Gradle in the next version:

So stay tuned 😎

@ashishch1
Copy link
Author

ashishch1 commented May 26, 2022

@yahavi this unfortunately doesn't work.
I set the timeout value to some 2000+ and it still stops polling the scan results in around 6 minutes.
Which is the same when it was set to default 60.

I do not think this configuration is relevant, because the issue is not with 'connectivity' but with scan results taking too long.
I am able to see constant debug logs where it succesfully gets pending scan with 202 Status.

PS it's good to know that gradle improvements are planned. Because this particular issue I've encountered when 1-2 particular dependencies are used in Gradle project, for Maven the Xray results are instanteneous.
It's that big of an issue that I need to isolate the dependencies and create a dummy Maven project just to get the results locally.
Let me know if a sample project or a creating a new issue would be worth on this one.

@yahavi
Copy link
Member

yahavi commented May 26, 2022

Thanks, @colourspectrum,
Following your important feedback, we decided to increase the timeout to 30 minutes by default: jfrog/xray-client-java#32.

We'll keep you updated.

@ashishch1
Copy link
Author

That was prompt, thank you <3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants