Page MenuHomePhabricator

Upgrade WebdriverIO to v8 in core
Closed, ResolvedPublic

Event Timeline

There are a very large number of changes, so older changes are hidden. Show Older Changes
zeljkofilipin changed the task status from In Progress to Open.Nov 24 2023, 4:11 PM
zeljkofilipin removed zeljkofilipin as the assignee of this task.
zeljkofilipin raised the priority of this task from High to Needs Triage.
zeljkofilipin moved this task from Deep work 🌊 to Quarter 👔 on the User-zeljkofilipin board.
zeljkofilipin changed the task status from Open to In Progress.Jan 15 2024, 2:51 PM
zeljkofilipin claimed this task.
zeljkofilipin triaged this task as High priority.
zeljkofilipin moved this task from Quarter 👔 to Deep work 🌊 on the User-zeljkofilipin board.

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

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

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

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

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

[mediawiki/core@master] WIP selenium: Fix and update links in comments and documentation

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

Change 1003757 merged by jenkins-bot:

[mediawiki/core@master] selenium: Fix and update links in comments and documentation

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

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

[mediawiki/core@master] selenium: Update readme file

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

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

[mediawiki/core@master] selenium: Update wdio-mediawiki readme file

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

Change 1004096 merged by jenkins-bot:

[mediawiki/core@master] selenium: Update wdio-mediawiki readme file

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

Change 1004089 merged by jenkins-bot:

[mediawiki/core@master] selenium: Update readme file

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

zeljkofilipin changed the task status from In Progress to Open.Feb 19 2024, 5:36 PM
zeljkofilipin removed zeljkofilipin as the assignee of this task.
zeljkofilipin raised the priority of this task from High to Needs Triage.
zeljkofilipin moved this task from Deep work 🌊 to Quarter 👔 on the User-zeljkofilipin board.

Change 866386 abandoned by Zfilipin:

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

Reason:

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

@zeljkofilipin the first alpha of 9.0 was release earlier today https://github.com/webdriverio/webdriverio/releases/tag/v9.0.0-alpha.0 so I think we should aim for upgrading to 9 instead.

@Peter it's usually way simpler to update one major version at a time. But since we had trouble with v8, maybe giving v9 a try might be a good idea.

zeljkofilipin changed the task status from Open to In Progress.Apr 30 2024, 2:23 PM
zeljkofilipin claimed this task.
zeljkofilipin triaged this task as High priority.
zeljkofilipin moved this task from Quarter 👔 to Deep work 🌊 on the User-zeljkofilipin board.
zeljkofilipin changed the task status from In Progress to Open.Jun 20 2024, 2:39 PM
zeljkofilipin removed zeljkofilipin as the assignee of this task.
zeljkofilipin raised the priority of this task from High to Needs Triage.
zeljkofilipin moved this task from Deep work 🌊 to Quarter 👔 on the User-zeljkofilipin board.

Change #966447 abandoned by Zfilipin:

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

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

Change #1002578 abandoned by Zfilipin:

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

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

Change #1002578 restored by Zfilipin:

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

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

zeljkofilipin changed the task status from Open to In Progress.Aug 8 2024, 8:27 AM
zeljkofilipin claimed this task.
zeljkofilipin triaged this task as High priority.
zeljkofilipin moved this task from Backlog 🪒 to Deep work 🌊 on the User-zeljkofilipin board.

Change #1002578 abandoned by Zfilipin:

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

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

zeljkofilipin changed the task status from In Progress to Open.Aug 8 2024, 12:05 PM
zeljkofilipin removed zeljkofilipin as the assignee of this task.
zeljkofilipin raised the priority of this task from High to Needs Triage.
zeljkofilipin moved this task from Deep work 🌊 to Backlog 🪒 on the User-zeljkofilipin board.

Change #1002578 restored by Zfilipin:

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

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

Change #1002578 abandoned by Zfilipin:

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

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

Change #1002578 restored by Zfilipin:

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

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

Change #1002578 abandoned by Zfilipin:

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

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

Change #1002578 restored by Zfilipin:

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

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

Change #1002578 abandoned by Zfilipin:

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

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

zeljkofilipin changed the task status from Open to In Progress.Apr 29 2025, 9:10 AM
zeljkofilipin claimed this task.
zeljkofilipin triaged this task as High priority.
zeljkofilipin moved this task from Backlog to In progress on the Test Platform (kvina) board.

Change #1002578 restored by Zfilipin:

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

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

Noting that https://gerrit.wikimedia.org/r/1002578 had some problems in CI https://integration.wikimedia.org/ci/job/mediawiki-quibble-selenium-vendor-mysql-php74/25118/console

Notably, it looks like the afterTest hook kept failing, which is also the hook that calls stopVideo in tests/selenium/wdio-mediawiki/wdio-defaults.conf.js.

This matches the symptoms in T392963: CI is overwhelmed and lots of jobs are failing randomly (2025-04-29):

  • beforeTest starts an ffmpeg process to record the framebuffer
  • afterTest sends killall -2 ffmpeg
  • if the afterTest hook is never reached, ffmpeg is never killed, resulting in a ton of processes running—the same number as the number of selenium tests for core.
  • The problem of creating a large number of processes without stopping them was exacerbated by the followup patch to run this in a loop :)

We should figure out how to recreate the ffmpeg/afterTest hook failure/chrome crashing issue and try to debug and fix that ideally before we try this again in CI.

There is #5545 where afterTest do not run if the tests timeouts. Going through different issues it seems to be fixed in 8.30 something so it seems the fix do not to work for us (latest for us in 8.40). I think we could be more defensive here and add a check in a after or afterHook hook, and just kill ffmpeg there again. Also we could do some try catch/finally in the current block so that if taking a screenshot fails, we try to kill ffmpeg anyway.

I added https://gerrit.wikimedia.org/r/c/mediawiki/core/+/1139980 to make sure we always try to kill ffmpeg. Then at least we are "safe" in our code.

Change #1146620 had a related patch set uploaded (by Phedenskog; author: Phedenskog):

[mediawiki/core@master] selenium: Pin browser version in CI

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

Change #1002578 merged by jenkins-bot:

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

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

Change #1146620 merged by jenkins-bot:

[mediawiki/core@master] selenium: Pin browser version in CI

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