Commit Graph

10 Commits

Author SHA1 Message Date
Nikita Shulga
2418b94576
Rename default branch to main (#99210)
Mostly `s/@master/@main` in numerous `.yml` files.

Keep `master` in `weekly.yml` as it refers to `xla` repo and in `test_trymerge.py` as it refers to a branch PR originates from.
2023-04-16 18:48:14 -07:00
Catherine Lee
a6155f34f6 Set up automated hash pinning for triton (#97568)
Fixes #ISSUE_NUMBER

Pull Request resolved: https://github.com/pytorch/pytorch/pull/97568
Approved by: https://github.com/huydhn, https://github.com/malfet
2023-04-08 01:13:05 +00:00
Huy Do
4c0dce50fd [BE] Apply ufmt to run_test and GitHub Python util scripts (#97588)
This has been bugging me for a while as I'm working on these Python scripts and they are not tracked by ufmt linter.  So I add these script into that linter.

```
[[linter]]
code = 'UFMT'
include_patterns = [
    '.github/**/*.py',
    'test/run_test.py',
```

This change should just work and not break anything as ufmt (black + usort) linter is very safe to use for standalone util scripts.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/97588
Approved by: https://github.com/kit1980
2023-03-26 04:52:55 +00:00
Sergii Dymchenko
410210b351 Remove obsolete "merge -g" flag from update_commit_hashes.py (#97033)
The flag is deprecated and is being removed in https://github.com/pytorch/test-infra/pull/3882

Pull Request resolved: https://github.com/pytorch/pytorch/pull/97033
Approved by: https://github.com/huydhn
2023-03-17 22:51:58 +00:00
Catherine Lee
8e074f4557 hash update - bug fix for branches (#83865)
hash updates for xla were failing because the current pinned hash is a branch, so the git command for getting the date couldn't find the branch due to not having a local version of the branch.  Fixed by checking out the branch to make sure it exists locally.

example of failure: https://github.com/pytorch/pytorch/runs/7913835742?check_suite_focus=true

Test plan:
made it pull request trigger and ran, to get this:
https://github.com/pytorch/pytorch/runs/7959221184?check_suite_focus=true
Pull Request resolved: https://github.com/pytorch/pytorch/pull/83865
Approved by: https://github.com/zengk95
2022-08-23 01:50:29 +00:00
Catherine Lee
c8002614bf only update pinned hash if new hash is newer than old hash (#82173)
For https://github.com/pytorch/pytorch/issues/82033

Only update the pinned hash if the new hash is strictly newer than the old hash.  This should allow us to use commits on PRs as the pinned hash, which helps with fixes in XLA.  General hash update behavior (looking at hash on branch, trying to update + pushing, creating pr) should be unchanged.

If the currently pinned hash is newer than the hash we are trying to update to, the existing pr will be closed if it exists.

Also changes the hash update time to 12:37am PST (7:37am UTC).

Pull Request resolved: https://github.com/pytorch/pytorch/pull/82173
Approved by: https://github.com/ZainRizvi, https://github.com/huydhn
2022-07-26 20:02:23 +00:00
Catherine Lee
584e21bf7b automate hash updates - add new lint to appease lint (#79832)
as in title, lint dislikes the lack of a new line at the end of the file
Pull Request resolved: https://github.com/pytorch/pytorch/pull/79832
Approved by: https://github.com/seemethere
2022-06-20 15:56:38 +00:00
Catherine Lee
514bf9fecb automate hash pinning (#79470)
automate the pr approval and merging of hash pinning
also switch to a python script for easier control flow
Pull Request resolved: https://github.com/pytorch/pytorch/pull/79470
Approved by: https://github.com/seemethere
2022-06-17 18:22:15 +00:00
PyTorch MergeBot
44e5593b17 Revert "automate hash pinning (#79470)"
This reverts commit 8f8a661ddc.

Reverted https://github.com/pytorch/pytorch/pull/79470 on behalf of https://github.com/zengk95 due to typo in workflow
2022-06-16 01:19:20 +00:00
Catherine Lee
8f8a661ddc automate hash pinning (#79470)
automate the pr approval and merging of hash pinning
also switch to a python script for easier control flow
Pull Request resolved: https://github.com/pytorch/pytorch/pull/79470
Approved by: https://github.com/seemethere
2022-06-15 20:20:58 +00:00