-
-
Notifications
You must be signed in to change notification settings - Fork 109
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
[BUG] Slack Terraform CI automation timeouts #1238
Comments
probably more issues are there - we just merged PR with new WG https://github.com/asyncapi/community/actions/runs/9446779045/job/26017154335 |
I don't see if this is the issue but what I see is that both the channel and the group have the same handle
|
The issue is with invalid Line 31 in c9ebbc2
|
Yup, fix is here #1251 |
oh thanks, I suggest we need a workflow like https://github.com/asyncapi/community/blob/master/.github/workflows/validate-maintainers.yml#L12-L43 with json schema that we validate against - as these issues will pop up regularly, and with JSON schema you can do lots of validation cases, even pattern validation. |
regarding timeouts workflows have option to react of failure? are we able to parse error in such step, figure it is timeout and retry? other than that, minimum we can do is drop error in slack, that someone needs to rerun the job, we support such things already - we can have custom message that tags certain people for example |
You can retry as many times you want that it will keep failing. As stated in the description of the issue:
We have more user groups than the API rate limit allows per minute (20 calls). See The issue is that the TF provider seems to be doing one call to such API per group instead of just one for getting all of them (pending to be confirmed but 95% convinced) |
sorry, that wasn't clear for me. So basically it means automation will always fail atm? btw - it fails for different reason here https://github.com/asyncapi/community/actions/runs/9464298763/job/26071337562 and what about GitHub teams automation? |
I don't understand such an error. In fact I can't reproduce the same state as in our CI even though the tfstate file is the same. That's weird... @Shurtu-gal any idea? I expect Examples of things my
|
bounty/candidate |
@smoya checked for various stuff:
@derberg you would need to check both the bot-token in secret as well as the app maybe. |
It seems there is a fork of the terraform provider that handles timeouts when creating groups. See pablovarela/terraform-provider-slack#223 (comment) |
Describe the bug.
@Shurtu-gal did an excellent job with automating the creation and maintainability of AsyncAPI Slack channels and user groups. See #1072
However, we faced a blocker issue that makes the Terraform manifest to fail due to timeouts requesting Slack API.
The TF provider is not optimized at all. I have the feeling this code is being executed per each managed Usergroup whenever TF wants to refresh its state: https://github.com/pablovarela/terraform-provider-slack/blob/master/slack/resource_usergroup.go#L108-L128, so potentially we are calling the usergroups.list API method on each usergroup we have.
Expected behavior
I believe we could do some work on the provider repo (it's written in go, seems easy to read and understand at a glance) so we can implement some caching or whatever mechanism we decide. But in short term, I can't see how to fix it.
Screenshots
How to Reproduce
terraform apply
with the proper Slack Token configured (ask @derberg or me)🥦 Browser
None
👀 Have you checked for similar open issues?
🏢 Have you read the Contributing Guidelines?
Are you willing to work on this issue ?
None
The text was updated successfully, but these errors were encountered: