integrations / terraform-provider-github

Terraform GitHub provider
https://www.terraform.io/docs/providers/github/
MIT License
886 stars 726 forks source link

[BUG]: github_team data block is taking longer than expected #2023

Closed ukhan262 closed 1 week ago

ukhan262 commented 9 months ago

Expected Behavior

data calls for github_team should resolve in less than 30 seconds.

Actual Behavior

In the past, when we have had the data blocks for github_team, it would take only ~30 seconds max. Now the refresh block is painfully slow and some of the calls are over 4 minutes.

This has taken our plans to go from 10 minutes to 40+ minutes.

We are leveraging the latest version of the github provider.

Terraform Version

Terraform v1.5.6 Github provider version 5.42.0

Affected Resource(s)

Data Sources:

Terraform Configuration Files

data "github_team" "org_team" {
  slug = "teamname"
}

Steps to Reproduce

terraform init
terraform plan

Debug Output

Screenshot 2023-11-20 at 11 50 24 AM

Panic Output

No response

Code of Conduct

github-actions[bot] commented 9 months ago

👋 Hi! Thank you for this contribution! Just to let you know, our GitHub SDK team does a round of issue and PR reviews twice a week, every Monday and Friday! We have a process in place for prioritizing and responding to your input. Because you are a part of this community please feel free to comment, add to, or pick up any issues/PRs that are labled with Status: Up for grabs. You & others like you are the reason all of this works! So thank you & happy coding! 🚀

kfcampbell commented 9 months ago

Interesting...have you looked into what PRs/API calls might be causing this?

stevehipwell commented 9 months ago

@ukhan262 if you don't need the members and repos you could use the summary_only argument.

@kfcampbell is this not an example of https://github.com/integrations/terraform-provider-github/issues/849?

github-actions[bot] commented 2 weeks ago

👋 Hey Friends, this issue has been automatically marked as stale because it has no recent activity. It will be closed if no further activity occurs. Please add the Status: Pinned label if you feel that this issue needs to remain open/active. Thank you for your contributions and help in keeping things tidy!