Page MenuHomePhabricator

[betalabs] Homepage-variant A: Error: Module "ext.growthExperiments.SuggestedEditSession" is not loaded
Closed, ResolvedPublic

Description

  1. As a user with activated SE (and Homepage) log in to betalabs.
  2. Go to Special:Homepage - when the page loads, the Console will display the following error:

    Exception in module-execute in module ext.growthExperiments.Homepage.Mentorship:
exception.trace
Error: Module "ext.growthExperiments.SuggestedEditSession" is not loaded
    at Object.require (load.php?lang=en&modules=startup&only=scripts&raw=1&skin=vector:20)
    at require (load.php?lang=en&modules=startup&only=scripts&raw=1&skin=vector:10)
    at attachButton (<anonymous>:209:477)
    at <anonymous>:208:734
    at homepage/ext.growthExperiments.Homepage.Mentorship.js (<anonymous>:208:958)
    at runScript (load.php?lang=en&modules=startup&only=scripts&raw=1&skin=vector:13)
    at execute (load.php?lang=en&modules=startup&only=scripts&raw=1&skin=vector:14)
    at doPropagation (load.php?lang=en&modules=startup&only=scripts&raw=1&skin=vector:7)

Event Timeline

I can't reproduce that (and it seems like a ResourceLoader error, not a GrowthExperiments error, and those are unlikely). Any chance you saw this while visiting beta right when the code was updated (and so you ended up with a mix of old and updated code)?

Hm, this seems legitimately possible if the Mentorship module is loaded and SuggestedEditSession isn't. Maybe it comes down to timing of the various RL requests whether that happens or not.

Change 628468 had a related patch set uploaded (by Gergő Tisza; owner: Gergő Tisza):
[mediawiki/extensions/GrowthExperiments@master] Add missing dependency for Mentorship JS module

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

Change 628468 merged by jenkins-bot:
[mediawiki/extensions/GrowthExperiments@master] Add missing dependency for Mentorship JS module

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

I can't reproduce that (and it seems like a ResourceLoader error, not a GrowthExperiments error, and those are unlikely). Any chance you saw this while visiting beta right when the code was updated (and so you ended up with a mix of old and updated code)?

Yes, it was not reliably reproduced from the beginning. I don't see the errors anymore in betalabs; will keep an eye on it in production - then close the ticket.

Checked in cswiki wmf.10 - it seems that the issue was caused some specific setups in testing env (betalabs) - closing as Invalid.

Tgr changed the task status from Invalid to Resolved.Sep 25 2020, 3:49 AM

I'll call this resolved, since whether or not the missing dependency error could be triggered under normal circumstances, it was incorrect, and it's fixed now.