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

feat: read snyk code timeout from config [IDE-399] #56

Merged
merged 1 commit into from
Jun 14, 2024

Conversation

teodora-sandu
Copy link
Contributor

Description

In snyk-ls we have a way to override the timeout and it's set to 12h by default. This PR removes the local 2minutes timeout and the option to override the timeout and instead uses the config to decide how long to wait.

The CLI will also need to configure this.

Checklist

  • Tests added and all succeed
  • Linted
  • README.md updated, if user-facing

🚨After having merged, please update the snyk-ls and CLI go.mod to pull in latest client.

@teodora-sandu teodora-sandu requested a review from a team as a code owner June 12, 2024 15:12
@teodora-sandu teodora-sandu force-pushed the feat/read-snyk-code-timeout-config branch 3 times, most recently from cb399b5 to 2769320 Compare June 12, 2024 15:29
@teodora-sandu teodora-sandu force-pushed the feat/read-snyk-code-timeout-config branch from 2769320 to b7fad4b Compare June 12, 2024 15:37
Copy link
Contributor

Choose a reason for hiding this comment

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

Would you mind adding a default of 12h, if nothing is passed? That way, we won't have panics and a default that matches LS.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't think it's possible to use this without passing in a value 🤔 ? The interface will require someone to define the SnykCodeAnalysisTimeout function and so it should be the client's responsibility to set the default. Unless you mean check if 0seconds are passed in and default to 12h?

@teodora-sandu teodora-sandu merged commit 20955bf into main Jun 14, 2024
13 checks passed
@teodora-sandu teodora-sandu deleted the feat/read-snyk-code-timeout-config branch June 14, 2024 12:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants