Edits sometimes fail for new users erroneously reporting them as anon
Open, Needs TriagePublic

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/

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptAug 8 2017, 10:05 PM

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.

Change 370806 abandoned by Jdlrobson:
QA: Workaround for T172835

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

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?

Restricted Application added a subscriber: jeblad. · View Herald TranscriptAug 25 2017, 4:23 PM
jeblad removed a subscriber: jeblad.Aug 25 2017, 9:28 PM
Deskana moved this task from To Triage to Backlog on the VisualEditor board.Aug 29 2017, 7:18 PM