Page MenuHomePhabricator

Upgrade WikiLambda's test version of Codex to v2.3.1, and make the tests pass
Closed, ResolvedPublic

Description

Upgrading our test version of @wikimedia/codex to 2.3.1 currently breaks the test suite somehow:

UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason "Maximum recursive updates exceeded in component <CdxSelect>. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.".
    at throwUnhandledRejectionsMode (node:internal/process/promises:389:7)
    at processPromiseRejections (node:internal/process/promises:470:17)
    at processTicksAndRejections (node:internal/process/task_queues:96:32) {
  code: 'ERR_UNHANDLED_REJECTION'
}

 RUNS  tests/jest/integration/CreateNewCompositionImplementation.test.js
 RUNS  tests/jest/integration/CreateNewCodeImplementation.test.js
 RUNS  tests/jest/integration/CreateNewTester.test.js
 RUNS  tests/jest/integration/CreateNewWikidataEnum.test.js

Event Timeline

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

[mediawiki/extensions/WikiLambda@master] [WIP] build: Upgrade test version of Codex to v2.3.1 to match MediaWiki's

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

Jdforrester-WMF changed the task status from Open to In Progress.Sep 8 2025, 4:34 PM
Jdforrester-WMF assigned this task to DSmit-WMF.
Jdforrester-WMF triaged this task as Medium priority.

Change #1184775 merged by jenkins-bot:

[mediawiki/extensions/WikiLambda@master] build: Upgrade test version of Codex to v2.3.1 to match MediaWiki's

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

Test code only, so don't need to wait for deployment before it can be signed-off.