Page MenuHomePhabricator

The module 'wikibase.lexeme.lexemeview' must not have target 'mobile' because its dependency 'jquery.ui.languagesuggester' does not have it
Closed, ResolvedPublic

Description

WikibaseLexeme master branch is currently failing CI, which blocks related extensions from merging:

15:44:29 1) ResourcesTest::testUnsatisfiableDependencies
15:44:29 The module 'wikibase.lexeme.lexemeview' must not have target 'mobile' because its dependency 'jquery.ui.languagesuggester' does not have it
15:44:29 Failed asserting that an array contains 'mobile'.
15:44:29
15:44:29 /workspace/src/tests/phpunit/structure/ResourcesTest.php:133
15:44:29 /workspace/src/tests/phpunit/MediaWikiIntegrationTestCase.php:519

Event Timeline

kostajh triaged this task as Unbreak Now! priority.Dec 6 2022, 7:41 AM
kostajh subscribed.

Presumably affecting many extensions (I came here via a failed GrowthExperiments build.)

Presumably affecting many extensions (I came here via a failed GrowthExperiments build.)

Math is affected https://gerrit.wikimedia.org/r/c/mediawiki/extensions/Math/+/818294

The revert unbreaks CI, just needs a +2 from someone.

The revert unbreaks CI, just needs a +2 from someone.

It will need a backport to wmf.13 is as well.

kostajh lowered the priority of this task from Unbreak Now! to High.Dec 6 2022, 9:36 AM

Lowering UBN status, but keeping at high because backports to wmf.13 will be broken until the revert patch is backported to wmf.13, and it would be nice to have input from the authors/reviewers of the patch before backporting it to wmf.13.

Change 865099 had a related patch set uploaded (by Jdlrobson; author: Jdlrobson):

[mediawiki/extensions/WikibaseLexeme@master] New modern code should target mobile

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

Change 865101 had a related patch set uploaded (by Jdlrobson; author: Jdlrobson):

[mediawiki/extensions/Wikibase@master] jquery.ui.languagesuggester should target mobile

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

The module 'wikibase.lexeme.lexemeview' must not have target 'mobile' because its dependency 'jquery.ui.languagesuggester' does not have it

  • jquery.ui.languagesuggester targets neither desktop or mobile so defaults to "desktop" (as its not an ES6 module)
  • With T323542, wikibase.lexeme.lexemeview as an ES6 module would now target desktop AND mobile
  • Since wikibase.lexeme.lexemeview depends on jquery.ui.languagesuggester there is now a mismatch on mobile.

I've been relying on CI heavily for these changes, I'm not sure why this wasn't triggered when the core patch merged so I'll need to investigate this further. Presumably WikibaseLexeme is not including in the core CI build since https://gerrit.wikimedia.org/r/c/mediawiki/core/+/864923 is passing validation without https://gerrit.wikimedia.org/r/865101 ?

I've been relying on CI heavily for these changes, I'm not sure why this wasn't triggered when the core patch merged so I'll need to investigate this further. Presumably WikibaseLexeme is not including in the core CI build since https://gerrit.wikimedia.org/r/c/mediawiki/core/+/864923 is passing validation without https://gerrit.wikimedia.org/r/865101 ?

For math, it happens about every quarter that a core or wikibase change breaks the CI tests for math. I still think running daily tests for WMF-deployed extensions would be a great idea, even though I understand that this is not very elegant.

See, for example, https://phabricator.wikimedia.org/T316853 for the last time Math CI tests were broken.

Jdlrobson claimed this task.

The issue originally posted here has been resolved. Thanks all!

Change 865099 abandoned by Jdlrobson:

[mediawiki/extensions/WikibaseLexeme@master] New modern code should target mobile and desktop

Reason:

I've underestimated the work involved here. Will leave an update on ticket with next steps.

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

Change 865101 abandoned by Jdlrobson:

[mediawiki/extensions/Wikibase@master] jquery.ui.languagesuggester should target mobile

Reason:

I've underestimated the work involved here. Will leave an update on ticket with next steps.

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

Change 865099 restored by Jdlrobson:

[mediawiki/extensions/WikibaseLexeme@master] New modern code should target mobile and desktop

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