Commit fd40c51
authored
Add ciflow/rocm label only for non-pytorch/pytorch PRs (#7801)
* Since we added [ROCm testing to trunk.yml in
pytorch/pytorch](pytorch/pytorch#170294), we get
ROCm testing for `default` and `distributed` config in trunk.yml, hence
no need to automatically add `ciflow/rocm-mi300` or `ciflow/rocm-mi355`.
Users can still add these labels manually if they want continuous ROCm
testing on their pytorch/pytorch PR.
That being said, this same logic is useful on ecosystem repos to trigger
ROCm CI via the `ciflow/rocm` label if any PR mentions ROCm. Hence limit
the autolabeling to any non-pytorch/pytorch repos.
* Also, update the ROCm regex pattern to avoid PRs such as
[this](meta-pytorch/monarch#3467) resulting in a
`ciflow/rocm` label being applied
### Test plan:
Added a new test to check that `ciflow/rocm` label is added for a
non-pytorch/pytorch repo:
https://github.com/pytorch/test-infra/pull/7801/changes#diff-ed658674d71aaaa8b69a1f1e50e3c5caac25b56874edf448de868bc0918e31d0R138
Job:
https://github.com/pytorch/test-infra/actions/runs/24690936818/job/72212348607?pr=7801
```
INFO (event):
id: "2"
labels: []
title: "Issue regarding ROCm"
filesChanged: []
INFO (event): loadConfig
id: "2"
key: "zhouzhuojie/gha-ci-playground"
INFO (event): Adding label(s) module: rocm,ciflow/rocm to pull request zhouzhuojie/gha-ci-playground#31
id: "2"
```1 parent a4783dd commit fd40c51
2 files changed
Lines changed: 48 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | 26 | | |
28 | 27 | | |
29 | 28 | | |
| |||
492 | 491 | | |
493 | 492 | | |
494 | 493 | | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
495 | 499 | | |
496 | 500 | | |
497 | 501 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
121 | | - | |
| 121 | + | |
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
| |||
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
138 | 180 | | |
139 | 181 | | |
140 | 182 | | |
| |||
0 commit comments