Skip to content

Commit

Permalink
When labeling a test with success, delete the failure label, and vice…
Browse files Browse the repository at this point in the history
… versa.
  • Loading branch information
jonsimantov committed Sep 29, 2023
1 parent 55416d7 commit a75c280
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/gha/it_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,10 +194,12 @@ def test_end(token, issue_number, actor, commit, run_id, new_token):
# all failures/errors are due to flakiness (succeeded after retry)
title = _COMMENT_TITLE_FLAKY
firebase_github.add_label(token, issue_number, _LABEL_SUCCEED)
firebase_github.delete_label(token, issue_number, _LABEL_FAILED)
else:
# failures/errors still exist after retry
title = _COMMENT_TITLE_FAIL
firebase_github.add_label(token, issue_number, _LABEL_FAILED)
firebase_github.delete_label(token, issue_number, _LABEL_SUCCEED)
comment = (title +
_get_description(actor, commit, run_id) +
log_summary +
Expand Down

0 comments on commit a75c280

Please sign in to comment.