-
Notifications
You must be signed in to change notification settings - Fork 483
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
[Feature Request] Automatic Creation of Pull Requests for the prod
Branch
#3280
Comments
Adding @peterzhuamazon @nateynateynate @krisfreedain @dblock @getsaurabh02 Thank you |
It does make sense to me that each merge in Thanks. |
While I can see why you would want this as a feature request, this would likely result in even more of a backlog on busy days, and, potential out-of-sinc issues with back end processes. It would likely also slow things down on busy days. It takes approximately 13 minutes from merge to show on the staging site, then a maintainer would do a push to prod PR, merge that, and it take another 13 minutes to get to the prod website. As maintainers, there are times when we push things all the way to prod quickly, or, there are times when we will control what is going out - this could include release days, an important blog announcement, site changes, etc. Having a prod merge for every merge in main would add levels of confusion non-maintainers likely don't quite see in the normal back-end processes. Also, when there are things on staging that haven't been pushed to prod, the latest push to prod PR picks all of it up. Having all these auto-created push to prod PRs created will result in a mass of duplicated PRs in the repo, adding another layer of complexity and maintenance for maintainers to manage. No while this sounds like an OK idea, it really isn't something we would want to do. |
I suspect this is more of a problem of maintainer availability more than it is the CI/CD. If we have time sensitive PR's we should build a mechanism to get them merged in a timely manner rather than remove the staging component of our publishing workflow. There are many times that we want things on a staging server prior to merging to production for the purposes of QA. |
I think I'm misreading this. Are you suggesting that a PR to I'm not entirely opposed to this however its implementation is confusing to me. Do we incur the risk of more conflicting merges? Merging them in a different order than they were originally merged to If we merge "x" Pr's to prod, will our build pipeline trigger "x" times in a row? Do we retain the option of using our previous workflow if we want to just merge |
Thanks @nateynateynate @krisfreedain and @peterzhuamazon
Thats true Nate, here is an example PR from another repo opensearch-project/job-scheduler#674 (using the same workflow), where one backport PR just targets the individual PR that was merged to
Yes sometimes the backport fails (Example opensearch-project/job-scheduler#534 (comment)) and or if the backport PR is open for a while it might lead to conflicts, then a manual intervention is required on the PR. Following are some actions that can be taken.
For this adding @peterzhuamazon @zelinh to please provide more inputs.
Oh we used to have this? like merging a set of PR's to the prod branch rather than targeting individual PR's? |
I don't disagree with @krisfreedain, but I still believe the workflow could be useful for small PRs that can be merged and automatically backported to the prod branch. Ultimately, it's the maintainer's choice to add the labels. A maintainer can decide to either apply a backport label or manually create a PR. Currently, maintainers target a series of PRs, collect them (perhaps cherry-picking a commit), and create one PR for prod. In this process, a maintainer could skip a PR if it was auto-created by the backport workflow. During a release, once the PR is merged and we confirm the staging site is accurate, the maintainer can asynchronously add a label to the merged PR, triggering the creation of a backport PR. However the maintainer still has the final decision to add the label during the review. Adding @dblock @getsaurabh02 |
Normally when I make a PR to prod, I just compare |
Is your feature request related to a problem? Please describe
Today, the pull requests are created in the
main
branch and then merged into theprod
branch. Sometimes, the merge toprod
is not immediate, causing commits to pile up and leading to bulk merges into theprod
branch.Describe the solution you'd like to see
Have an automation with label
backport prod
(added to the PR) and onboard the backport.yml so that when the label is added the PR is automatically raised toprod
.Describe alternatives you've considered
No response
Additional context
I'm open for discussion if we need to call it as
backport prod
orfrontport prod
label. If we are going with frontport we need to explore the backport.yml to ensure it responds tofrontport prod
labelThe text was updated successfully, but these errors were encountered: