Page MenuHomePhabricator
Paste P17503

Run Selenium tests targeting MediaWiki Core in MediaWiki-Docker - Completed
ActivePublic

Authored by Mhmohona on Oct 18 2021, 7:10 PM.
mohona@mahfuza:~/Desktop/Selenium tests/Run Selenium tests$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.3 LTS
Release: 20.04
Codename: focal
mohona@mahfuza:~/Desktop/Selenium tests/Run Selenium tests$ node -v
v16.11.1
mohona@mahfuza:~/Desktop/Selenium tests/Run Selenium tests$ npm -v
6.14.15
mohona@mahfuza:~/Desktop/Selenium tests/Run Selenium tests$ docker -v
Docker version 20.10.7, build 20.10.7-0ubuntu1~20.04.2
mohona@mahfuza:~/Desktop/Selenium tests/Run Selenium tests$ docker-compose -v
docker-compose version 1.29.2, build 5becea4c
mohona@mahfuza:~/Desktop/Selenium tests/Run Selenium tests$ google-chrome --version
Google Chrome 94.0.4606.81
mohona@mahfuza:~/Desktop/Selenium tests/Run Selenium tests$ git --version
git version 2.25.1
mohona@mahfuza:~/Desktop/Selenium tests/Run Selenium tests$ cd mediawiki/
mohona@mahfuza:~/Desktop/Selenium tests/Run Selenium tests/mediawiki$ ls
api.php Gruntfile.js package.json
autoload.php HISTORY package-lock.json
cache images phpunit.xml.dist
CODE_OF_CONDUCT.md img_auth.php README.md
composer.json includes RELEASE-NOTES-1.37
composer.local.json-sample index.php RELEASE-NOTES-1.38
composer.lock INSTALL resources
COPYING jsduck.json rest.php
CREDITS languages SECURITY
DEVELOPERS.md load.php skins
docker-compose.override.yml LocalSettings.php tests
docker-compose.yml maintenance thumb_handler.php
docs mw-config thumb.php
extensions node_modules UPGRADE
FAQ opensearch_desc.php vendor
mohona@mahfuza:~/Desktop/Selenium tests/Run Selenium tests/mediawiki$ cat .env
MW_SCRIPT_PATH=/w
MW_SERVER=http://localhost:8080
MW_DOCKER_PORT=8080
MEDIAWIKI_USER=Admin
MEDIAWIKI_PASSWORD=dockerpass
XDEBUG_CONFIG=
XDEBUG_ENABLE=true
XHPROF_ENABLE=true
MW_DOCKER_UID=1000
MW_DOCKER_GID=1000
# Target MediaWiki-Docker
MW_SCRIPT_PATH=/w
mohona@mahfuza:~/Desktop/Selenium tests/Run Selenium tests/mediawiki$ cat docker-compose.override.yml
version: '3.7'
services:
mediawiki:
# For Linux: This extra_hosts section enables Xdebug-IDE communication:
extra_hosts:
- "host.docker.internal:host-gateway"
mohona@mahfuza:~/Desktop/Selenium tests/Run Selenium tests/mediawiki$ unset DISPLAY
mohona@mahfuza:~/Desktop/Selenium tests/Run Selenium tests/mediawiki$ echo $DISPLAY
mohona@mahfuza:~/Desktop/Selenium tests/Run Selenium tests/mediawiki$ echo "MW_DOCKER_UID=$(id -u)
> MW_DOCKER_GID=$(id -g)" >> .env
mohona@mahfuza:~/Desktop/Selenium tests/Run Selenium tests/mediawiki$ docker-compose up -d
mediawiki_mediawiki_1 is up-to-date
mediawiki_mediawiki-web_1 is up-to-date
mediawiki_mediawiki-jobrunner_1 is up-to-date
mohona@mahfuza:~/Desktop/Selenium tests/Run Selenium tests/mediawiki$ docker-compose exec mediawiki composer update
> ComposerHookHandler::onPreUpdate
Loading composer repositories with package information
Warning from https://repo.packagist.org: Support for Composer 1 is deprecated and some packages will not be available. You should upgrade to Composer 2. See https://blog.packagist.com/deprecating-composer-1-support/
Updating dependencies (including require-dev)
Nothing to install or update
Package phpunit/php-token-stream is abandoned, you should avoid using it. No replacement was suggested.
Package sebastian/resource-operations is abandoned, you should avoid using it. No replacement was suggested.
Generating optimized autoload files
40 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
> ComposerVendorHtaccessCreator::onEvent
mohona@mahfuza:~/Desktop/Selenium tests/Run Selenium tests/mediawiki$ docker-compose exec mediawiki /bin/bash /docker/install.sh
+ php maintenance/install.php --server http://localhost:8080 --scriptpath=/w --dbtype sqlite --dbpath /var/www/html/w/cache/sqlite --lang en --pass dockerpass MediaWiki Admin
PHP 7.2.34-18+0~20210223.60+debian10~1.gbpb21322+wmf1 is installed.
Found ImageMagick: /usr/bin/convert. Image thumbnailing will be enabled if you enable uploads.
Found the Git version control software: /usr/bin/git.
Using server name "http://localhost".
Using server URL "http://localhost:8080/w".
Warning: Your default directory for uploads (/var/www/html/w/images/) is not checked for vulnerability to arbitrary script execution during the CLI install.
Using the PHP intl extension for Unicode normalization.
The environment has been checked. You can install MediaWiki.
A LocalSettings.php file has been detected. To upgrade this installation, please run update.php instead
A LocalSettings.php file has been detected. To upgrade this installation, please run update.php instead
mohona@mahfuza:~/Desktop/Selenium tests/Run Selenium tests/mediawiki$ docker-compose exec mediawiki php maintenance/update.php
MediaWiki 1.38.0-alpha Updater
Your composer.lock file is up to date with current dependencies!
Going to run database updates for my_wiki
Using SQLite file: '/var/www/html/w/cache/sqlite/my_wiki.sqlite'
Depending on the size of your database this may take a while!
Abort with control-c in the next five seconds (skip this countdown with --quick) ...0
...collations up-to-date.
...have el_index_60 field in externallinks table.
...have ug_expiry field in user_groups table.
Modifying img_media_type field of table image ...done.
...ip_changes table already exists.
...skipping: index cl_from doesn't exist.
...skipping: index tl_from doesn't exist.
...skipping: index pl_from doesn't exist.
...skipping: index old_id doesn't exist.
...skipping: index il_from doesn't exist.
...skipping: index iwl_from doesn't exist.
...skipping: index ll_from doesn't exist.
...skipping: index ls_field_val doesn't exist.
...skipping: index md_module_skin doesn't exist.
...skipping: index keyname doesn't exist.
...skipping: index qci_type doesn't exist.
...skipping: index ss_row_id doesn't exist.
...skipping: index ufg_user_group doesn't exist.
...skipping: index user_properties_user_property doesn't exist.
...comment table already exists.
...revision_comment_temp table already exists.
...have ar_comment_id field in archive table.
...img_description field does not exist in image table, skipping modify field patch.
...have ipb_reason_id field in ipblocks table.
...have log_comment_id field in logging table.
...have oi_description_id field in oldimage table.
...have pt_reason_id field in protected_titles table.
...have rc_comment_id field in recentchanges table.
...rev_comment field does not exist in revision table, skipping modify field patch.
...have img_description_id field in image table.
...have fa_description_id field in filearchive table.
Migrating comments to the 'comments' table, printing progress markers. For large
databases, you may want to hit Ctrl-C and do this manually with
maintenance/migrateComments.php.
No need to migrate revision.rev_comment, field does not exist
No need to migrate archive.ar_comment, field does not exist
No need to migrate ipblocks.ipb_reason, field does not exist
No need to migrate image.img_description, field does not exist
No need to migrate oldimage.oi_description, field does not exist
No need to migrate filearchive.fa_deleted_reason, field does not exist
No need to migrate filearchive.fa_description, field does not exist
No need to migrate recentchanges.rc_comment, field does not exist
No need to migrate logging.log_comment, field does not exist
No need to migrate protected_titles.pt_reason, field does not exist
done.
...skipping: index lc_lang_key doesn't exist.
...content table already exists.
...content_models table already exists.
...slots table already exists.
...have slot_origin field in slots table.
...slot_roles table already exists.
...actor table already exists.
...have ar_actor field in archive table.
...revision_actor_temp table already exists.
...have ipb_by_actor field in ipblocks table.
...have img_actor field in image table.
...have oi_actor field in oldimage table.
...have fa_actor field in filearchive table.
...have rc_actor field in recentchanges table.
...have log_actor field in logging table.
Migrating actors to the 'actor' table, printing progress markers. For large
databases, you may want to hit Ctrl-C and do this manually with
maintenance/migrateActors.php.
Creating actor entries for all registered users
... 1 - 2
Completed actor creation, added 0 new actor(s)
No need to migrate revision.rev_user, field does not exist
No need to migrate archive.ar_user, field does not exist
No need to migrate ipblocks.ipb_by, field does not exist
No need to migrate image.img_user, field does not exist
No need to migrate oldimage.oi_user, field does not exist
No need to migrate filearchive.fa_user, field does not exist
No need to migrate recentchanges.rc_user, field does not exist
No need to migrate logging.log_user, field does not exist
Beginning migration of log_search
Completed migration, inserted 0 row(s) with 0 new actor(s), 0 error(s)
done.
...rev_text_id field does not exist in revision table, skipping modify field patch.
Modifying table site_stats ...done.
...index rc_namespace_title_timestamp already set on recentchanges table.
...change_tag_def table already exists.
Populating el_index_60 field, printing progress markers. For large
databases, you may want to hit Ctrl-C and do this manually with
maintenance/populateExternallinksIndex60.php.
Populating externallinks.el_index_60...
el_id 0 - 200 of 6
Done, 0 rows updated.
done.
Modifying el_index_60 field of table externallinks ...done.
Running maintenance/deduplicateArchiveRevId.php...
Deduplicating ar_rev_id...
New install, nothing to do here.
done.
...have ct_tag_id field in change_tag table.
...index ar_revid_uniq already set on archive table.
Migrating revision data to the MCR 'slot' and 'content' tables, printing progress markers.
For large databases, you may want to hit Ctrl-C and do this manually with
maintenance/populateContentTables.php.
Populating revision...
No need to populate, revision.rev_text_id field does not exist
Populating archive...
No need to populate, archive.ar_text_id field does not exist
Done. Processed 0 rows in 0.0083839893341064 seconds
done.
...index log_type_action already set on logging table.
...type_action key doesn't exist.
...skipping: index iw_prefix doesn't exist.
...skipping: index pp_page_propname doesn't exist.
...skipping: index pt_namespace_title doesn't exist.
...skipping: index site_ids_type doesn't exist.
...index rc_this_oldid already set on recentchanges table.
...transcache doesn't exist.
Running maintenance/populateChangeTagDef.php...
done.
...change_tag_rc_tag key doesn't exist.
...have ipb_sitewide field in ipblocks table.
...ipblocks_restrictions table already exists.
...change_tag table does not contain ct_tag field.
...valid_tag doesn't exist.
...tag_summary doesn't exist.
...archive table does not contain ar_comment field.
...ipblocks table does not contain ipb_reason field.
...image table does not contain img_description field.
...oldimage table does not contain oi_description field.
...filearchive table does not contain fa_description field.
...recentchanges table does not contain rc_comment field.
...logging table does not contain log_comment field.
...protected_titles table does not contain pt_reason field.
...archive table does not contain ar_user field.
...ipblocks table does not contain ipb_by field.
...image table does not contain img_user field.
...oldimage table does not contain oi_user field.
...filearchive table does not contain fa_user field.
...recentchanges table does not contain rc_user field.
...logging table does not contain log_user field.
...watchlist_expiry table already exists.
Modifying fa_actor field of table filearchive ...done.
Modifying rc_actor field of table recentchanges ...done.
Modifying log_actor field of table logging ...done.
Modifying page_restrictions field of table page ...done.
...index ipb_address_unique already set on ipblocks table.
...have rev_actor field in revision table.
...archive table does not contain ar_text_id field.
...index ipb_address_unique on table ipblocks has no field ipb_anon_only; added.
...ipb_address_unique index up-to-date.
Modifying actor_name field of table actor ...done.
Modifying content_id field of table content ...done.
Modifying rd_title field of table redirect ...done.
Modifying pl_title field of table pagelinks ...done.
Modifying tl_title field of table templatelinks ...done.
Modifying il_to field of table imagelinks ...done.
Modifying ll_title field of table langlinks ...done.
Modifying iwl_title field of table iwlinks ...done.
Modifying cat_title field of table category ...done.
Modifying qc_title field of table querycache ...done.
Modifying qcc_title field of table querycachetwo ...done.
Modifying wl_title field of table watchlist ...done.
Modifying pt_title field of table protected_titles ...done.
Modifying pt_expiry field of table protected_titles ...done.
Modifying ipc_rev_timestamp field of table ip_changes ...done.
Modifying revactor_timestamp field of table revision_actor_temp ...done.
Renaming index namespace_title into wl_namespace_title to table watchlist ...done.
Modifying job_title field of table job ...done.
Modifying role_id field of table slot_roles ...done.
Modifying model_id field of table content_models ...done.
Modifying cl_to field of table categorylinks ...done.
Modifying log_title field of table logging ...done.
...index up_property already set on user_properties table.
...index site_global_key already set on sites table.
Renaming index type_time into log_type_time to table logging ...done.
Modifying fa_name field of table filearchive ...done.
Modifying oi_name field of table oldimage ...done.
Modifying exptime field of table objectcache ...done.
Modifying ipb_timestamp field of table ipblocks ...done.
...index ar_name_title_timestamp already set on archive table.
Modifying img_name field of table image ...done.
...index si_key already set on site_identifiers table.
Modifying rc_title field of table recentchanges ...done.
Renaming index new_name_timestamp into rc_new_name_timestamp to table recentchanges ...done.
Modifying ar_title field of table archive ...done.
Modifying page_title field of table page ...done.
Modifying user_name field of table user ...done.
...index rev_page_timestamp already set on revision table.
Adding modtoken field to table objectcache ...done.
Modifying rev_timestamp field of table revision ...done.
Adding index oi_timestamp to table oldimage ...done.
Renaming index name_title into page_name_title to table page ...done.
...index ct_rc_tag_id already set on change_tag table.
...site_stats is populated...done.
Checking existence of old default messages...done.
Populating rev_len column
...doing rev_id from 1 to 200
Populating ar_len column
...archive table seems to be empty.
rev_len and ar_len population complete [0 revision rows, 0 archive rows].
Populating rev_sha1 column
...doing rev_id from 1 to 200
Populating ar_sha1 column
...archive table seems to be empty.
Populating ar_sha1 column legacy rows
rev_sha1 and ar_sha1 population complete [0 revision rows, 0 archive rows].
Populating img_sha1 field
Done 0 files in 0.0 seconds
Fixing protocol-relative entries in the externallinks table...
Done, 0 rows updated.
Populating fa_sha1 field from fa_storage_key
Done 0 files in 0.0 seconds
Updating *_from_namespace fields in links tables.
...doing page_id from 1 to 200
Adding empty categories with description pages...
Removing empty categories without description pages...
Category cleanup complete.
Populating page_props.pp_sortkey...
Populating page_props.pp_sortkey complete.
Updated a total of 0 rows
Copying IP revisions to ip_changes, from rev_id 0 to rev_id 1
Attempted to insert 0 IP revisions, 0 actually done.
Updating externallinks table index fields
el_id 0 - 6 of 6
Done, 0 rows updated, 0 deleted.
Purging caches...done.
Done in 2.3 s.
mohona@mahfuza:~/Desktop/Selenium tests/Run Selenium tests/mediawiki$ npm ci
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
added 1092 packages, and audited 1094 packages in 14s
123 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
mohona@mahfuza:~/Desktop/Selenium tests/Run Selenium tests/mediawiki$ npm run selenium-test
> selenium-test
> wdio ./tests/selenium/wdio.conf.js
node: ../src/coroutine.cc:134: void* find_thread_id_key(void*): Assertion `thread_id_key != 0x7777' failed.
Aborted (core dumped)
mohona@mahfuza:~/Desktop/Selenium tests/Run Selenium tests/mediawiki$ docker-compose exec mediawiki /bin/bash /docker/install.sh
+ php maintenance/install.php --server http://localhost:8080 --scriptpath=/w --dbtype sqlite --dbpath /var/www/html/w/cache/sqlite --lang en --pass dockerpass MediaWiki Admin
PHP 7.2.34-18+0~20210223.60+debian10~1.gbpb21322+wmf1 is installed.
Found ImageMagick: /usr/bin/convert. Image thumbnailing will be enabled if you enable uploads.
Found the Git version control software: /usr/bin/git.
Using server name "http://localhost".
Using server URL "http://localhost:8080/w".
Warning: Your default directory for uploads (/var/www/html/w/images/) is not checked for vulnerability to arbitrary script execution during the CLI install.
Using the PHP intl extension for Unicode normalization.
The environment has been checked. You can install MediaWiki.
A LocalSettings.php file has been detected. To upgrade this installation, please run update.php instead
A LocalSettings.php file has been detected. To upgrade this installation, please run update.php instead
mohona@mahfuza:~/Desktop/Selenium tests/Run Selenium tests/mediawiki$ docker-compose exec mediawiki php maintenance/update.php --force
MediaWiki 1.38.0-alpha Updater
Your composer.lock file is up to date with current dependencies!
Going to run database updates for my_wiki
Using SQLite file: '/var/www/html/w/cache/sqlite/my_wiki.sqlite'
Depending on the size of your database this may take a while!
Abort with control-c in the next five seconds (skip this countdown with --quick) ...0
...collations up-to-date.
...have el_index_60 field in externallinks table.
...have ug_expiry field in user_groups table.
...img_media_type in table image already modified by patch patch-add-3d.sql.
...ip_changes table already exists.
...skipping: index cl_from doesn't exist.
...skipping: index tl_from doesn't exist.
...skipping: index pl_from doesn't exist.
...skipping: index old_id doesn't exist.
...skipping: index il_from doesn't exist.
...skipping: index iwl_from doesn't exist.
...skipping: index ll_from doesn't exist.
...skipping: index ls_field_val doesn't exist.
...skipping: index md_module_skin doesn't exist.
...skipping: index keyname doesn't exist.
...skipping: index qci_type doesn't exist.
...skipping: index ss_row_id doesn't exist.
...skipping: index ufg_user_group doesn't exist.
...skipping: index user_properties_user_property doesn't exist.
...comment table already exists.
...revision_comment_temp table already exists.
...have ar_comment_id field in archive table.
...img_description field does not exist in image table, skipping modify field patch.
...have ipb_reason_id field in ipblocks table.
...have log_comment_id field in logging table.
...have oi_description_id field in oldimage table.
...have pt_reason_id field in protected_titles table.
...have rc_comment_id field in recentchanges table.
...rev_comment field does not exist in revision table, skipping modify field patch.
...have img_description_id field in image table.
...have fa_description_id field in filearchive table.
...skipping: index lc_lang_key doesn't exist.
...content table already exists.
...content_models table already exists.
...slots table already exists.
...have slot_origin field in slots table.
...slot_roles table already exists.
...actor table already exists.
...have ar_actor field in archive table.
...revision_actor_temp table already exists.
...have ipb_by_actor field in ipblocks table.
...have img_actor field in image table.
...have oi_actor field in oldimage table.
...have fa_actor field in filearchive table.
...have rc_actor field in recentchanges table.
...have log_actor field in logging table.
...rev_text_id field does not exist in revision table, skipping modify field patch.
...table site_stats already modified by patch patch-site_stats-modify.sql.
...index rc_namespace_title_timestamp already set on recentchanges table.
...change_tag_def table already exists.
...el_index_60 in table externallinks already modified by patch patch-externallinks-el_index_60-drop-default.sql.
Running maintenance/deduplicateArchiveRevId.php...
Deduplicating ar_rev_id...
New install, nothing to do here.
done.
...have ct_tag_id field in change_tag table.
...index ar_revid_uniq already set on archive table.
...index log_type_action already set on logging table.
...type_action key doesn't exist.
...skipping: index iw_prefix doesn't exist.
...skipping: index pp_page_propname doesn't exist.
...skipping: index pt_namespace_title doesn't exist.
...skipping: index site_ids_type doesn't exist.
...index rc_this_oldid already set on recentchanges table.
...transcache doesn't exist.
Running maintenance/populateChangeTagDef.php...
done.
...change_tag_rc_tag key doesn't exist.
...have ipb_sitewide field in ipblocks table.
...ipblocks_restrictions table already exists.
...change_tag table does not contain ct_tag field.
...valid_tag doesn't exist.
...tag_summary doesn't exist.
...archive table does not contain ar_comment field.
...ipblocks table does not contain ipb_reason field.
...image table does not contain img_description field.
...oldimage table does not contain oi_description field.
...filearchive table does not contain fa_description field.
...recentchanges table does not contain rc_comment field.
...logging table does not contain log_comment field.
...protected_titles table does not contain pt_reason field.
...archive table does not contain ar_user field.
...ipblocks table does not contain ipb_by field.
...image table does not contain img_user field.
...oldimage table does not contain oi_user field.
...filearchive table does not contain fa_user field.
...recentchanges table does not contain rc_user field.
...logging table does not contain log_user field.
...watchlist_expiry table already exists.
...fa_actor in table filearchive already modified by patch patch-filearchive-drop-fa_actor-DEFAULT.sql.
...rc_actor in table recentchanges already modified by patch patch-recentchanges-drop-rc_actor-DEFAULT.sql.
...log_actor in table logging already modified by patch patch-logging-drop-log_actor-DEFAULT.sql.
...page_restrictions in table page already modified by patch patch-page_restrictions-null.sql.
...index ipb_address_unique already set on ipblocks table.
...have rev_actor field in revision table.
...archive table does not contain ar_text_id field.
...index ipb_address_unique on table ipblocks has no field ipb_anon_only; added.
...ipb_address_unique index up-to-date.
...actor_name in table actor already modified by patch patch-actor-actor_name-varbinary.sql.
...content_id in table content already modified by patch patch-content-content_id-fix_not_null.sql.
...rd_title in table redirect already modified by patch patch-redirect-rd_title-varbinary.sql.
...pl_title in table pagelinks already modified by patch patch-pagelinks-pl_title-varbinary.sql.
...tl_title in table templatelinks already modified by patch patch-templatelinks-tl_title-varbinary.sql.
...il_to in table imagelinks already modified by patch patch-imagelinks-il_to-varbinary.sql.
...ll_title in table langlinks already modified by patch patch-langlinks-ll_title-varbinary.sql.
...iwl_title in table iwlinks already modified by patch patch-iwlinks-iwl_title-varbinary.sql.
...cat_title in table category already modified by patch patch-category-cat_title-varbinary.sql.
...qc_title in table querycache already modified by patch patch-querycache-qc_title-varbinary.sql.
...qcc_title in table querycachetwo already modified by patch patch-querycachetwo-qcc_title-varbinary.sql.
...wl_title in table watchlist already modified by patch patch-watchlist-wl_title-varbinary.sql.
...pt_title in table protected_titles already modified by patch patch-protected_titles-pt_title-varbinary.sql.
...pt_expiry in table protected_titles already modified by patch patch-protected_titles-pt_expiry-drop-default.sql.
...ipc_rev_timestamp in table ip_changes already modified by patch patch-ip_changes-pc_rev_timestamp-drop-default.sql.
...revactor_timestamp in table revision_actor_temp already modified by patch patch-revactor_timestamp-drop-default.sql.
...index wl_namespace_title already set on watchlist table.
...job_title in table job already modified by patch patch-job-job_title-varbinary.sql.
...role_id in table slot_roles already modified by patch patch-slot_roles-role_id-fix_not_null.sql.
...model_id in table content_models already modified by patch patch-content_models-model_id-fix_not_null.sql.
...cl_to in table categorylinks already modified by patch patch-categorylinks-cl_to-varbinary.sql.
...log_title in table logging already modified by patch patch-logging-log_title-varbinary.sql.
...index up_property already set on user_properties table.
...index site_global_key already set on sites table.
...index log_type_time already set on logging table.
...fa_name in table filearchive already modified by patch patch-filearchive-fa_name.sql.
...oi_name in table oldimage already modified by patch patch-oldimage-oi_name-varbinary.sql.
...exptime in table objectcache already modified by patch patch-objectcache-exptime-notnull.sql.
...ipb_timestamp in table ipblocks already modified by patch patch-ipblocks-ipb_timestamp-drop-default.sql.
...index ar_name_title_timestamp already set on archive table.
...img_name in table image already modified by patch patch-image-img_name-varbinary.sql.
...index si_key already set on site_identifiers table.
...rc_title in table recentchanges already modified by patch patch-recentchanges-rc_title-varbinary.sql.
...index rc_new_name_timestamp already set on recentchanges table.
...ar_title in table archive already modified by patch patch-archive-ar_title-varbinary.sql.
...page_title in table page already modified by patch patch-page-page_title-varbinary.sql.
...user_name in table user already modified by patch patch-user_table-updates.sql.
...index rev_page_timestamp already set on revision table.
...have modtoken field in objectcache table.
...rev_timestamp in table revision already modified by patch patch-revision-rev_timestamp-drop-default.sql.
...index oi_timestamp already set on oldimage table.
...index page_name_title already set on page table.
...index ct_rc_tag_id already set on change_tag table.
...site_stats is populated...done.
Populating rev_len column
...doing rev_id from 1 to 200
Populating ar_len column
...archive table seems to be empty.
rev_len and ar_len population complete [0 revision rows, 0 archive rows].
Populating rev_sha1 column
...doing rev_id from 1 to 200
Populating ar_sha1 column
...archive table seems to be empty.
Populating ar_sha1 column legacy rows
rev_sha1 and ar_sha1 population complete [0 revision rows, 0 archive rows].
Populating and recalculating img_sha1 field
Done 0 files in 0.0 seconds
Fixing protocol-relative entries in the externallinks table...
Done, 0 rows updated.
Populating fa_sha1 field from fa_storage_key
Done 0 files in 0.0 seconds
Updating *_from_namespace fields in links tables.
...doing page_id from 1 to 200
Adding empty categories with description pages...
Removing empty categories without description pages...
Category cleanup complete.
Populating page_props.pp_sortkey...
Populating page_props.pp_sortkey complete.
Updated a total of 0 rows
Copying IP revisions to ip_changes, from rev_id 0 to rev_id 1
Attempted to insert 0 IP revisions, 0 actually done.
Updating externallinks table index fields
el_id 0 - 6 of 6
Done, 0 rows updated, 0 deleted.
Purging caches...done.
Done in 0.2 s.
mohona@mahfuza:~/Desktop/Selenium tests/Run Selenium tests/mediawiki$ docker-compose exec mediawiki composer update
> ComposerHookHandler::onPreUpdate
Loading composer repositories with package information
Warning from https://repo.packagist.org: Support for Composer 1 is deprecated and some packages will not be available. You should upgrade to Composer 2. See https://blog.packagist.com/deprecating-composer-1-support/
Updating dependencies (including require-dev)
Package operations: 124 installs, 0 updates, 0 removals
- Installing wikimedia/composer-merge-plugin (v2.0.1): Downloading (connectinDownloading (100%)
- Installing cssjanus/cssjanus (v2.1.0): Downloading (100%)
- Installing oojs/oojs-ui (v0.42.0): Downloading (100%)
- Installing pear/pear_exception (v1.0.2): Downloading (100%)
- Installing pear/console_getopt (v1.4.3): Downloading (100%)
- Installing pear/pear-core-minimal (v1.10.11): Downloading (100%)
- Installing pear/mail (v1.4.1): Downloading (100%)
- Installing pear/mail_mime (1.10.11): Downloading (100%)
- Installing pear/net_socket (v1.2.2): Downloading (100%)
- Installing pear/net_smtp (1.10.0): Downloading (100%)
- Installing wikimedia/base-convert (v2.0.1): Downloading (100%)
- Installing wikimedia/cdb (1.4.1): Downloading (100%)
- Installing wikimedia/cldr-plural-rule-parser (v2.0.0): Downloading (connectDownloading (100%)
- Installing pleonasm/bloom-filter (1.0.2): Downloading (100%)
- Installing wikimedia/common-passwords (v0.3.0):Downloading (100%) )
- Installing wikimedia/html-formatter (3.0.1): Downloading (100%)
- Installing wikimedia/at-ease (v2.1.0): Downloading (100%)
- Installing wikimedia/ip-set (3.0.0): Downloading (100%)
- Installing wikimedia/less.php (v3.1.0): Downloading (100%)
- Installing pear/net_url2 (v2.2.2): Downloading (100%)
- Installing wikimedia/minify (2.2.4): Downloading (100%)
- Installing wikimedia/normalized-exception (v1.0.1): Downloading (connectingDownloading (100%)
- Installing psr/log (1.1.4): Downloading (100%)
- Installing wikimedia/php-session-serializer (v2.0.0): Downloading (connectiDownloading (100%)
- Installing wikimedia/purtle (v1.0.8): Downloading (100%)
- Installing wikimedia/relpath (3.0.0): Downloading (100%)
- Installing wikimedia/request-timeout (1.1.0): Downloading (100%)
- Installing wikimedia/running-stat (v1.2.1): Downloading (100%)
- Installing wikimedia/scoped-callback (v3.0.0): Downloading (100%)
- Installing wikimedia/assert (v0.5.0): Downloading (100%)
- Installing psr/container (1.1.1): Downloading (100%)
- Installing wikimedia/services (2.0.1): Downloading (100%)
- Installing wikimedia/wikipeg (2.0.6): Downloading (100%)
- Installing monolog/monolog (2.2.0): Downloading (100%)
- Installing psr/http-message (1.0.1): Downloading (100%)
- Installing psr/http-client (1.0.1): Downloading (100%)
- Installing ralouphie/getallheaders (3.0.3): Downloading (100%)
- Installing guzzlehttp/psr7 (1.8.3): Downloading (100%)
- Installing guzzlehttp/promises (1.5.0): Downloading (100%)
- Installing guzzlehttp/guzzle (7.2.0): Downloading (100%)
- Installing wikimedia/shellbox (2.1.0): Downloading (100%)
- Installing wikimedia/utfnormal (3.0.2): Downloading (100%)
- Installing wikimedia/wait-condition-loop (v2.0.2): Downloading (connecting.Downloading (100%)
- Installing wikimedia/wrappedstring (v4.0.1): Downloading (100%)
- Installing wikimedia/timestamp (v3.0.0): Downloading (100%)
- Installing wikimedia/xmp-reader (0.8.1): Downloading (100%)
- Installing zordius/lightncandy (v1.2.6): Downloading (100%)
- Installing doctrine/sql-formatter (1.1.1): Downloading (100%)
- Installing giorgiosironi/eris (0.10.0): Downloading (100%)
- Installing squizlabs/php_codesniffer (3.6.0): Downloading (100%)
- Installing sebastian/diff (3.0.3): Downloading (100%)
- Installing composer/spdx-licenses (1.5.5): Downloading (100%)
- Installing composer/semver (3.2.5): Downloading (100%)
- Installing mediawiki/mediawiki-codesniffer (v37.0.0): Downloading (connectiDownloading (100%)
- Installing tysonandre/var_representation_polyfill (0.1.1): Downloading (conDownloading (100%)
- Installing symfony/polyfill-php80 (v1.23.1): Downloading (100%)
- Installing symfony/polyfill-intl-normalizer (v1.23.0): Downloading (connectDownloading (100%)
- Installing symfony/polyfill-intl-grapheme (v1.23.1): Downloading (connectinDownloading (100%)
- Installing symfony/string (v5.3.7): Downloading (100%)
- Installing symfony/service-contracts (v2.4.0): Downloading (100%)
- Installing symfony/polyfill-php73 (v1.23.0): Downloading (100%)
- Installing symfony/deprecation-contracts (v2.4.0): Downloading (connecting.Downloading (100%)
- Installing symfony/console (v5.3.7): Downloading (100%)
- Installing sabre/event (5.1.2): Downloading (100%)
- Installing netresearch/jsonmapper (v4.0.0): Downloading (100%)
- Installing microsoft/tolerant-php-parser (v0.1.1): Downloading (connecting.Downloading (100%)
- Installing phpdocumentor/reflection-common (2.2.0): Downloading (connectingDownloading (100%)
- Installing webmozart/assert (1.10.0): Downloading (100%)
- Installing phpdocumentor/type-resolver (1.5.1):Downloading (100%) )
- Installing phpdocumentor/reflection-docblock (5.2.2): Downloading (connectiDownloading (100%)
- Installing felixfbecker/advanced-json-rpc (v3.2.1): Downloading (connectingDownloading (100%)
- Installing composer/xdebug-handler (2.0.2): Downloading (100%)
- Installing phan/phan (5.2.0): Downloading (100%)
- Installing mediawiki/phan-taint-check-plugin (3.3.2): Downloading (connectiDownloading (100%)
- Installing mediawiki/mediawiki-phan-config (0.11.0): Downloading (connectinDownloading (100%)
- Installing nmred/kafka-php (v0.1.5): Downloading (100%)
- Installing php-parallel-lint/php-console-color (v0.3): Downloading (connectDownloading (100%)
- Installing php-parallel-lint/php-console-highlighter (v0.5): Downloading (cDownloading (100%)
- Installing php-parallel-lint/php-parallel-lint (v1.3.1): Downloading (conneDownloading (100%)
- Installing seld/jsonlint (1.8.3): Downloading (100%)
- Installing wikimedia/testing-access-wrapper (2.0.0): Downloading (connectinDownloading (100%)
- Installing hamcrest/hamcrest-php (v2.0.1): Downloading (100%)
- Installing wmde/hamcrest-html-matchers (v1.0.0): Downloading (connecting...Downloading (100%)
- Installing doctrine/event-manager (1.1.1): Downloading (100%)
- Installing doctrine/deprecations (v0.5.3): Downloading (100%)
- Installing doctrine/cache (2.1.1): Downloading (100%)
- Installing doctrine/dbal (2.13.3): Downloading (100%)
- Installing wikimedia/zest-css (2.0.2): Downloading (100%)
- Installing wikimedia/remex-html (2.3.2): Downloading (100%)
- Installing wikimedia/object-factory (v3.0.2): Downloading (100%)
- Installing wikimedia/ip-utils (3.0.2): Downloading (100%)
- Installing wikimedia/idle-dom (v0.10.0): Downloading (100%)
- Installing wikimedia/dodo (v0.3.0): Downloading (100%)
- Installing liuggio/statsd-php-client (v1.0.18):Downloading (100%) )
- Installing wikimedia/parsoid (v0.15.0-a3): Downloading (100%)
- Installing sebastian/version (2.0.1): Downloading (100%)
- Installing sebastian/type (1.1.4): Downloading (100%)
- Installing sebastian/resource-operations (2.0.2): Downloading (connecting..Downloading (100%)
- Installing sebastian/recursion-context (3.0.1):Downloading (100%) )
- Installing sebastian/object-reflector (1.1.2): Downloading (100%)
- Installing sebastian/object-enumerator (3.0.4):Downloading (100%) )
- Installing sebastian/global-state (3.0.1): Downloading (100%)
- Installing sebastian/exporter (3.1.3): Downloading (100%)
- Installing sebastian/environment (4.2.4): Downloading (100%)
- Installing sebastian/comparator (3.0.3): Downloading (100%)
- Installing phpunit/php-timer (2.1.3): Downloading (100%)
- Installing phpunit/php-text-template (1.2.1): Downloading (100%)
- Installing phpunit/php-file-iterator (2.0.4): Downloading (100%)
- Installing theseer/tokenizer (1.2.1): Downloading (100%)
- Installing sebastian/code-unit-reverse-lookup (1.0.2): Downloading (connectDownloading (100%)
- Installing phpunit/php-token-stream (3.1.3): Downloading (100%)
- Installing phpunit/php-code-coverage (7.0.15): Downloading (100%)
- Installing doctrine/instantiator (1.4.0): Downloading (100%)
- Installing phpspec/prophecy (1.14.0): Downloading (100%)
- Installing myclabs/deep-copy (1.10.2): Downloading (100%)
- Installing phar-io/version (3.1.0): Downloading (100%)
- Installing phar-io/manifest (2.0.3): Downloading (100%)
- Installing phpunit/phpunit (8.5.21): Downloading (100%)
- Installing johnkary/phpunit-speedtrap (v3.3.0):Downloading (100%) )
- Installing justinrainbow/json-schema (5.2.11): Downloading (100%)
- Installing nikic/php-parser (v4.13.0): Downloading (100%)
- Installing symfony/var-dumper (v5.3.8): Downloading (100%)
- Installing psy/psysh (v0.10.9): Downloading (100%)
- Installing symfony/yaml (v5.3.6): Downloading (100%)
pear/net_smtp suggests installing pear/auth_sasl (Install optionally via your project's composer.json)
monolog/monolog suggests installing graylog2/gelf-php (Allow sending log messages to a GrayLog2 server)
monolog/monolog suggests installing doctrine/couchdb (Allow sending log messages to a CouchDB server)
monolog/monolog suggests installing ruflin/elastica (Allow sending log messages to an Elastic Search server)
monolog/monolog suggests installing elasticsearch/elasticsearch (Allow sending log messages to an Elasticsearch server via official client)
monolog/monolog suggests installing php-amqplib/php-amqplib (Allow sending log messages to an AMQP server using php-amqplib)
monolog/monolog suggests installing ext-amqp (Allow sending log messages to an AMQP server (1.0+ required))
monolog/monolog suggests installing ext-mongodb (Allow sending log messages to a MongoDB server (via driver))
monolog/monolog suggests installing mongodb/mongodb (Allow sending log messages to a MongoDB server (via library))
monolog/monolog suggests installing aws/aws-sdk-php (Allow sending log messages to AWS services like DynamoDB)
monolog/monolog suggests installing rollbar/rollbar (Allow sending log messages to Rollbar)
monolog/monolog suggests installing php-console/php-console (Allow sending log messages to Google Chrome)
guzzlehttp/psr7 suggests installing laminas/laminas-httphandlerrunner (Emit PSR-7 responses)
giorgiosironi/eris suggests installing icomefromthenet/reverse-regex (v0.0.6.3 for the regex() Generator)
tysonandre/var_representation_polyfill suggests installing ext-var_representation (*)
symfony/service-contracts suggests installing symfony/service-implementation
symfony/console suggests installing symfony/event-dispatcher
symfony/console suggests installing symfony/lock
symfony/console suggests installing symfony/process
phan/phan suggests installing ext-ast (Needed for parsing ASTs (unless --use-fallback-parser is used). 1.0.1+ is needed, 1.0.14+ is recommended.)
phan/phan suggests installing ext-var_representation (Suggested for converting values to strings in issue messages)
doctrine/cache suggests installing alcaeus/mongo-php-adapter (Required to use legacy MongoDB driver)
wikimedia/parsoid suggests installing wikimedia/langconv (Provides script conversion support)
sebastian/global-state suggests installing ext-uopz (*)
phpunit/phpunit suggests installing ext-soap (*)
phpunit/phpunit suggests installing phpunit/php-invoker (^2.0.0)
psy/psysh suggests installing ext-pdo-sqlite (The doc command requires SQLite to work.)
psy/psysh suggests installing hoa/console (A pure PHP readline implementation. You'll want this if your PHP install doesn't already support readline or libedit.)
Package sebastian/resource-operations is abandoned, you should avoid using it. No replacement was suggested.
Package phpunit/php-token-stream is abandoned, you should avoid using it. No replacement was suggested.
Writing lock file
Generating optimized autoload files
40 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
> ComposerVendorHtaccessCreator::onEvent
mohona@mahfuza:~/Desktop/Selenium tests/Run Selenium tests/mediawiki$ docker-compose exec mediawiki /bin/bash /docker/install.sh
+ php maintenance/install.php --server http://localhost:8080 --scriptpath=/w --dbtype sqlite --dbpath /var/www/html/w/cache/sqlite --lang en --pass dockerpass MediaWiki Admin
PHP 7.2.34-18+0~20210223.60+debian10~1.gbpb21322+wmf1 is installed.
Found ImageMagick: /usr/bin/convert. Image thumbnailing will be enabled if you enable uploads.
Found the Git version control software: /usr/bin/git.
Using server name "http://localhost".
Using server URL "http://localhost:8080/w".
Warning: Your default directory for uploads (/var/www/html/w/images/) is not checked for vulnerability to arbitrary script execution during the CLI install.
Using the PHP intl extension for Unicode normalization.
The environment has been checked. You can install MediaWiki.
Setting up database
done
Creating tables, step one
done
Creating tables, step two
done
Populating default interwiki table
done
Initializing statistics
done
Generating secret keys
done
Prevent running unneeded updates
done
Restoring mediawiki services
done
Creating administrator user account
done
Creating main page with default content
done
Database was successfully set up
MediaWiki has been successfully installed. You can now visit <http://localhost:8080/w> to view your wiki. If you have questions, check out our frequently asked questions list: <https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:FAQ> or use one of the support forums linked on that page.
mohona@mahfuza:~/Desktop/Selenium tests/Run Selenium tests/mediawiki$ npm ci
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
added 1092 packages, and audited 1094 packages in 14s
123 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
mohona@mahfuza:~/Desktop/Selenium tests/Run Selenium tests/mediawiki$ npm run selenium-test
> selenium-test
> wdio ./tests/selenium/wdio.conf.js
node: ../src/coroutine.cc:134: void* find_thread_id_key(void*): Assertion `thread_id_key != 0x7777' failed.
Aborted (core dumped)
mohona@mahfuza:~/Desktop/Selenium tests/Run Selenium tests/mediawiki$ node -v
v16.11.1
mohona@mahfuza:~/Desktop/Selenium tests/Run Selenium tests/mediawiki$ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 14984 100 14984 0 0 37648 0 --:--:-- --:--:-- --:--:-- 37553
=> nvm is already installed in /home/mohona/.nvm, trying to update using git
=> => Compressing and cleaning up git repository
=> nvm source string already in /home/mohona/.bashrc
=> bash_completion source string already in /home/mohona/.bashrc
=> Close and reopen your terminal to start using nvm or run the following to use it now:
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
mohona@mahfuza:~/Desktop/Selenium tests/Run Selenium tests/mediawiki$ wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash
=> nvm is already installed in /home/mohona/.nvm, trying to update using git
=> => Compressing and cleaning up git repository
=> nvm source string already in /home/mohona/.bashrc
=> bash_completion source string already in /home/mohona/.bashrc
=> Close and reopen your terminal to start using nvm or run the following to use it now:
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
mohona@mahfuza:~/Desktop/Selenium tests/Run Selenium tests/mediawiki$ command -v nvm
nvm
mohona@mahfuza:~/Desktop/Selenium tests/Run Selenium tests/mediawiki$ nvm install 14
Downloading and installing node v14.18.1...
Downloading https://nodejs.org/dist/v14.18.1/node-v14.18.1-linux-x64.tar.xz...
######################################################################## 100.0%
Computing checksum with sha256sum
Checksums matched!
Now using node v14.18.1 (npm v6.14.15)
mohona@mahfuza:~/Desktop/Selenium tests/Run Selenium tests/mediawiki$ nvm use 14
Now using node v14.18.1 (npm v6.14.15)
mohona@mahfuza:~/Desktop/Selenium tests/Run Selenium tests/mediawiki$ npm run selenium-test
> @ selenium-test /home/mohona/Desktop/Selenium tests/Run Selenium tests/mediawiki
> wdio ./tests/selenium/wdio.conf.js
Execution of 5 spec files started at 2021-10-18T18:50:31.928Z
[0-0] RUNNING in chrome - /tests/selenium/specs/page.js
[0-0] PASSED in chrome - /tests/selenium/specs/page.js
[0-1] RUNNING in chrome - /tests/selenium/specs/recentchanges.js
[0-1] PASSED in chrome - /tests/selenium/specs/recentchanges.js
[0-2] RUNNING in chrome - /tests/selenium/specs/user.js
[0-2] PASSED in chrome - /tests/selenium/specs/user.js
[0-3] RUNNING in chrome - /tests/selenium/specs/watchlist.js
[0-3] PASSED in chrome - /tests/selenium/specs/watchlist.js
[0-4] RUNNING in chrome - /tests/selenium/wdio-mediawiki/specs/BlankPage.js
[0-4] PASSED in chrome - /tests/selenium/wdio-mediawiki/specs/BlankPage.js
"dot" Reporter:
..............
Spec Files: 5 passed, 5 total (100% completed) in 00:00:18

Event Timeline

Hello @zeljkofilipin! This is the second Microtask.

Here I was facing problem with running selenium-test because of node version and after downgrading that selenium-test worked fine. Here I have kept those commands too to show the process. Will it be okay or shall I remove them and only keep the commands mentioned in MediaWiki Developers page?

Hi @Mhmohona! There's no need to remove anything from the paste.

Okay, thank you @zeljkofilipin. ^_^
Now can I add this paste as contribution on Outreachy page?

@Mhmohona you can, but I would consider this a warm-up task. What I really want to see the applicants do is one of the Fix MediaWiki-Docker/Extension/(extension-name) tasks listed in T256239: Create MediaWiki-Docker documentation for all repositories with Selenium tests.