Skip to content

github_branch_protection still slow with version 4.0.0 #606

Closed as not planned

Description

@SanderKnape

As was reported earlier with version 3.1.0, the performance of the github_branch_protection resource has slowed down significantly now that this resource is using v4 of the GitHub API. It makes using the github provider unusable when working with dozens of repositories.

Is there a way to keep using the v3 version of the API somehow?

Activity

  1. jcudit commented on Nov 17, 2020

    @jcudit
    Contributor

    There was some discussion around a new resource pinned at the v3 / REST implementation over here. Still unclear on what an acceptable migration path would be though if we went ahead with this approach. Any ideas?

    🤔 there is also the optimization approach in case anyone can recommend ways to improve the GraphQL implementation.

  2. SanderKnape commented on Nov 18, 2020

    @SanderKnape
    Author

    Hmm, I understand the problem. I'm not sure what the best approach would be. Adding the github_branch_protection_v3 resource sounds like a reasonable option. As long as I can use future versions of this provider with the branch protection performance of API v3, I don't have a strong preference for a specific implementation. I can't comment on which implementation would be the easiest to maintain moving forward.

  3. added
    Type: Bug
    on Nov 24, 2020
  4. lijok commented on Jul 5, 2021

    @lijok

    Reason for its slowness: #849

  5. github-actions commented on Dec 7, 2022

    @github-actions

    👋 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!

  6. added
    Status: Stale
    on Dec 7, 2022
  7. akloss-terion commented on Dec 7, 2022

    @akloss-terion

    Oof... this is still super annoying. Like really. A lot.

  8. kfcampbell commented on Dec 8, 2022

    @kfcampbell
    Contributor

    github_branch_protection_v3 still uses the REST API, which may help. I'd be very receptive to thoughts on how to improve the experience using the GraphQL API.

  9. removed
    Status: Stale
    on Dec 8, 2022
  10. github-actions commented on Sep 5, 2023

    @github-actions

    👋 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!

  11. added
    Status: Stale
    on Sep 5, 2023
  12. akloss-terion commented on Sep 5, 2023

    @akloss-terion

    It's still slow. We pretty heavily use/abuse -target to avoid planning around github things because of how much longer it takes to run the plans.

  13. removed
    Status: Stale
    on Sep 6, 2023
  14. github-actions commented on Jun 2, 2024

    @github-actions

    👋 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!

  15. added
    Status: Stale
    on Jun 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: StaleType: Bugr/branch_protection

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions