-
Notifications
You must be signed in to change notification settings - Fork 163
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 lint fails occasionally - fatal error: concurrent map writes #370
Comments
We notice the same issue and for whatever reason we've started to see it more often recently. Can reproduce this quite easily locally when running actionlint in context of a repo with several (14 in my case) GitHub workflows:
It's a bug (accessing a non thread-safe container concurrently) in actionlint that merely happens when a custom error message format is provided through We've noticed at least the following race condition regarding this map when RegisterRule is called from multiple concurrent check functions calls. I'm not sufficiently familiar with the codebase to propose a good solution. A naive solution would be to use a thread-safe map instead, but I can't properly judge the performance implications. |
@rhysd is this something you could look into or suggest how to best fix? I'm not proficient in golang, but can give it a try if you provide a hint. Thnx! 🙏 |
Let me check this issue this weekend. I don't have enough time to handle all projects for now. |
I've run into this as well. Using an older version of actionlint in the meantime. Looking into the issue, it seems switching to |
I apologize for the delay. I could fix this at d80a2a3. @ReinAchten-TomTom's comment was so helpful to fix this. |
@rhysd thanks a lot for addressing this problem! is there any plan to release a new tagged version soon? 🙏 |
Hello,
when using rhysd/actionlint:latest docker image to analyze workflows- https://hub.docker.com/r/rhysd/actionlint
The action sometimes fails out of nowhere without any reason. The log can be seen here
Thanks for any advices
The text was updated successfully, but these errors were encountered: