Page MenuHomePhabricator

Wikibase\MediaInfo\Tests\Integration\MultiLingualCaptionsTest::testEditCaptions test failure on REL1_35
Closed, ResolvedPublic

Description

Seen here for security backport.

1) Wikibase\MediaInfo\Tests\Integration\MultiLingualCaptionsTest::testEditCaptions
ApiUsageException: The file you submitted was empty.

/workspace/src/includes/api/ApiUsageException.php:71
/workspace/src/includes/api/ApiBase.php:1438
/workspace/src/includes/api/ApiUpload.php:648
/workspace/src/includes/api/ApiUpload.php:616
/workspace/src/includes/api/ApiUpload.php:87
/workspace/src/includes/api/ApiMain.php:1593
/workspace/src/includes/api/ApiMain.php:498
/workspace/src/tests/phpunit/includes/api/ApiTestCase.php:109
/workspace/src/extensions/WikibaseMediaInfo/tests/phpunit/integration/WBMIApiTestCase.php:63
/workspace/src/extensions/WikibaseMediaInfo/tests/phpunit/integration/WBMIApiTestCase.php:115
/workspace/src/extensions/WikibaseMediaInfo/tests/phpunit/integration/MultiLingualCaptionsTest.php:28
/workspace/src/tests/phpunit/MediaWikiIntegrationTestCase.php:446
/workspace/src/maintenance/doMaintenance.php:107
=== Logs generated by test case
[objectcache] [debug] MainWANObjectCache using store {class} {"class":"EmptyBagOStuff"}
[localisation] [debug] LocalisationCache using store LCStoreNull []
[localisation] [debug] LocalisationCache using store LCStoreNull []
[MessageCache] [debug] MessageCache using store {class} {"class":"HashBagOStuff"}
[objectcache] [debug] MainWANObjectCache using store {class} {"class":"EmptyBagOStuff"}
[UserOptionsManager] [debug] Loading options from database {"user_id":1}
[GlobalTitleFail] [info] RequestContext::getTitle called with no title set. {"exception":{}}
[DeferredUpdates] [debug] DeferredUpdates::run: started MWCallableUpdate_EchoHooks::onUserSaveSettings #420693 []
[DeferredUpdates] [debug] DeferredUpdates::run: ended MWCallableUpdate_EchoHooks::onUserSaveSettings #420693 []
[localisation] [debug] LocalisationCache::isExpired(en): cache missing, need to make one []
[DeferredUpdates] [debug] DeferredUpdates::run: started CdnCacheUpdate #420699 []
[squid] [info] CdnCacheUpdate::purge: http://127.0.0.1:9413/index.php/User:UTSysop http://127.0.0.1:9413/index.php?title=User:UTSysop&action=history {"private":false}
[DeferredUpdates] [debug] DeferredUpdates::run: ended CdnCacheUpdate #420699 []
[CentralAuthVerbose] [info] Loading state for global user TestUser f7c0c2.3ec from DB {"private":false}
[CentralAuthVerbose] [info] Loading attached wiki list for global user TestUser f7c0c2.3ec from DB {"private":false}
[CentralAuthVerbose] [info] Loading groups for global user TestUser f7c0c2.3ec {"private":false}
[objectcache] [debug] fetchOrRegenerate(global:centralauth-user:5b1af119f9e8e2b806444dc5c022214e): miss, new value computed []
[CentralAuthVerbose] [info] Loading CentralAuthUser for user TestUser f7c0c2.3ec from cache object {"private":false}
[localisation] [debug] LocalisationCache using store LCStoreNull []
[localisation] [debug] LocalisationCache using store LCStoreNull []
[objectcache] [debug] MainWANObjectCache using store {class} {"class":"EmptyBagOStuff"}
[CentralAuthVerbose] [info] Loading state for global user Apitesteditor from DB {"private":false}
[CentralAuthVerbose] [info] Loading attached wiki list for global user Apitesteditor from DB {"private":false}
[CentralAuthVerbose] [info] Loading groups for global user Apitesteditor {"private":false}
[objectcache] [debug] fetchOrRegenerate(global:centralauth-user:c7c3ce6008fd368830a3ed99b27f34a9): miss, new value computed []
[CentralAuthVerbose] [info] Loading CentralAuthUser for user Apitesteditor from cache object {"private":false}
[localisation] [debug] LocalisationCache using store LCStoreNull []
[objectcache] [debug] MainWANObjectCache using store {class} {"class":"EmptyBagOStuff"}
[MessageCache] [debug] MessageCache using store {class} {"class":"HashBagOStuff"}
[localisation] [debug] LocalisationCache::isExpired(en): cache missing, need to make one []
[GlobalTitleFail] [info] RequestContext::getTitle called with no title set. {"exception":{}}
[authevents] [info] Login attempt {"event":"login","successful":false,"loginType":"N\/A","status":"NeedToken"}
[exec] [debug] MediaWiki\Shell\Command::execute: /bin/bash '/workspace/src/includes/shell/limit.sh' ''\''/usr/bin/convert'\'' '\''-size'\'' '\''769x787'\'' '\''xc:rgb(19, 131, 110)'\'' '\''-draw'\'' '\''fill rgb(162, 7, 152)  polygon 55,100 201,253 -91,253 55,100'\'' '\''-draw'\'' '\''fill rgb(226, 238, 66)  polygon 811,-59 912,264 710,264 811,-59'\'' '\''-draw'\'' '\''fill rgb(112, 125, 89)  polygon -93,478 -7,620 -179,620 -93,478'\'' '\''-draw'\'' '\''fill rgb(7, 103, 243)  polygon 719,386 810,519 628,519 719,386'\'' '\''-draw'\'' '\''fill rgb(116, 71, 14)  polygon 345,399 349,895 341,895 345,399'\'' '\''-draw'\'' '\''fill rgb(52, 115, 58)  polygon 1,41 48,399 -46,399 1,41'\'' '\''/tmp/MW_PHPUnit_Wikibase_MediaInfo_Tests_Integration_MultiLingualCapkZdDNC/282_20220629144233_1.png'\''' 'MW_INCLUDE_STDERR=;MW_CPU_LIMIT=180; MW_CGROUP='\'''\''; MW_MEM_LIMIT=307200; MW_FILE_SIZE_LIMIT=102400; MW_WALL_CLOCK_LIMIT=180; MW_USE_LOG_PIPE=yes' []
[exec] [error] Error running {command}: {error} {"command":"\/bin\/bash '\/workspace\/src\/includes\/shell\/limit.sh' ''\\''\/usr\/bin\/convert'\\'' '\\''-size'\\'' '\\''769x787'\\'' '\\''xc:rgb(19, 131, 110)'\\'' '\\''-draw'\\'' '\\''fill rgb(162, 7, 152)  polygon 55,100 201,253 -91,253 55,100'\\'' '\\''-draw'\\'' '\\''fill rgb(226, 238, 66)  polygon 811,-59 912,264 710,264 811,-59'\\'' '\\''-draw'\\'' '\\''fill rgb(112, 125, 89)  polygon -93,478 -7,620 -179,620 -93,478'\\'' '\\''-draw'\\'' '\\''fill rgb(7, 103, 243)  polygon 719,386 810,519 628,519 719,386'\\'' '\\''-draw'\\'' '\\''fill rgb(116, 71, 14)  polygon 345,399 349,895 341,895 345,399'\\'' '\\''-draw'\\'' '\\''fill rgb(52, 115, 58)  polygon 1,41 48,399 -46,399 1,41'\\'' '\\''\/tmp\/MW_PHPUnit_Wikibase_MediaInfo_Tests_Integration_MultiLingualCapkZdDNC\/282_20220629144233_1.png'\\''' 'MW_INCLUDE_STDERR=;MW_CPU_LIMIT=180; MW_CGROUP='\\'''\\''; MW_MEM_LIMIT=307200; MW_FILE_SIZE_LIMIT=102400; MW_WALL_CLOCK_LIMIT=180; MW_USE_LOG_PIPE=yes'","error":"\nlibgomp: Thread creation failed: Resource temporarily unavailable\n","exitcode":1,"exception":{}}
[wfDebug] [debug] WebRequestUpload::getName: 282_20220629144233_1.png normalized to '282_20220629144233_1.png' {"private":false}
[wfDebug] [debug] WebRequestUpload::getName: 282_20220629144233_1.png normalized to '282_20220629144233_1.png' {"private":false}
[wfDebug] [debug] User::getBlockedStatus: checking blocked status for TestUser f7c0c2.3ec {"private":false}
[wfDebug] [debug] ApiUpload::verifyUpload about to verify {"private":false}
[wfDebug] [debug] wfRecursiveRemoveDir( /tmp/MW_PHPUnit_Wikibase_MediaInfo_Tests_Integration_MultiLingualCapkZdDNC ) {"private":false}
===

Same libgomp “thread creation failed” error as in T294238, T289326, and T283535.

Event Timeline

Mainly just creating this “for the record”; assuming that not many more REL1_35 backports will be needed before that version falls out of support in September 2023, IMHO it’s acceptable to do nothing about this and close it when REL1_35 is gone.

Change 814320 had a related patch set uploaded (by Umherirrender; author: Umherirrender):

[mediawiki/extensions/WikibaseMediaInfo@REL1_35] tests: Set as broken

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

I have just disabled the tests, after there are so much duplicates. The handling of fake uploads gets much better in newer releases (due to fix of T48163)

Change 814320 merged by jenkins-bot:

[mediawiki/extensions/WikibaseMediaInfo@REL1_35] tests: Set as broken

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

Umherirrender claimed this task.
Umherirrender removed a project: Patch-For-Review.