-
-
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
Post action hangs and times-out after 5 minutes #703
Comments
I'm also seeing golangci-ilnt-action consistently hang e.g. https://github.com/99designs/aws-vault/actions/runs/4432647480/jobs/7776906381#step:4:24, but can't reproduce a hang when using the tool locally. It only seems to happen in github actions |
Still happening today. |
Try adding this to disable all Go-related caching in golangci-lint-action:
This still caches the linter data, which is tiny (a few MB). I found this cut several minutes off CI execution, including both the setup and post phases (where the 600MB or so Go cache item is loaded and saved). On a small codebase, the whole CI-only job is under a minute now, and most of that is installing Go. This load and save of the GitHub Actions cache item is the main difference between local execution (blazing fast, usually 10 sec or less with caching) and Actions execution (can be very slow without the right config). I think it would be good if this was a recommended config in the main README.md - linting was very slow in Actions without this, sometimes up to 10 min. Lots of projects have done this., such as https://github.com/cloudquery/cloudquery/pull/15273/files |
In my case I had to use:
...param to work around the issue. |
Welcome
Description of the problem
We have a lot of github workflows that use
golangci-lint-action
as part of our CICD system.Recently, we encounter a problem in the
Post action
ofgolangci-lint-action
, which seems to occur randomly. Currently, when we encounter it, we just rerun the failed job and the second attempt works.Here is the workflow's log
Post action log with the error
I searched and found similar reports of the underlying error (
Error: Cache upload failed because file read failed with EBADF
), but all them were reported on other github actions and were (allegedly) solved in their respective repositories.Version of golangci-lint
1.51.2
Version of the GitHub Action
3.4.0
Workflow file
Go version
1.18
Code example or link to a public repository
Unrelated (AFAIK)
The text was updated successfully, but these errors were encountered: