Skip to content

Commit

Permalink
Remove testing tag when an update is pushed stable
Browse files Browse the repository at this point in the history
Signed-off-by: Mattia Verga <mattia.verga@tiscali.it>
  • Loading branch information
mattiaverga authored and AdamSaleh committed Nov 26, 2021
1 parent 32eba6d commit 70e3c96
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions bodhi/server/tasks/approve_testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ def approve_update(update: Update, db: Session):
update.remove_tag(update.release.pending_testing_tag)
update.remove_tag(update.release.pending_stable_tag)
update.remove_tag(update.release.pending_signing_tag)
update.remove_tag(update.release.testing_tag)
update.remove_tag(update.release.candidate_tag)

log.info(f'{update.alias} processed by approve_testing')
3 changes: 2 additions & 1 deletion bodhi/tests/server/tasks/test_approve_testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,8 @@ def test_autotime_update_zero_day_in_testing_no_gated_gets_pushed_to_rawhide(
# removes f17-updates-testing-pending and f17-updates-pending
assert remove_tag.call_args_list == \
[call('f17-updates-testing-pending'), call('f17-updates-pending'),
call('f17-updates-signing-pending'), call('f17-updates-candidate')]
call('f17-updates-signing-pending'), call('f17-updates-testing'),
call('f17-updates-candidate')]

assert add_tag.call_args_list == \
[call('f17-updates')]
Expand Down

0 comments on commit 70e3c96

Please sign in to comment.