Page MenuHomePhabricator

Wikibase post-merge builds are failing
Open, MediumPublic

Description

The mwext-phpunit-coverage-docker-publish are failing for all merged patches. Cannot open file "/workspace/src/extensions/Wikibase/tests/phpunit.php". sounds suspicious.

See e.g.

14:07:54 INFO:quibble.commands:mwext-phpunit-coverage
14:07:54 ++ basename mediawiki/extensions/Wikibase
14:07:54 + EXT_NAME=Wikibase
14:07:54 + phpunit-suite-edit /workspace/src/tests/phpunit/suite.xml --cover-extension Wikibase
14:07:54 + mkdir -p /workspace/cover
14:07:54 + find /workspace/cover -mindepth 1 -delete
14:07:54 + set +e
14:07:54 + [[ ! -v CODEHEALTH ]]
14:07:54 + cover_pid=2275
14:07:54 + relay_signals SIGINT SIGTERM
14:07:54 + for signal in "$@"
14:07:54 + trap 'kill -$signal $cover_pid; wait $cover_pid' SIGINT
14:07:54 + for signal in "$@"
14:07:54 + trap 'kill -$signal $cover_pid; wait $cover_pid' SIGTERM
14:07:54 + wait 2275
14:07:54 + php -d zend_extension=xdebug.so /workspace/src/tests/phpunit/phpunit.php --testsuite extensions --coverage-clover /workspace/log/clover.xml --coverage-html /workspace/cover --log-junit /workspace/log/junit.xml /workspace/src/extensions/Wikibase/tests/phpunit
14:07:54 Using PHP 7.2.26-1+0~20191218.33+debian9~1.gbpb5a340+wmf1
14:07:54 Cannot open file "/workspace/src/extensions/Wikibase/tests/phpunit.php".
14:07:54 
14:07:54 + set -e
14:07:54 + '[' -f /workspace/log/junit.xml ']'
14:07:54 + [[ ! -v CODEHEALTH ]]
14:07:54 + test -f /workspace/cover/index.html
14:07:54 INFO:backend.DevWebServer:Terminating DevWebServer
14:07:54 INFO:quibble.cmd:<<< Finish: User commands: mwext-phpunit-coverage, in 0.372 s
14:07:54 Traceback (most recent call last):
14:07:54   File "/usr/local/bin/quibble", line 11, in <module>
14:07:54     load_entry_point('quibble==0.0.40', 'console_scripts', 'quibble')()
14:07:54   File "/usr/local/lib/python3.5/dist-packages/quibble/cmd.py", line 467, in main
14:07:54     cmd.execute(plan)
14:07:54   File "/usr/local/lib/python3.5/dist-packages/quibble/cmd.py", line 289, in execute
14:07:54     command.execute()
14:07:54   File "/usr/local/lib/python3.5/dist-packages/quibble/commands.py", line 730, in execute
14:07:54     cmd, shell=True, cwd=self.mw_install_path)
14:07:54   File "/usr/lib/python3.5/subprocess.py", line 271, in check_call
14:07:54     raise CalledProcessError(retcode, cmd)
14:07:54 subprocess.CalledProcessError: Command 'mwext-phpunit-coverage' returned non-zero exit status 1

Details

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Addshore triaged this task as Medium priority.Jan 14 2020, 1:18 PM

Looks like these are still failing https://integration.wikimedia.org/ci/job/mwext-phpunit-coverage-docker-publish/17540/console

Still the same error:

Cannot open file "/workspace/src/extensions/Wikibase/tests/phpunit.php".

Added the people involved in https://gerrit.wikimedia.org/r/#/c/integration/config/+/563573/ to this ticket.

I mean, we can switch it back off, but that doesn't get Wikibase documentation fixed…

I mean, we can switch it back off, but that doesn't get Wikibase documentation fixed…

So what would it take to get it fixed? (I hope the “standard directory layout” of T88434#4918047 isn’t the only solution, because I don’t think that’s happening soon.)

Someone who knows what documentation you expect to get generated where builds an entire bespoke job just for you. Normally these kinds of issues are dealt with by @Addshore, as for everyone else with the needed skills/access it'd require pairing with someone from the Wikidata team to drip-feed expectations.

Change 583671 had a related patch set uploaded (by Lucas Werkmeister (WMDE); owner: Lucas Werkmeister (WMDE)):
[integration/config@master] Remove extension-coverage from Wikibase

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

Change 583671 merged by jenkins-bot:
[integration/config@master] Remove extension-coverage from Wikibase

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