Hi,

We are seeing a strange CI failure when running tests for the Wikispeech
extension and we are trying to understand what is causing it.

The failure occurs sometimes during patch upload, and sometimes when trying
to merge. The issues we get is:

*09:30:47* Error in bootstrap script: RuntimeException:*09:30:47* No
PHPUnit config override found. Generate it manually by running
`composer phpunit:config`, or automatically by running tests via
`composer phpunit`.*09:30:47* #0
/workspace/src/vendor/phpunit/phpunit/src/Util/FileLoader.php(66):
include_once()*09:30:47* #1
/workspace/src/vendor/phpunit/phpunit/src/Util/FileLoader.php(49):
PHPUnit\Util\FileLoader::load()*09:30:47* #2
/workspace/src/vendor/phpunit/phpunit/src/TextUI/Command.php(567):
PHPUnit\Util\FileLoader::checkAndLoad()*09:30:47* #3
/workspace/src/vendor/phpunit/phpunit/src/TextUI/Command.php(347):
PHPUnit\TextUI\Command->handleBootstrap()*09:30:47* #4
/workspace/src/vendor/phpunit/phpunit/src/TextUI/Command.php(114):
PHPUnit\TextUI\Command->handleArguments()*09:30:47* #5
/workspace/src/vendor/phpunit/phpunit/src/TextUI/Command.php(99):
PHPUnit\TextUI\Command->run()*09:30:47* #6
/workspace/src/vendor/phpunit/phpunit/phpunit(107):
PHPUnit\TextUI\Command::main()*09:30:47* #7
/workspace/src/vendor/bin/phpunit(122): include('...')*09:30:47* #8
{main}

This issue occurs for example in this patch: 1246763
<https://gerrit.wikimedia.org/r/c/mediawiki/extensions/Wikispeech/+/1246763>

To check whether this was related to our code, we tried creating test
patches:

This one fails: 1248784
<https://gerrit.wikimedia.org/r/c/mediawiki/extensions/Wikispeech/+/1248784>,
but this one succeeds: 1248785
<https://gerrit.wikimedia.org/r/c/mediawiki/extensions/Wikispeech/+/1248785>

Since these patches do not change any functional code, this suggests that
the failure may be related to the CI/test infrastructure rather than the
extension itself.

Has anyone seen this PHPUnit bootstrap error recently, or knows what might
cause this failure in CI?
Kind regards,
*Viktoria Hillerud Ahlbäck*
*Developer*
Wikimedia Sverige (WMSE)
_______________________________________________
Wikitech-l mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://lists.wikimedia.org/postorius/lists/wikitech-l.lists.wikimedia.org/

Reply via email to