Page MenuHomePhabricator

Look into failing mwext-phpunit-coverage-publish CI Jobs
Open, LowPublic

Description

We're getting CI failures for this job on DI patches. Example here

[22.1MiB/9.54s] [23.9MiB/10.02s] Updating dependencies
19:30:07 [25.5MiB/10.03s] Dependency resolution completed in 0.001 seconds
19:30:07 [25.5MiB/10.03s] Your requirements could not be resolved to an installable set of packages.
19:30:07 [25.5MiB/10.03s] 
19:30:07   Problem 1
19:30:07     - Root composer.json requires php >=8.0 but your php version (7.4.33) does not satisfy that requirement.
19:30:07   Problem 2
19:30:07     - Root composer.json requires wikimedia/smash-pig 0.9.1 -> satisfiable by wikimedia/smash-pig[v0.9.1].
19:30:07     - wikimedia/smash-pig v0.9.1 requires php >=8.0 -> your php version (7.4.33) does not satisfy that requirement.
19:30:07 
19:30:07 [23.3MiB/10.03s] 
19:30:07 Update to apply merge settings failed, reverting ./composer.lock to its original content.
19:30:07 [23.0MiB/10.04s] > post-update-cmd: PHPCSStandards\Composer\Plugin\Installers\PHPCodeSniffer\Plugin->onDependenciesChangedEvent
19:30:07 [23.0MiB/10.04s] Running PHPCodeSniffer Composer Installer
19:30:07 [23.0MiB/10.19s] Failed to set PHP CodeSniffer installed_paths Config
19:30:07 [23.0MiB/10.19s] > post-update-cmd: MediaWiki\Composer\ComposerVendorHtaccessCreator::onEvent

It looks like the job is being run on PHP 7.4, but it needs to be upgraded to PHP 8.2 to work in line with our other jobs.

Event Timeline

I've looked through the integration/config repo and I don't see any php8.2 version of the coverage job defined yet. We could just comment out the failing jobs for now at this line of layout.yaml: https://phabricator.wikimedia.org/source/integration-config/browse/master/zuul/layout.yaml$4231

I've looked through the integration/config repo and I don't see any php8.2 version of the coverage job defined yet. We could just comment out the failing jobs for now at this line of layout.yaml: https://phabricator.wikimedia.org/source/integration-config/browse/master/zuul/layout.yaml$4231

Extension coverage is defines

- name: extension-coverage
  postmerge:
    - mwext-phpunit-coverage-publish
  coverage:
    - mwext-phpunit-coverage-patch

See also T362091