Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[drci] Fix check labels being marked as flaky (#5629)
Move check for if something is in the `EXCLUDED_FROM_FLAKINESS` to be earlier and more explicit since some of the checks for flakiness weren't checking if it was on the list first Some lower/upper case stuff Tested on https://togithub.com/pytorch/pytorch/pull/135391#issuecomment-2334801691. If it's no longer there, it's because it got overwritten, but here's a screenshot <img width="807" alt="image" src="https://github.com/user-attachments/assets/f28265b8-507a-45ea-8ea7-b5832e15026b"> and the output after calling the API (see that it is in the failed list) ``` csl@csl-mbp ~/zzzzzzzz/test-infra/torchci [csl/fix_drci_check_labels_flaky] $ (forpytorch) curl "http://localhost:3000/api/drci/drci?prNumber=135391" --data 'repo=pytorch' {"135391":{"FAILED":[{"workflowId":10745156151,"workflowUniqueId":38959716,"id":29803617987,"runnerName":"linux.20_04.4x_2f4e0a1ae568","authorEmail":"[email protected]","name":"Check Labels / Check labels","jobName":"Check labels","conclusion":"failure","completed_at":"2024-09-06T21:00:09Z","html_url":"https://github.com/pytorch/pytorch/actions/runs/10745156151/job/29803617987","head_branch":"gh/zou3519/1065/head","pr_number":135391,"head_sha":"3e458267c6cd378e9b8485daaa2be9fa1d369293","head_sha_timestamp":"2024-09-06T13:59:24-07:00","failure_captures":["# This PR needs a `release notes:` label"],"failure_lines":["# This PR needs a `release notes:` label"],"failure_context":["+ python3 .github/scripts/check_labels.py --exit-non-zero 135391"],"time":"2024-09-06T21:00:12.817762Z"}],"FLAKY":[],"BROKEN_TRUNK":[],"UNSTABLE":[]}}% ```
- Loading branch information