Skip to content

Commit a75c280

Browse files
committed
When labeling a test with success, delete the failure label, and vice versa.
1 parent 55416d7 commit a75c280

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

scripts/gha/it_workflow.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,10 +194,12 @@ def test_end(token, issue_number, actor, commit, run_id, new_token):
194194
# all failures/errors are due to flakiness (succeeded after retry)
195195
title = _COMMENT_TITLE_FLAKY
196196
firebase_github.add_label(token, issue_number, _LABEL_SUCCEED)
197+
firebase_github.delete_label(token, issue_number, _LABEL_FAILED)
197198
else:
198199
# failures/errors still exist after retry
199200
title = _COMMENT_TITLE_FAIL
200201
firebase_github.add_label(token, issue_number, _LABEL_FAILED)
202+
firebase_github.delete_label(token, issue_number, _LABEL_SUCCEED)
201203
comment = (title +
202204
_get_description(actor, commit, run_id) +
203205
log_summary +

0 commit comments

Comments
 (0)