pytorch/.github
zengk95 2acd2317b8 [mergebot] Create land time check options (#77943)
This adds land time checks before we try to merge. What this does is:
1. Merge changes into latest master, check out a new branch, push, and have a workflow that runs jobs from trunk (and maybe pull)
2. Wait for all checks in the landtime workflow to finish by using the GH API (graphql doesn't have this method from what I can see)
3. push the changes in

Test Plan:
Tested this in canary with a new workflow that passes and lint, tested what happens if i break the new workflow by exiting with 1, the normal flow, and some other flows.

Tested it breaking when land checks fail:
https://github.com/pytorch/pytorch-canary/pull/113#issuecomment-1165941716

Test that it works:
https://github.com/pytorch/pytorch-canary/pull/114#issuecomment-1165922791

Test that normal validations like PR is broken:
https://github.com/pytorch/pytorch-canary/pull/113#issuecomment-1165930037

Test that normal merge works:
https://github.com/pytorch/pytorch-canary/pull/113#issuecomment-1166751288

Test that force merge works:
https://github.com/pytorch/pytorch-canary/pull/113#issuecomment-1167507356
Pull Request resolved: https://github.com/pytorch/pytorch/pull/77943
Approved by: https://github.com/janeyx99
2022-06-27 22:28:12 +00:00
..
actions [ci] delete JOB_BASE_NAME (#80046) 2022-06-23 21:06:48 +00:00
ci_commit_pins [torchdynamo hash update] update the pinned torchdynamo hash (#80262) 2022-06-25 04:07:58 +00:00
ISSUE_TEMPLATE Fix case of PyTorch in issue templates (#77180) 2022-05-10 21:17:17 +00:00
scripts [mergebot] Create land time check options (#77943) 2022-06-27 22:28:12 +00:00
templates [ci] delete JOB_BASE_NAME (#80046) 2022-06-23 21:06:48 +00:00
workflows [mergebot] Create land time check options (#77943) 2022-06-27 22:28:12 +00:00
actionlint.yaml Run MPS tests (#78723) 2022-06-03 15:06:08 +00:00
ISSUE_TEMPLATE.md
merge_rules.json Add merge rules for distributions per https://pytorch.org/docs/stable/community/persons_of_interest.html (#80344) 2022-06-27 21:13:28 +00:00
PULL_REQUEST_TEMPLATE.md
pytorch-circleci-labels.yml
pytorch-probot.yml
regenerate.sh
scale-config.yml Update scale-config.yml (#77803) 2022-05-18 23:12:12 +00:00