Skip to content

Commit d7b89b0

Browse files
[CI] Do Not Consider a Job Failed if Steps Were Skipped
This patch makes it so that skipped steps do not cause a job to be considered failed. The windows premerge jobs currently skip the build/test step if there are no projects to build/test. These show up as failures in the dashboard even though everything executed perfectly fine. Reviewers: lnihlen, Keenuts Reviewed By: lnihlen Pull Request: #127279
1 parent 97d2cfe commit d7b89b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.ci/metrics/metrics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ def get_per_workflow_metrics(
177177
# longer in a testing state and we can directly assert the workflow
178178
# result.
179179
for step in workflow_job.steps:
180-
if step.conclusion != "success":
180+
if step.conclusion != "success" and step.conclusion != "skipped":
181181
job_result = 0
182182
break
183183

0 commit comments

Comments
 (0)