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

Fix : ZStream Dependency Auto Merging #12483

Merged
merged 1 commit into from
Sep 25, 2023

Conversation

jyejare
Copy link
Member

@jyejare jyejare commented Sep 5, 2023

Fixing the AutoMerge of Dependabot AutoCherrypicked PRs are not running.

Attempt to change:

  • The pull_request_target event
  • The Author check for PR now removed and just checking for dependency label
  • Separate GHA for zStream than master as the things varies for zStream for dependecy PRs auto-merge

Good if this is merged along with #12682 that copies dependencies label to zStream cherrypicked PRs !

@jyejare jyejare added 6.11.z Introduced in or relating directly to Satellite 6.11 CherryPick PR needs CherryPick to previous branches 6.12.z Introduced in or relating directly to Satellite 6.12 6.13.z Introduced in or relating directly to Satellite 6.13 labels Sep 5, 2023
Copy link
Collaborator

@Gauravtalreja1 Gauravtalreja1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jyejare Added one question, and why target branch for this PR is 6.14.z?


jobs:
dependabot:
name: dependabot-auto-merge
runs-on: ubuntu-latest
if: |
github.event.pull_request.user.login == 'Satellite-QE' &&
contains( github.event.pull_request.labels.*.name, 'dependencies')
contains(github.event.pull_request.labels.*.name, 'dependencies')
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if we're going to check the dependencies label on auto-cherrypicked PRs for auto-merge, then we need an additional task to add this label if main PR also contains this, right?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. This GHA does not runs on master as per the event condition: branches-ignore: - master
  2. The GHA for doing same on master is different and has different steps so this wont conflict!

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, I get you this isn't for master, but we're talking about the dependancy automerge for zstream, but we miss dependancy and automerge-cherrypicked labels on the autocherrypicked PRs, which we've merging manually #12615

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Gauravtalreja1 Nice Catch! At least by looking at GHA automerge-cherrypicked label is not required for cherrypicked dependency PRs to merge but dependency is must.

@omkarkhatavkar I think missing that label in cherrypicked dependency PRs is the cause of aborted AutoMerges in zStream versions!

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jyejare even after I was adding label it was failing

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@omkarkhatavkar Probably because at that time we did not have this fix. Now we should fix it by:

  • Adding dependency label to Dependabot PRs which are cherrypicked by ACP GHA!

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Gauravtalreja1 @omkarkhatavkar PR open to fix missing dependencies label in zStream PRs: #12682

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Gauravtalreja1 Since the PR #12682 is now merged , can we merge this as well ! We can wait for cherrypicks to merge though !

@jyejare
Copy link
Member Author

jyejare commented Sep 5, 2023

@Gauravtalreja1 Target Branch for this PR is 6.14 because this Github Action works different with zBranches than master, So it is openend in 6.14 and would be cherrypicked to rest of zBranches!

@jyejare jyejare changed the title Fix Attempt: ZStream Dependency Auto Merging Fix : ZStream Dependency Auto Merging Sep 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.11.z Introduced in or relating directly to Satellite 6.11 6.12.z Introduced in or relating directly to Satellite 6.12 6.13.z Introduced in or relating directly to Satellite 6.13 6.14.z Introduced in or relating directly to Satellite 6.14 CherryPick PR needs CherryPick to previous branches
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants