Page MenuHomePhabricator

re-enable a routinely flakey JS integration test
Closed, ResolvedPublic

Description

What/Why:
When running javascript-all-test.js, the particular test 'javascript - debug' keep causing timeouts. This was recently spotted during the service-utils migration, however has been known to occur before. We tried to move around the after() block and also using global hooks to no avail. Because this debugging was blocking for too long than it was worth, we disabled it with hopes to address later during a Fix-it week.

How:

  1. Find out why this is flakey OR find out how to prevent the after() block doesn't get stuck (see parent task)
  2. Re-enable test OR refactor it

Details

Related Changes in Gerrit:
Related Changes in GitLab:
TitleReferenceAuthorSource BranchDest Branch
tests: Re-enable previously flaky 'javascript - debug' testrepos/abstract-wiki/wikifunctions/function-evaluator!292apineapine-reenable-debugmain
Customize query in GitLab

Event Timeline

Noting that if we want to try global hooks again, we need to use .mocharc.js as .mocha.opts has been deprecated since V6+ https://github.com/mochajs/mocha/blob/main/example/config/.mocharc.js

Change #1113572 had a related patch set uploaded (by Jforrester; author: Jforrester):

[operations/deployment-charts@master] wikifunctions: Upgrade evaluators from 2025-01-08-143723 to 2025-01-22-212306

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

Change #1113572 merged by jenkins-bot:

[operations/deployment-charts@master] wikifunctions: Upgrade evaluators from 2025-01-08-143723 to 2025-01-22-212306

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