Skip to content
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

Multi-gitter doesnt attempt to open pull requests for branches that already exist #206

Closed
ChaosCypher opened this issue Oct 28, 2021 · 8 comments
Labels
bug Something isn't working

Comments

@ChaosCypher
Copy link
Contributor

Describe the bug
When running the run command, if you lose connection to github between when the branch is created and when the pull request is opened then you will be unable to open a pull request with the created branch using multi-gitter. I've also noticed if you hit the pull request rate limiting when concurrency is enabled then multi-gitter will continue to create branches but won't re-attempt to open any pull requests. Re-running the tool just tells you the branch already exists, but I would expect if the branch already exists but there isn't a pull request that it would try to create a pull request based on that branch.

Expected behavior
Branches that exist but don't have an associated pull request attempt to open a pull request

@ChaosCypher ChaosCypher added the bug Something isn't working label Oct 28, 2021
@lindell
Copy link
Owner

lindell commented Oct 28, 2021

This is expected behavior since otherwise we could open pull requests for changes that were not intended to be made if branch names are re-used. I think this is closely related to #205, so let's keep the discussion in one single place.

PS. I will add some kind of warning about rate-limiting when using concurrency. How many concurrent operations did you do?

@lindell lindell closed this as completed Oct 28, 2021
@ChaosCypher
Copy link
Contributor Author

ChaosCypher commented Oct 28, 2021 via email

@lindell
Copy link
Owner

lindell commented Oct 28, 2021

If there should not be more than one pr per second. It sounds reasonable to implement that. Do you have a link which states that, I can't seem to find it.

@ChaosCypher
Copy link
Contributor Author

ChaosCypher commented Oct 28, 2021 via email

@lindell
Copy link
Owner

lindell commented Oct 28, 2021

Thanks 🙂

I created a PR that makes sure that we don't hit the secondary rate limit #207

@ChaosCypher
Copy link
Contributor Author

ChaosCypher commented Oct 28, 2021 via email

@lindell
Copy link
Owner

lindell commented Oct 28, 2021

Do you know if you hit the primary or secondary rate limiting? Could you please post --log-level=trace logs.

@ChaosCypher
Copy link
Contributor Author

ChaosCypher commented Oct 28, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants