Skip to content

Make SuggestionMergeViewTests upvoter setup deterministic - #1567

Open
Samwalton9 wants to merge 1 commit into
WikipediaLibrary:masterfrom
Samwalton9:T440812
Open

Samwalton9 wants to merge 1 commit into
WikipediaLibrary:masterfrom
Samwalton9:T440812

Conversation

@Samwalton9

Copy link
Copy Markdown
Member

Per the description in https://phabricator.wikimedia.org/T440812, this fixes a flaky test.

Assisted by Claude Opus 5.5

Secondary suggestions were assigned an author/upvoter via random.choice,
so ~1/32 of runs picked the coordinator every time and
test_merge_partner_suggestion_view_post failed with 1 != 2. Cycle
through the editor and coordinator instead so both are always used.

Bug: T440812

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch was successfully deployed

1 active deployment
cicd — a1621729 Deployed Oct 11, 2026 by Samwalton9 via cicd #1608
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant