Page MenuHomePhabricator

mwbot-rs: test_undo breaks the test page on failures or parallel runs
Open, Needs TriagePublicBUG REPORT

Description

The test currently do an edit and then undo it, however, if there are two CI jobs running, the following may happen: A edit -> B edit -> A revert (conflict, fail) -> B revert, leaving the test page in the state after A edit.

At about 2025-01-24T20:05, similar things happened and broke lots of CI tests.

Also, if there is an error when undo-ing the edit (e.g. network issues), the edit may not be undo-ed, too.