-
Notifications
You must be signed in to change notification settings - Fork 118
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
Investigate and fix race conditions #129
Comments
Thanks for opening this, @radeksimko. Is this causing problems in the LS? |
@kmoe I'm not aware of it causing problems to the users, at least nobody filed an issue. I was able to reproduce it in one test in LS though. I assume that the reason it's (probably) not affecting users is because they'd have to be running many commands at the same time - which some of them probably do, but we limited that significantly per hashicorp/terraform-ls#391 - and the execution would need to overlap in a particular (split-second) moment. I mean - race conditions are just hard to reproduce in general. 🤷🏻♂️ |
There are valid terraform-exec use cases involving parallel execution outside the LS, so this is the highest priority bugfix for tfexec right now, but active LS issues would raise it to "critical". There shouldn't be any other test failures with 0.12.0, or rather, 0.12.30 (a support policy we should be clearer about). Filing and fixing these will be done as part of investigating the race failures. |
As far as I can remember these were related to some of the CLI flag changes (in I'm not sure how/whether that affects the support policy. I assume we intend to support all versions of Terraform (on best-effort basis), but do we also intend to offer such support in all versions of |
Just ran into another race condition in some LS tests: https://github.com/hashicorp/terraform-ls/pull/448/checks?check_run_id=2225193121#step:10:31 The trace suggests it's a different one, but I haven't looked into it too deeply. |
Actually this one is pretty much 100% (3 out of 3 attempts) reproducible with |
The last mentioned race condition will is fixed in |
This was addressed by the amazing @lornasong in #299 🎉
|
Version: v0.13.0 (
22121c5627c8729080f6de7e829a6a2b4f772703
)I also managed to reproduce some races under 0.12.0, but it was hard to tell whether these are the same due to some other (non-race) test failures adding to the noise.
There is a few tests which fail under
go test -race
:Full output is available in this gist: https://gist.github.com/radeksimko/9f9cd6a451204c12cc3e312dd0c34836 or you can reproduce it yourself via
go test ./... -race
.The text was updated successfully, but these errors were encountered: