Page MenuHomePhabricator

Selenium Jenkins jobs fail after updating @wdio npm packages to v8
Closed, ResolvedPublic

Description

866386 updates @wdio npm packages in core to v8. Both selenium jobs (wmf-quibble-selenium-php74-docker and mediawiki-quibble-selenium-vendor-mysql-php74-docker) in CI fail after timing out.

Tests run fine on my machine using both node v16 (P45889) and node v14 (P45888).

Looks like something changed in wdio v8. The latest v7 (v7.30.2, 901566) runs just fine in CI, the first v8 (v8.0.0, 901567) fails.

This might be connected to T313899: Fresh problem when running Selenium tests. My local container sometimes gets stuck like this.

Notes

Event Timeline

zeljkofilipin renamed this task from wmf-quibble-selenium-php74-docker and mediawiki-quibble-selenium-vendor-mysql-php74-docker fail after updating wdio to v8 to wmf-quibble-selenium-php74-docker and mediawiki-quibble-selenium-vendor-mysql-php74-docker fail after updating @wdio npm packages to v8.Mar 17 2023, 1:22 PM
zeljkofilipin created this task.
zeljkofilipin moved this task from Inbox to Selenium on the MediaWiki-Core-Tests board.

Change 866386 had a related patch set uploaded (by Zfilipin; author: Zfilipin):

[mediawiki/core@master] WIP selenium: Upgrade WebdriverIO to v8

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

zeljkofilipin renamed this task from wmf-quibble-selenium-php74-docker and mediawiki-quibble-selenium-vendor-mysql-php74-docker fail after updating @wdio npm packages to v8 to Selenium Jenkins jobs fail after updating @wdio npm packages to v8.Mar 21 2023, 10:49 AM

This isn't blocking the "do the work", this is blocked by it.

@Jdforrester-WMF: I didn't understand that. This task is blocking T324766: Upgrade WebdriverIO to v8 in core and T324685: Upgrade WebdriverIO to v8 in all repositories.

Change 901566 had a related patch set uploaded (by Zfilipin; author: Zfilipin):

[mediawiki/core@master] WIP selenium: update @wdio to v7.30.2

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

Change 901567 had a related patch set uploaded (by Zfilipin; author: Zfilipin):

[mediawiki/core@master] WIP selenium: Update @wdio to v8.0.0

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

This isn't blocking the "do the work", this is blocked by it.

@Jdforrester-WMF: I didn't understand that. This task is blocking T324766: Upgrade WebdriverIO to v8 in core and T324685: Upgrade WebdriverIO to v8 in all repositories.

How? This task is "These tests are broken until we've done the work to upgrade to v8", right?

Change 901566 abandoned by Zfilipin:

[mediawiki/core@master] WIP selenium: update @wdio to v7.30.2

Reason:

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

Change 901567 abandoned by Zfilipin:

[mediawiki/core@master] WIP selenium: Update @wdio to v8.0.0

Reason:

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

How? This task is "These tests are broken until we've done the work to upgrade to v8", right?

No. I've updated wdio in core to v8 and everything works fine on my machine, but the job timeouts in CI. I don't know why, yet. So, v8 upgrade is blocked on fixing CI.

zeljkofilipin changed the task status from Open to In Progress.Mar 21 2023, 3:57 PM

Change 866386 abandoned by Zfilipin:

[mediawiki/core@master] WIP selenium: Upgrade WebdriverIO to v8

Reason:

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

zeljkofilipin changed the task status from In Progress to Open.Mar 24 2023, 12:12 PM
zeljkofilipin removed zeljkofilipin as the assignee of this task.
zeljkofilipin raised the priority of this task from High to Needs Triage.
zeljkofilipin changed the status of subtask T324766: Upgrade WebdriverIO to v8 in core from In Progress to Open.

Change 866386 restored by Zfilipin:

[mediawiki/core@master] WIP selenium: Upgrade WebdriverIO to v8

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

How? This task is "These tests are broken until we've done the work to upgrade to v8", right?

No. I've updated wdio in core to v8 and everything works fine on my machine, but the job timeouts in CI. I don't know why, yet. So, v8 upgrade is blocked on fixing CI.

Huh, how odd!

zeljkofilipin changed the task status from Open to In Progress.Oct 13 2023, 1:24 PM
zeljkofilipin claimed this task.
zeljkofilipin triaged this task as High priority.
zeljkofilipin changed the task status from In Progress to Open.Oct 27 2023, 10:21 AM
zeljkofilipin removed zeljkofilipin as the assignee of this task.
zeljkofilipin raised the priority of this task from High to Needs Triage.
zeljkofilipin changed the task status from Open to In Progress.Nov 7 2023, 2:36 PM
zeljkofilipin claimed this task.
zeljkofilipin triaged this task as High priority.
zeljkofilipin added a subscriber: โ€ข Peter.

@Peter thinks using chromium explicitly could help. Supported in v8.20.3.

I think the problem was that when we use Chrome devtools protocol to drive the tests, you need to specify Chromium. If we use Chromedriver, it will pick up whatever kind of Chrome that's installed.

zeljkofilipin changed the task status from In Progress to Open.Nov 24 2023, 4:10 PM
zeljkofilipin removed zeljkofilipin as the assignee of this task.
zeljkofilipin raised the priority of this task from High to Needs Triage.

Change 866386 abandoned by Zfilipin:

[mediawiki/core@master] WIP selenium: Upgrade WebdriverIO to v8

Reason:

Moved to https://gerrit.wikimedia.org/r/c/mediawiki/core/+/966447

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

Change 866386 restored by Zfilipin:

[mediawiki/core@master] WIP selenium: Upgrade WebdriverIO to v8

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

zeljkofilipin changed the task status from Open to In Progress.Feb 15 2024, 11:57 AM
zeljkofilipin claimed this task.
zeljkofilipin triaged this task as High priority.

This problem (CI job timing out after an hour) is fixed 866386/39.

Change 866386 abandoned by Zfilipin:

[mediawiki/core@master] WIP selenium: Upgrade WebdriverIO to v8

Reason:

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