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

feat: Support sequential-calls manifest field that disables concurrency when creating multiple pull requests or releases #1401

Merged
merged 1 commit into from
Apr 20, 2022

Conversation

dazuma
Copy link
Member

@dazuma dazuma commented Apr 19, 2022

When running release-please on the google-cloud-ruby manifest, we're running afoul of secondary rate limits. Currently release-please runs pull request creation concurrently, and in this case, it was trying to open 33 pull requests at once which seemed to be too much. So we're introducing an option to run them sequentially using blocking calls.

This was added to the manifest config rather than the CLI options, because it seems to be a scaling-related knob that should be set per repository, rather than something that depends on how release-please is invoked.

I honestly do not know how to write a test for this. I tested manually both the sequential and concurrent cases to make sure the functionality was still correct, but I'm not sure how to test whether something happened concurrently or not.

@dazuma dazuma requested a review from a team as a code owner April 19, 2022 00:30
@dazuma dazuma requested a review from a team April 19, 2022 00:30
@product-auto-label product-auto-label bot added the size: m Pull request size is medium. label Apr 19, 2022
@dazuma dazuma marked this pull request as draft April 19, 2022 00:30
@dazuma dazuma marked this pull request as ready for review April 19, 2022 00:36
…cy when creating multiple pull requests or releases
@dazuma dazuma force-pushed the pr/sequential-calls branch from f2dd7ab to 657a7ca Compare April 19, 2022 00:38
@chingor13
Copy link
Contributor

I may open a refactor PR to try to test this, but let's try to unblock you.

@chingor13 chingor13 added the automerge Merge the pull request once unit tests and other checks pass. label Apr 20, 2022
@gcf-merge-on-green gcf-merge-on-green bot merged commit 50f5c99 into googleapis:main Apr 20, 2022
@gcf-merge-on-green gcf-merge-on-green bot removed the automerge Merge the pull request once unit tests and other checks pass. label Apr 20, 2022
gcf-merge-on-green bot pushed a commit that referenced this pull request Apr 20, 2022
🤖 I have created a release *beep* *boop*
---


## [13.14.0](v13.13.0...v13.14.0) (2022-04-20)


### Features

* Support sequential-calls manifest field that disables concurrency when creating multiple pull requests or releases ([#1401](#1401)) ([50f5c99](50f5c99))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
@dazuma dazuma deleted the pr/sequential-calls branch April 20, 2022 16:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size: m Pull request size is medium.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants