Page MenuHomePhabricator

Edits sometimes fail for new users erroneously reporting them as anon
Closed, DeclinedPublic

Description

This video demonstrates problem: https://saucelabs.com/beta/tests/d6529f0489274febbf9979e1f4b3e800/commands#255
Not sure if issue with beta cluster or software, but I suspect CentralAuth.

In Chrome browser
Register a new account on https://en.m.wikipedia.beta.wmflabs.org/
Visit a new page and click edit
Add some text
Hit save
Save fails

Inspecting the console I see an error relating to not being able to create while anonymous
A refresh of the page shows me as logged out
Refreshing again I am logged in

I think something in CentralAuth is not behaving here as it should.

This issue is causing MobileFrontend's browser tests to occasionally fail:
https://integration.wikimedia.org/ci/view/Reading-Web/job/selenium-MinervaNeue/56/BROWSER=chrome,MEDIAWIKI_ENVIRONMENT=beta,PLATFORM=Linux,label=BrowserTests/

Event Timeline

Change 370806 had a related patch set uploaded (by Jdlrobson; owner: Jdlrobson):
[mediawiki/skins/MinervaNeue@master] QA: Workaround for T172835

https://gerrit.wikimedia.org/r/370806

The patch is a workaround, not a fix.

Jdlrobson added a subscriber: zeljkofilipin.

Re-adding tag. @zeljkofilipin while this bug is open, I believe the browser test infrastructure should do more to ensure that sign in is successful (feel free to open a new task if more appropriate)

The "I am logged into the mobile website" step uses the log_in method from mediawiki_selenium which always defaults to a new user.

In Minerva we have a specific step for new users "I am logged in as a new user" and it is not needed here (in fact it seems to be harming stability).
Please can we update the log_in step so that it uses MEDIAWIKI_USER by default unless requested?

  NODES
Note 1
Project 7
USERS 3