8000 FIX PHPUNIT (404 Error when download phpunit) by qlaffont-smiirl · Pull Request #29263 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

FIX PHPUNIT (404 Error when download phpunit) #29263

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
wants to merge 2 commits into from

Conversation

qlaffont-smiirl
Copy link
@qlaffont-smiirl qlaffont-smiirl commented Nov 19, 2018

At this time, 5.7 & 4.8 ZIP return 404 error. So we can change to 5.7.26 & 4.8.36 ZIP.

Q A
Branch? For All
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets
License MIT
Doc PR symfony/symfony-docs#...

At this time, 5.7 ZIP return 404 error. So we can change to 5.7.26 ZIP.
@qlaffont-smiirl qlaffont-smiirl changed the title PHPUNIT 5.7 -> 5.7.26 (404 Error when download phpunit) FIX PHPUNIT (404 Error when download phpunit) Nov 19, 2018
4.8 -> 4.8.36
@qlaffont-smiirl
Copy link
Author
qlaffont-smiirl commented Nov 19, 2018

Appveyor test doesn't work because it doesn't take the modification I have to do.

@l-vo
Copy link
Contributor
l-vo commented Nov 20, 2018

I confirm the issue :(

@nicolas-grekas
Copy link
Member

See #29264

@@ -20,10 +20,10 @@ if (PHP_VERSION_ID >= 70200) {
$PHPUNIT_VERSION = getenv('SYMFONY_PHPUNIT_VERSION') ?: '6.5';
} elseif (PHP_VERSION_ID >= 50600) {
// PHPUnit 4 does not support PHP 7
$PHPUNIT_VERSION = getenv('SYMFONY_PHPUNIT_VERSION') ?: '5.7';
$PHPUNIT_VERSION = getenv('SYMFONY_PHPUNIT_VERSION') ?: '5.7.26';
Copy link
Contributor
@l-vo l-vo Nov 20, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

6.5, 5.7 and 4.8 seem to be aliases for the latest patch versions. We can't fix it to a specific patch version (problem to maintain it). And maybe 4.8 and 5.7 aliases will be available again soon. What about use a fallback if the zip is not found and use github api for selecting the latest patch tag ?

Copy link
Member
8000

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's try saving us from any additional complexity.
Let's lobby sebastianbergmann/phpunit#3413

@nicolas-grekas
Copy link
Member

Reported in sebastianbergmann/phpunit#3413

@tonivdv
Copy link
tonivdv commented Nov 20, 2018

I fixed this issue (but for php >=7.2) by changing the env SYMFONY_PHPUNIT_VERSION from 7.2 to 7.4 in bin/phpunit file.

I guess this is what needs to be done in the bridge ... aligning the valid versions according to the php versions?!

@qlaffont-smiirl
Copy link
Author

Yes me too, I have set the env var SYMFONY_PHPUNIT_VERSION and it solve the problem. But we need to change it on the file for default env.

@qlaffont-smiirl
Copy link
Author

@nicolas-grekas , the author answer it. Can we merge it ?

@stof
Copy link
Member
stof commented Nov 20, 2018

A solution might be to switch to composer create-project phpunit/phpunit 5.7 '5.7.* --no-install --prefer-dist instead of downloading the branch from Github. This way, composer would download the latest patch release properly (and --no-install still allows us to alter the dependencies before installing them)

@nicolas-grekas
Copy link
Member

@stof brilliant idea! See #29265

@nicolas-grekas nicolas-grekas added this to the 3.4 milestone Nov 20, 2018
@nicolas-grekas
Copy link
Member

Closing in favor of #29265
Thanks for raising the point and suggesting the change!

nicolas-grekas added a commit that referenced this pull request Nov 20, 2018
…-grekas)

This PR was merged into the 3.4 branch.

Discussion
----------

[Bridge/PhpUnit] Use composer to download phpunit

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #27753, #29263, #29264
| License       | MIT
| Doc PR        | -

Commits
-------

e823f1d [Bridge/PhpUnit] Use composer to download phpunit
@qlaffont-smiirl qlaffont-smiirl deleted the patch-1 branch November 20, 2018 16:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants
0