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

[Updater] GroupUpdateAllVersions now performs refreshes for existing PRs instead of deferring them to a separate job #7310

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

brrygrdn
Copy link
Contributor

For our initial iteration of grouped update scheduled jobs we choose the following strategy:

  • The scheduled GroupUpdateAllVersions job only runs for groups which do not have a pre-existing, open pull request
  • Separately, the service elects to enqueue a RefreshGroupUpdatePullRequest for these existing open pull requests

This approach optimised for avoiding a single Operation doing too much and prefer to run smaller jobs when we can, but a major drawback is it means that the primarily scheduled update job logs do not show these refreshes.

This is a pretty significant drawback as we currently do not do a great job of surfacing refresh/rebase logs in the UI.

Changes

This branch adds a small interface to allow the RefreshGroupUpdatePullRequest to have data about an existing pull request to be injected as an 'overlay' on the Dependabot::Job in order to allow GroupUpdateAllVersions to delegate to it to perform refresh operations in-line without having to incorporate the refresh logic directly.

@brrygrdn brrygrdn requested a review from a team as a code owner May 12, 2023 15:41
@brrygrdn
Copy link
Contributor Author

We are parking this change for now as it requires some API changes that we need to hammer out the right direction on to move to this model.

@brrygrdn brrygrdn force-pushed the brrygrdn/group-update-all-refreshes-existing-prs branch from 4ae5aaf to 53f544c Compare June 16, 2023 13:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants