Skip to content

CI pipeline for 9.2 is broken #1038

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
sebastianbergmann opened this issue Jun 29, 2024 · 4 comments
Closed

CI pipeline for 9.2 is broken #1038

sebastianbergmann opened this issue Jun 29, 2024 · 4 comments

Comments

@sebastianbergmann
Copy link
Owner

Before c001486, the composer.json file of this project configured a dependency on "phpunit/phpunit": "^9.3".

I noticed that on GitHub Actions, Composer would install PHPUnit 9.4.4 instead of PHPUnit 9.6.19 (which is the latest version that fulfills the ^9.3 version constraint. See https://github.com/sebastianbergmann/php-code-coverage/actions/runs/9722443548/job/26836345492#step:6:27.

I changed this version constraint from ^9.3 to ^9.6 in c001486 in order to force an error on GitHub Actions when Composer installs the dependencies and provides an error message that explains why PHPUnit 9.4.4 was installed before:

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - phpunit/phpunit[9.6.0, ..., 9.6.11] require phpunit/php-code-coverage ^9.2.13 -> satisfiable by phpunit/php-code-coverage[9.2.13, ..., 9.2.x-dev] from composer repo (https://repo.packagist.org) but phpunit/php-code-coverage is the root package and cannot be modified. See https://getcomposer.org/dep-on-root for details and assistance.
    - phpunit/phpunit[9.6.12, ..., 9.6.19] require phpunit/php-code-coverage ^9.2.28 -> satisfiable by phpunit/php-code-coverage[9.2.28, ..., 9.2.x-dev] from composer repo (https://repo.packagist.org) but phpunit/php-code-coverage is the root package and cannot be modified. See https://getcomposer.org/dep-on-root for details and assistance.
    - Root composer.json requires phpunit/phpunit ^9.6 -> satisfiable by phpunit/phpunit[9.6.0, ..., 9.6.19].

COMPOSER_ROOT_VERSION is set to 9.2-dev in the GitHub Actions configuration and a branch-alias is configured in composer.json.

This problem does not exist on the 10.1 and main branches, but I fail to see a difference between the branches where this works and the 9.2 branch where it does not work.

@sebastianbergmann
Copy link
Owner Author

@localheinz Can you help me? Thanks!

@sebastianbergmann
Copy link
Owner Author

I just ran into this issue on the 10.1 branch after bumping the dependencies: https://github.com/sebastianbergmann/php-code-coverage/actions/runs/9903217535

@localheinz
Copy link
Contributor

Taking another 👀, @sebastianbergmann!

@sebastianbergmann
Copy link
Owner Author

Thank you, @localheinz!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants