-
Notifications
You must be signed in to change notification settings - Fork 251
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
wrapper fails with obscure error message if terraform validate
is killed
#276
Comments
terraform validate
invocationterraform validate
invocation
terraform validate
invocationterraform validate
invocation
terraform validate
invocationterraform validate
invocation
terraform validate
invocationterraform validate
is killed
i am also getting the same error any workarounds or fixes? |
By looking at the code i see that the setup-terraform/wrapper/terraform.js Line 33 in 1fdd4cd
These are the reasons due to which node js |
@kishaningithub do you believe your Terraform CLI command would've generated more than 1MB of output? Regardless, it seems reasonable to increase the command execution One potential workaround in this case is when the GitHub Actions outputs are not needed from the command would be to disable the NodeJS wrapper |
Upon further analysis i found that the In my case, the reason why terraform was getting killed was due to OOM killer (found it by looking at It would be great IMO if we can log this error possibly by adding a try catch in the async function after await so that people facing this dont have to go to the kernel log to confirm if it was indeed the OOM killer that killed the process If you accept, would be happy to raise a PR which does this logging |
I'm facing same issue as described above (node 20, setup-terraform v3) @kishaningithub did you manage to fix this or you are still facing the issue? |
@danielkubat Is the above on a public github runner? |
@kishaningithub nope, self-hosted runner on GKE (using ARC) with 8GB request/limit per pod. |
@danielkubat Can you check the logs (kernlog, dmesg etc) and find what killed the terraform process ? If you think it was an OOM killer can you try increasing the specs atleast temporarily? |
...but, I have multiple groups, and didn't set runner group correctly in action. In other words, issue was related to lack of memory. @kishaningithub you was right, thanks for your help. |
Our GitHub Action performing
terraform validate
fails with an obscure error message on a commit it previously validated successfully:Here is our
.github/workflows/terraform_pr.yml
:Disabling the wrapper script with
and re-running the job led to this error message:
Therefore, I believe the error message presented above is caused by
terraform
being killed.Is it possible to detect this and improve the error message?
The text was updated successfully, but these errors were encountered: