-
-
Notifications
You must be signed in to change notification settings - Fork 152
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
action times out on latest golangci-lint version #519
Comments
I'm having the same problem too. |
I have the same issue. Not sure if it's specific to my case but when I run the action locally with https://github.com/nektos/act I can reproduce the issue. When I exec into the action and run golangci-lint I run into the following panic:
(The binary seems to just panic in general, independent of in which folder it is called, Go 1.17 or Go 1.18, gocritic enabled or disabled) P.S. I reproduced this with kubernetes-sigs/cluster-api#6943 + |
I have the same issue. In my case, the action would just run without stopping and I need to stop them manually. All works fine on v1.46.2, so we're downgrading for the time being too. |
If you have the same kind of problem, I need:
|
@ldez, here it is:
go-lint:
name: Lint Go Applications
if: needs.vars.outputs.go_changes == 'true'
runs-on: ubuntu-latest
needs:
- vars
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: "1.18.x"
cache: true
cache-dependency-path: go/go.sum
- name: golangci-lint
uses: golangci/[email protected]
with:
working-directory: go
version: latest
args: --timeout 5m
|
I have a same problem in my github action |
I bumped to Golangci lint v1.47.1. It looks better now. Previously it timed out after 6 hours, now I'm hitting my own timeout of 10 minutes (action times out after 15m). We are bumping from v1.44=>v1.47.1 and will try to figure out if it's expected that the linter now takes ~ 15 min instead of 6-7 min before. |
* github workflow: use Go latest (v1.18.4 at the moment) * undo 7b8f281 * github workflow: use golangci-lint latest (v1.47.1) * undo 841a6cc * see golangci/golangci-lint-action#519 * closes #1174 * closes #1175 * tests: tweak create-multiobj-arch Signed-off-by: Alex Aizman <[email protected]>
I think the problem is solved, for the performance issue you can follow golangci/golangci-lint#2997 |
Golangci-lint just had a new release, 1.47.0, which broke our lint action. The action would spin and timeout when running the golangci-lint command with or without args.
Example log where the action would hang:
Running [/home/runner/golangci-lint-1.47.0-linux-amd64/golangci-lint run --out-format=github-actions --new-from-patch=/tmp/tmp-1669-7BzhRHngF7zi/pull.patch --new=false --new-from-rev=] in [] ...
Downgrading the golangci-lint version to 1.46.2 fixed the action for us.
The text was updated successfully, but these errors were encountered: