Skip to content

Conversation

@kirklandsign
Copy link
Contributor

@kirklandsign kirklandsign commented Oct 16, 2024

Per ghstack tutorial for a PR exported by ghstack, it will have two diff sets:

  • gh/user/1/base <- gh/user/1/head where the PR is created like this
  • main <- gh/user/1/orig

The purpose of this bot is, when the ghstack PR is merged, automatically create another PR to do this merge main <- gh/user/1/orig. Then we just merge the newly created PR so that main has that change.

Missing piece: token from pytorch bot to create PR.

If this goes well, we can either git merge the commit from gh/user/1/orig into main directly, without going through the new PR; or auto approve and merge the PR.

Test: You can test locally with export GITHUB_TOKEN=ghpxyz; python .github/scripts/propose_ghstack_orig_pr.py --pr 6265 --repo pytorch/executorch
Note that between /orig merges, there is never a merge conflict.

The invariant is guaranteed that gh/user/1/orig contains the exact same change between gh/user/1/base <- gh/user/1/head by ghstack tool.

Stack from ghstack (oldest at bottom):

[ghstack-poisoned]
@pytorch-bot
Copy link

pytorch-bot bot commented Oct 16, 2024

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/6265

Note: Links to docs will display an error until the docs builds have been completed.

✅ No Failures

As of commit b59a875 with merge base 7510f8c (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Oct 16, 2024
[ghstack-poisoned]
[ghstack-poisoned]
kirklandsign added a commit that referenced this pull request Oct 16, 2024
ghstack-source-id: 537cf31
Pull Request resolved: #6265
[ghstack-poisoned]
kirklandsign added a commit that referenced this pull request Oct 16, 2024
ghstack-source-id: 4ccf1d4
Pull Request resolved: #6265
[ghstack-poisoned]
kirklandsign added a commit that referenced this pull request Oct 16, 2024
ghstack-source-id: 6419a0d
Pull Request resolved: #6265
[ghstack-poisoned]
kirklandsign added a commit that referenced this pull request Oct 16, 2024
ghstack-source-id: e5f4e87
Pull Request resolved: #6265
kirklandsign added a commit that referenced this pull request Oct 16, 2024
ghstack-source-id: e5f4e87
Pull Request resolved: #6265
[ghstack-poisoned]
kirklandsign added a commit that referenced this pull request Oct 16, 2024
ghstack-source-id: e62f45d
Pull Request resolved: #6265
[ghstack-poisoned]
kirklandsign added a commit that referenced this pull request Oct 17, 2024
ghstack-source-id: 0ded068
Pull Request resolved: #6265
[ghstack-poisoned]
kirklandsign added a commit that referenced this pull request Oct 17, 2024
ghstack-source-id: 9605374
Pull Request resolved: #6265
kirklandsign added a commit that referenced this pull request Oct 17, 2024
ghstack-source-id: 9605374
Pull Request resolved: #6265
[ghstack-poisoned]
kirklandsign added a commit that referenced this pull request Oct 17, 2024
ghstack-source-id: 512e67e
Pull Request resolved: #6265
[ghstack-poisoned]
kirklandsign added a commit that referenced this pull request Oct 17, 2024
ghstack-source-id: 20c48db
Pull Request resolved: #6265
[ghstack-poisoned]
kirklandsign added a commit that referenced this pull request Oct 17, 2024
ghstack-source-id: c7d4bc2
Pull Request resolved: #6265
[ghstack-poisoned]
kirklandsign added a commit that referenced this pull request Oct 17, 2024
ghstack-source-id: 441280b
Pull Request resolved: #6265
facebook-github-bot pushed a commit that referenced this pull request Oct 17, 2024
Summary:
Per ghstack [tutorial](https://github.com/ezyang/ghstack/blob/master/README.md#structure-of-submitted-pull-requests) for a PR exported by ghstack, it will have two diff sets:
- `gh/user/1/base <- gh/user/1/head` where the PR is created like [this](#6265)
- `main <- gh/user/1/orig`

The purpose of this bot is, when the ghstack PR is merged, automatically create another PR to do this merge `main <- gh/user/1/orig`. Then we just merge the newly created PR so that `main` has that change.

Missing piece: token from pytorch bot to create PR.

If this goes well, we can either `git merge` the commit from gh/user/1/orig into main directly, without going through the new PR; or auto approve and merge the PR.

Pull Request resolved: #6270

Test Plan:
You can test locally with `export GITHUB_TOKEN=ghpxyz; python .github/scripts/propose_ghstack_orig_pr.py --pr 6265 --repo pytorch/executorch`
Note that between /orig merges, there is never a merge conflict.

The invariant is guaranteed that gh/user/1/orig contains the exact same change between `gh/user/1/base <- gh/user/1/head` by ghstack tool.

Reviewed By: huydhn

Differential Revision: D64569002

Pulled By: kirklandsign

fbshipit-source-id: 9af16e3d292a1c835b98b345efaca8946593c9ed
@kirklandsign kirklandsign deleted the gh/kirklandsign/12/head branch October 17, 2024 23:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants