The webdriver.io Selenium tests are run serially. As part of T226869 I have made a change to run up to 4 tests in parallel with https://gerrit.wikimedia.org/r/c/mediawiki/extensions/Wikibase/+/545650 which has failures.
Error in "item.can add a statement using the keyboard" Error: internal_api_error_DBQueryError: [3b6a7dfcb49300fd1f95a0e6] Exception caught: A database query error has occurred. This may indicate a bug in the software.
There is db error attached to the CI build:
Wed Jan 5 20:01:59 UTC 2022 030379ee3acc wikidb Error 1213 from Wikibase\Repo\Store\Sql\SqlIdGenerator::generateNewId, Deadlock found when trying to get lock; try restarting transaction (localhost:/workspace/db/quibble-mysql-fkbo30y1/socket) INSERT INTO `wb_id_counters` (id_value,id_type) VALUES (1,'wikibase-item') localhost:/workspace/db/quibble-mysql-fkbo30y1/socket
#0 /workspace/src/includes/libs/rdbms/database/Database.php(1758): Wikimedia\Rdbms\Database->getQueryExceptionAndLog(string, integer, string, string)
#1 /workspace/src/includes/libs/rdbms/database/Database.php(1302): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean)
#2 /workspace/src/includes/libs/rdbms/database/Database.php(2530): Wikimedia\Rdbms\Database->query(string, string, integer)
#3 /workspace/src/includes/libs/rdbms/database/Database.php(2510): Wikimedia\Rdbms\Database->doInsert(string, array, string)
#4 /workspace/src/extensions/Wikibase/repo/includes/Store/Sql/SqlIdGenerator.php(103): Wikimedia\Rdbms\Database->insert(string, array, string)
#5 /workspace/src/extensions/Wikibase/repo/includes/Store/Sql/SqlIdGenerator.php(59): Wikibase\Repo\Store\Sql\SqlIdGenerator->generateNewId(Wikimedia\Rdbms\DatabaseMysqli, string)
#6 /workspace/src/extensions/Wikibase/repo/includes/Store/RateLimitingIdGenerator.php(37): Wikibase\Repo\Store\Sql\SqlIdGenerator->getNewId(string)
#7 /workspace/src/extensions/Wikibase/repo/includes/Store/Sql/WikiPageEntityStore.php(166): Wikibase\Repo\Store\RateLimitingIdGenerator->getNewId(string)
#8 /workspace/src/extensions/Wikibase/lib/includes/Store/TypeDispatchingEntityStore.php(59): Wikibase\Repo\Store\Sql\WikiPageEntityStore->assignFreshId(Wikibase\DataModel\Entity\Item)
#9 /workspace/src/extensions/Wikibase/repo/includes/Api/EntitySavingHelper.php(298): Wikibase\Lib\Store\TypeDispatchingEntityStore->assignFreshId(Wikibase\DataModel\Entity\Item)
#10 /workspace/src/extensions/Wikibase/repo/includes/Api/EntitySavingHelper.php(228): Wikibase\Repo\Api\EntitySavingHelper->createEntity(string, NULL, string)
#11 /workspace/src/extensions/Wikibase/repo/includes/Api/ModifyEntity.php(381): Wikibase\Repo\Api\EntitySavingHelper->loadEntity(array, NULL, string)
#12 /workspace/src/extensions/Wikibase/repo/includes/Api/ModifyEntity.php(305): Wikibase\Repo\Api\ModifyEntity->loadEntityFromSavingHelper(NULL)
#13 /workspace/src/includes/api/ApiMain.php(1889): Wikibase\Repo\Api\ModifyEntity->execute()
#14 /workspace/src/includes/api/ApiMain.php(868): ApiMain->executeAction()
#15 /workspace/src/includes/api/ApiMain.php(839): ApiMain->executeActionWithErrorHandling()
#16 /workspace/src/api.php(90): ApiMain->execute()
#17 /workspace/src/api.php(45): wfApiMain()
#18 {main}This can be reproduced by setting wdio maxInstances to 4:
https://gerrit.wikimedia.org/r/c/mediawiki/extensions/Wikibase/+/545650