Page MenuHomePhabricator

Wikibase selenium tests in Score are blocking CI
Closed, ResolvedPublic

Description

CI in MediaWiki-extensions-Score on master broke at some point between April 17 and April 28. This is preventing https://gerrit.wikimedia.org/r/c/mediawiki/extensions/Score/+/1278760 from being merged (and also libup in https://gerrit.wikimedia.org/r/c/mediawiki/extensions/Score/+/1278198).

Example: https://integration.wikimedia.org/ci/job/quibble-vendor-mysql-php83-selenium/51120/console

03:11:08 (Cypress:2603): dconf-CRITICAL **: 01:11:08.210: unable to create directory '/run/user/2947/dconf': Permission denied.  dconf will not work properly.
03:11:08 
03:11:08 (Cypress:2603): dconf-CRITICAL **: 01:11:08.210: unable to create directory '/run/user/2947/dconf': Permission denied.  dconf will not work properly.
03:11:08 
03:11:08 (Cypress:2603): dconf-CRITICAL **: 01:11:08.211: unable to create directory '/run/user/2947/dconf': Permission denied.  dconf will not work properly.
03:11:13 
03:11:13 
03:11:13   add score statement
03:11:13     mobile view
03:11:44       1) loads the item view, allows statements to be edited and new statements to be added
03:11:44 
03:11:44 
03:11:44   0 passing (32s)
03:11:44   1 failing
03:11:44 
03:11:44   1) add score statement
03:11:44        mobile view
03:11:44          loads the item view, allows statements to be edited and new statements to be added:
03:11:44      AssertionError: Timed out retrying after 20000ms: Expected to find element: `.wikibase-wbui2025-edit-statement-value-input .cdx-text-input input`, but never found it.
03:11:44       at __webpack_modules__../cypress/support/pageObjects/EditStatementFormPage.ts.EditStatementFormPage.textInput (webpack://Score/./cypress/support/pageObjects/EditStatementFormPage.ts:25:12)
03:11:44       at Context.eval (webpack://Score/./cypress/e2e/wbui2025/editAndAddScoreStatement.cy.ts:64:16)

(I'm not sure if the dconf part is related or not).

Screenshot of the failure produced by the CI run:

image.png (1,280×720 px, 211 KB)

Event Timeline

Change #1286970 had a related patch set uploaded (by Mahmoud-abdelsattar; author: Mahmoud-abdelsattar):

[mediawiki/extensions/Score@master] Fix Cypress selector for musical-notation value input

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

Change #1286970 merged by jenkins-bot:

[mediawiki/extensions/Score@master] Fix Cypress selector for musical-notation value input

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

Change #1286992 had a related patch set uploaded (by Jforrester; author: Mahmoud-abdelsattar):

[mediawiki/extensions/Score@REL1_46] Fix Cypress selector for musical-notation value input

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

Change #1286992 merged by jenkins-bot:

[mediawiki/extensions/Score@REL1_46] Fix Cypress selector for musical-notation value input

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

Reedy subscribed.

https://gerrit.wikimedia.org/r/c/mediawiki/extensions/Score/+/1298920 is giving an identical failure https://integration.wikimedia.org/ci/job/quibble-vendor-mysql-php83-selenium/65284/console

08:27:12   Running:  editAndAddScoreStatement.cy.ts                                                  (1 of 1)
08:27:17 
08:27:17 
08:27:17   add score statement
08:27:17     mobile view
08:27:52       1) loads the item view, allows statements to be edited and new statements to be added
08:27:52 
08:27:52 
08:27:52   0 passing (35s)
08:27:52   1 failing
08:27:52 
08:27:52   1) add score statement
08:27:52        mobile view
08:27:52          loads the item view, allows statements to be edited and new statements to be added:
08:27:52      AssertionError: Timed out retrying after 20000ms: Expected to find element: `.wikibase-wbui2025-edit-statement-snak-value input, .wikibase-wbui2025-edit-statement-snak-value textarea`, but never found it.
08:27:52       at Context.eval (webpack://Score/./cypress/e2e/wbui2025/editAndAddScoreStatement.cy.ts:83:41)
08:27:52 
08:27:52 
08:27:52 
08:27:52 
08:27:52   (Results)
08:27:52 
08:27:52   ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
08:27:52   │ Tests:        1                                                                                │
08:27:52   │ Passing:      0                                                                                │
08:27:52   │ Failing:      1                                                                                │
08:27:52   │ Pending:      0                                                                                │
08:27:52   │ Skipped:      0                                                                                │
08:27:52   │ Screenshots:  1                                                                                │
08:27:52   │ Video:        false                                                                            │
08:27:52   │ Duration:     34 seconds                                                                       │
08:27:52   │ Spec Ran:     editAndAddScoreStatement.cy.ts                                                   │
08:27:52   └────────────────────────────────────────────────────────────────────────────────────────────────┘
08:27:52

Not Found

This page may not exist, or you may not have permission to see it.

(I already logged in and it didn’t help.)

Did someone deploy new jobs or something…

The job still exists, but the build time trend only goes back 20 hours (#65366 is the latest build still present at the moment). No idea where the other builds went – and without the Cypress screenshots it’ll be tough to figure out what went wrong in that build :/