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

Added timeout to golangci-lint as it is fails with timeout error #1113

Merged
merged 1 commit into from
May 12, 2023

Conversation

ashmeenkaur
Copy link
Collaborator

@ashmeenkaur ashmeenkaur commented May 12, 2023

This will be pull request template

CI-lint test has been failing frequently with the timeout error. This started happening after we removed the vendor directory. I've increased the timeout to 2 minutes in this PR.

Logs from old lint test: Ref: https://github.com/GoogleCloudPlatform/gcsfuse/actions/runs/4990393357/jobs/8935534530
level=info msg="[loader] Go packages loading at mode 575 (deps|files|imports|compiled_files|exports_file|name|types_sizes) took 1.011402095s"
Logs from new lint test: Ref: https://github.com/GoogleCloudPlatform/gcsfuse/actions/runs/4988001530/jobs/8930307298
level=info msg="[loader] Go packages loading at mode 575 (deps|exports_file|name|types_sizes|compiled_files|files|imports) took 45.775341415s"

In future if timeout of 2 minutes isn't sufficient, we should investigate use of lint cache to reduce this time.

Link to the issue in case of a bug fix.

Testing details

  1. Manual: NA
  2. Unit tests: NA
  3. Integration tests: NA

@ashmeenkaur ashmeenkaur merged commit da81fdc into master May 12, 2023
@ashmeenkaur ashmeenkaur deleted the ci-lint branch May 12, 2023 04:50
@ashmeenkaur ashmeenkaur restored the ci-lint branch May 16, 2023 05:21
@ashmeenkaur ashmeenkaur deleted the ci-lint branch May 16, 2023 05:22
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