-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Dr.CI flaky FP when GH fails to dispatch the workflow (#4998)
Fixes #4987 Dr.CI logic to detect `isInfraFlakyJob` and `isLogClassifierFailed` has a FP where it misclassifies the GH failure to dispatch the whole workflow as flaky, for example pytorch/pytorch#121317. These logic should only be applicable to workflow job, not workflow run. The way to separate them is to check the `workflowId` field where it is set to `null` whenever it is a workflow run. ### Testing Unit test + local curl command will mark them as legit failures: ``` curl --request POST \ --url "http://localhost:3000/api/drci/drci?prNumber=121317" \ --header "Authorization: TOKEN" \ --data 'repo=pytorch' ```
- Loading branch information
Showing
2 changed files
with
29 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters