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

Merge conflicts in CP PRs are not handled well #4036

Closed
roryabraham opened this issue Jul 14, 2021 · 10 comments
Closed

Merge conflicts in CP PRs are not handled well #4036

roryabraham opened this issue Jul 14, 2021 · 10 comments
Assignees
Labels
Engineering Improvement Item broken or needs improvement. Reviewing Has a PR in review Weekly KSv2

Comments

@roryabraham
Copy link
Contributor

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Action Performed:

  1. Create a PR with changes in a given file.
  2. Give the PR the CP Staging label.
  3. Merge the PR.
  4. Create another PR with changes in the same file (to ensure that there will be conflicts on staging).
  5. Give the PR the CP Staging label.
  6. Merge the PR.
  7. The CP PR created for the second PR will be created but not automerged, due to conflicts.

Expected Result:

  1. The CP PR should be auto-assigned to the author of the original (second) PR.
  2. PR checks (lint, test, etc...) should run on the CP PR.

Actual Result:

  1. The PR was not auto-assigned.
  2. PR checks did not run on the CP PR, even after manually pushing new code to the PR.

Workaround:

n/a

Platform:

GitHub only

Version Number: 1.0.77-2

View all open jobs on Upwork

@roryabraham roryabraham added Engineering Weekly KSv2 Improvement Item broken or needs improvement. labels Jul 14, 2021
@roryabraham roryabraham changed the title Merge conflicts in CP PRs are not handled well. Merge conflicts in CP PRs are not handled well Jul 14, 2021
@HorusGoul HorusGoul self-assigned this Jul 22, 2021
@HorusGoul
Copy link
Contributor

Will work on this next week

@HorusGoul
Copy link
Contributor

I haven't been able to work on this. I'll return this to the pool as I'm going to be OOO for a few days. I'll gladly pick it after that again as I'll have less workload.

@MelvinBot MelvinBot removed the Overdue label Aug 2, 2021
@HorusGoul HorusGoul removed their assignment Aug 2, 2021
@HorusGoul HorusGoul self-assigned this Aug 11, 2021
@HorusGoul
Copy link
Contributor

It's still free so I'll pick it again 😄

@HorusGoul
Copy link
Contributor

I've been looking through the marketplace of actions to see if there was one to assign people to PRs. All I've found is related to self-assigning when a user creates a PR. Unless someone knows an action to assign someone to a PR, I'll take a look at the API tomorrow, it's probably easier to build our own, and we already have everything set up for that.

@AndrewGable
Copy link
Contributor

Not against using the API directly, but this looks like it would do it: https://github.com/marketplace/actions/actions-ecosystem-action-add-assignees

@roryabraham
Copy link
Contributor Author

We use other actions-ecosystem actions and they seem to be pretty good. The maintainer is responsive and has merged a couple of my PRs.

@HorusGoul
Copy link
Contributor

Oh! That looks to be the one, great 😄

@HorusGoul
Copy link
Contributor

I'm not sure about this PR checks (lint, test, etc...) should run on the CP PR.. I think there's no way to trigger the PR checks from a GitHub Action. More info: https://github.community/t/manually-triggering-checks-for-a-pr/134054

@botify
Copy link

botify commented Sep 3, 2021

🚀 Deployed to staging by @pecanoro in version: 1.0.92-6 🚀

platform result
🤖 android 🤖 success ✅
🖥 desktop 🖥 success ✅
🍎 iOS 🍎 failure ❌
🕸 web 🕸 success ✅

@botify
Copy link

botify commented Sep 4, 2021

🚀 Deployed to production by @roryabraham in version: 1.0.93-1 🚀

platform result
🤖 android 🤖 success ✅
🖥 desktop 🖥 success ✅
🍎 iOS 🍎 success ✅
🕸 web 🕸 success ✅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Engineering Improvement Item broken or needs improvement. Reviewing Has a PR in review Weekly KSv2
Projects
None yet
Development

No branches or pull requests

5 participants