10000 Fixing test suite by Nek- · Pull Request #59 · Setono/SyliusAnalyticsPlugin · GitHub
[go: up one dir, main page]

Skip to content

Fixing test suite #59

New issue

Have 8000 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

Merged
merged 7 commits into from
Nov 9, 2021
Merged

Conversation

Nek-
Copy link
@Nek- Nek- commented Oct 26, 2021

Hello there, trying to help to move forward.

This PR removes the test suite for PHP 8.0 because the dev dependencies are just not compatible with PHP 8.0.

It updates Sylius version to 1.10 and fixes behat tests.

It also allow to update to Symfony 5.3 thanks to the removal of the usage of symfony/event-dispatcher-contracts in favor of symfony/contracts.

Work is split in many commits to help you review with ease.

This PR targets 2.x but I plan to make it also on 3.x branch. Please send feedbacks!

Feel free to add hacktoberfest-accepted to help me complete my hacktoberfest challenge 😊 .

@loevgaard
Copy link
Member

Thank you for this, @Nek-. The v2 of this plugin will not be maintained a short period after v3 is released (at least only security fixes), so if you see any improvements on v3 we would appreciate this also :)

@Nek-
Copy link
Author
Nek- commented Oct 26, 2021

@loevgaard the v3 has some issues in common (ie test suite not compatible with PHP 8 because of unused dev dependencies or too old dependencies (like sylius 1.7)) this is why I'm looking into updating both versions. But there's also the tag bundle to update (I'll send some work tomorrow about it).

I see the test suite is not passing yet, be sure I will fix it!

@Nek- Nek- force-pushed the feature/sylius-1-10-2.0.x branch from dfebafc to b55a8f1 Compare October 27, 2021 14:42
@Nek- Nek- changed the title Many fixes Fixing test suite Oct 27, 2021
@Nek- Nek- force-pushed the feature/sylius-1-10-2.0.x branch from b55a8f1 to 9e35ee8 Compare October 27, 2021 14:44
@Nek-
Copy link
Author
Nek- commented Oct 27, 2021

I am sorry I do not understand why psalm do not pass on the CI and I can't suppress issue with ECS... I really do not understand how this package work. It seems like it should work with the following configuration, but without having it as a dependency I can't understand how it could work.

<?php

declare(strict_types=1);

use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;

return static function (ContainerConfigurator $containerConfigurator): void {
    $containerConfigurator->import(__DIR__ . '/vendor/setono/coding-standard/easy-coding-standard.php');
};

☝️ missing on this package to allow ECS to work? But how can it work without setono/coding-standard as dependency ? But this package conflicts with sylius/coding-standard ?!

@Nek-
Copy link
Author
Nek- commented Nov 2, 2021

My hotfix can be removed: symfony/symfony#43801

@Nek- Nek- force-pushed the feature/sylius-1-10-2.0.x branch from 9e35ee8 to 085aaa3 Compare November 2, 2021 15:36
@Nek-
Copy link
Author
Nek- commented Nov 2, 2021

@loevgaard I SEE GREEN. 🙈 (finally)

commits are all annotated with details

@loevgaard
Copy link
Member

Just a few comments, else it's a good job 🎉

Nek- added 6 commits November 9, 2021 10:04
This is the only way to test with PHP 8.x and Symfony 5.
symfony/symfony#41672 is blocking to update
the behat test suite. This is why I decided to add this patch. It should
not have any specific impact but for the dev environment.

After the issue has been closed on Symfony side, this commit has been
edited and is now a simple line 🎉
This commit also fixes some CS issues.
Please notice that this configuration is coming from the setono feed
bundle.
This commit fixes the following problems:
1. The script inside composer.json was failing because on Github Action
   it runs with SH and not BASH (fixed by making it external)
2. Since we run Symfony 5.x, we need to adapt the psalm configuration of
   the Symfony plugin.
@Nek- Nek- force-pushed the feature/sylius-1-10-2.0.x branch from 093fed2 to 03064e1 Compare November 9, 2021 09:05
@Nek-
Copy link
Author
Nek- commented Nov 9, 2021

@loevgaard updated! :)

@loevgaard loevgaard merged commit a12de3c into Setono:2.0.x Nov 9, 2021
@loevgaard
Copy link
Member

Thank you, @Nek-. Great job 🎉

@Nek-
Copy link
Author
Nek- commented Nov 10, 2021

@loevgaard do you want me to forward commits to 3.x branch?

@loevgaard
Copy link
Member

@Nek-: 3.x is basically a whole other plugin because we switched from client side to server side in that branch, but anything is welcome as always :)

@Nek- Nek- deleted the feature/sylius-1-10-2.0.x branch November 18, 2021 13:39
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.

2 participants
0