karmada: Enlarge timeout setting of golangci-lint
Task description: The golangci-lint timeout several times, the latest one at: https://github.com/karmada-io/karmada/runs/6860875119?check_suite_focus=true#step:5:125
Solution:
Just enlarge the timeout option, as the capacity of GitHub Action runner is pretty small, that’s the reason it runs longer than normal machines. Such as:
diff --git a/.golangci.yml b/.golangci.yml
index 1429db2c..d6dd01fe 100644
--- a/.golangci.yml
+++ b/.golangci.yml
@@ -3,7 +3,7 @@
run:
# timeout for analysis, e.g. 30s, 5m, default is 1m
- timeout: 5m
+ timeout: 10m
Who can join or take the task:
The good first issue is intended for first-time contributors to get started on his/her contributor journey.
After a contributor has successfully completed 1-2 good first issue’s,
they should be ready to move on to help wanted items, saving the remaining good first issue for other new contributors.
How to join or take the task:
Just reply on the issue with the message /assign in a separate line.
Then, the issue will be assigned to you.
How to ask for help:
If you need help or have questions, please feel free to ask on this issue. The issue author or other members of the community will guide you through the contribution process.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 15 (15 by maintainers)
They already maintain image
golangci/golangci-lint:v1.46.2They don’t suggest usinggo install.referring: https://golangci-lint.run/usage/install/