Page MenuHomePhabricator

Update Cucumber to new version
Closed, ResolvedPublic

Description

The current version of Cucumber has been expired and now it requires an update in the following files in the CirrusSearch extension.

  • page_step.js
  • search_step.js
  • hook.js
  • world.js

It requires to uninstall of current cucumber and then npm install --save-dev @cucumber/cucumber. After that, it requires packages to be loaded as @cucumber/cucumber instead of cucumber. More information can be found at P20601.

Event Timeline

Change 761907 had a related patch set uploaded (by Osamaahmed17; author: Osamaahmed17):

[mediawiki/extensions/CirrusSearch@master] cucumber: Update cucumber to latest version

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

I can't reproduce the problem on my machine. The paste (P20601) does not say which branch you're using. I've tried running npm t on master and it works just fine. Does npm t fail for a commit in gerrit?

1nobody@docker-desktop:/CirrusSearch$ git branch
2* master
3
4nobody@docker-desktop:/CirrusSearch$ node -v
5v12.22.5
6
7nobody@docker-desktop:/CirrusSearch$ npm -v
87.21.0
9
10nobody@docker-desktop:/CirrusSearch$ npm ci
11...
12
13nobody@docker-desktop:/CirrusSearch$ npm t
14
15> cirrussearch@0.0.0 test
16> grunt test
17
18Running "eslint:all" (eslint) task
19Browserslist: caniuse-lite is outdated. Please run:
20npx browserslist@latest --update-db
21
22Why you should do it regularly:
23https://github.com/browserslist/browserslist#browsers-data-updating
24
25/CirrusSearch/tests/phpunit/fixtures/configDump/enwiki_crosslang_frwiki_config.json
26 0:0 warning File ignored because of a matching ignore pattern. Use "--no-ignore" to override
27
28/CirrusSearch/tests/phpunit/fixtures/configDump/enwiki_crosslang_frwiki_invalid_config.json
29 0:0 warning File ignored because of a matching ignore pattern. Use "--no-ignore" to override
30
31/CirrusSearch/tests/phpunit/fixtures/configDump/enwiki_sisterproject_configs.json
32 0:0 warning File ignored because of a matching ignore pattern. Use "--no-ignore" to override
33
34/CirrusSearch/tests/phpunit/fixtures/regexParser/ref_impl_fixtures.json
35 0:0 warning File ignored because of a matching ignore pattern. Use "--no-ignore" to override
36
37✖ 4 problems (0 errors, 4 warnings)
38
39Running "banana:all" (banana) task
40>> 2 message directories checked.
41
42Running "stylelint:all" (stylelint) task
43>> Linted 1 files without errors
44
45Done.

nobody@docker-desktop:/CirrusSearch$ git branch

  • master

It does say that I am in Master and currently I just checked, it does still have the same error. I can show you during the call.

Change 761907 abandoned by Osamaahmed17:

[mediawiki/extensions/CirrusSearch@master] cucumber: Update cucumber to latest version

Reason:

Its working now.

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