Page MenuHomePhabricator

Large amount of errors in animateToolbarIntoView function in VisualEditor
Closed, ResolvedPublicBUG REPORT

Description

Web team have been getting paged about a spike in errors which seems related to this series of error.

https://logstash.wikimedia.org/goto/9a6499efdda161e6ed1a973f68fd0949

183,623 errors in the last 7 day commencing since 8th May 2024 inside the function animateToolbarIntoView

  • TypeError: Cannot read properties of undefined (reading '$el')
  • TypeError: undefined is not an object (evaluating 'this.overlay.$el')
  • TypeError: Cannot read property '$el' of undefined
  • TypeError: this.overlay is undefined
  • TypeError: Cannot read properties of undefined (reading 'getBoundingClientRect')
  • TypeError: can't access property "$el", this.overlay is undefined
  • TypeError: $header[0] is undefined

Event Timeline

I've added this as a deployment blocker since the increase in errors caused by it is significant and meets the criteria of https://wikitech.wikimedia.org/wiki/Deployments/Holding_the_train#Error-rate_increases_(See_#Logspam)

Screenshot 2024-05-13 at 1.35.21 PM.png (282×1 px, 34 KB)

Jdlrobson triaged this task as Unbreak Now! priority.May 13 2024, 8:36 PM

Change #1031088 had a related patch set uploaded (by Esanders; author: Esanders):

[mediawiki/extensions/VisualEditor@master] Convert function to arrow function to fix context

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

Change #1031088 merged by jenkins-bot:

[mediawiki/extensions/VisualEditor@master] Convert function to arrow function to fix context

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

I have tried to cherry pick the patch https://gerrit.wikimedia.org/r/1031088 from master to wmf/1.43.0-wmf.5 using Gerrit Cherry pick button but unfortunately it is reported as conflicting with that branch. Can you take care of the backport please?

Change #1031180 had a related patch set uploaded (by Jforrester; author: Esanders):

[mediawiki/extensions/VisualEditor@wmf/1.43.0-wmf.4] Convert function to arrow function to fix context

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

I have tried to cherry pick the patch https://gerrit.wikimedia.org/r/1031088 from master to wmf/1.43.0-wmf.5 using Gerrit Cherry pick button but unfortunately it is reported as conflicting with that branch. Can you take care of the backport please?

It already landed in wmf.5; the remaining part of this task is about back-porting it to wmf.4. It's not a current train blocker.

I guess it should have blocked last week train so :)

Change #1031180 merged by jenkins-bot:

[mediawiki/extensions/VisualEditor@wmf/1.43.0-wmf.4] Convert function to arrow function to fix context

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

Mentioned in SAL (#wikimedia-operations) [2024-05-14T15:58:16Z] <logmsgbot> lucaswerkmeister-wmde@deploy1002 Started scap: Backport for [[gerrit:1030984|Add notheme class to Echo (T363779)]], [[gerrit:1031180|Convert function to arrow function to fix context (T364783)]]

Mentioned in SAL (#wikimedia-operations) [2024-05-14T16:05:33Z] <logmsgbot> lucaswerkmeister-wmde@deploy1002 jdlrobson and jforrester and lucaswerkmeister-wmde: Backport for [[gerrit:1030984|Add notheme class to Echo (T363779)]], [[gerrit:1031180|Convert function to arrow function to fix context (T364783)]] synced to the testservers (https://wikitech.wikimedia.org/wiki/Mwdebug)

Mentioned in SAL (#wikimedia-operations) [2024-05-14T16:21:00Z] <logmsgbot> lucaswerkmeister-wmde@deploy1002 Finished scap: Backport for [[gerrit:1030984|Add notheme class to Echo (T363779)]], [[gerrit:1031180|Convert function to arrow function to fix context (T364783)]] (duration: 22m 43s)

Thanks for the quick response here:

Screenshot 2024-05-14 at 1.03.25 PM.png (522×3 px, 124 KB)