Skip to content

An attempt to make all tests green again so we can moving forward and merge PRs #313

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

Merged
merged 16 commits into from
Jun 24, 2019

Conversation

bocharsky-bw
Copy link
Member

@bocharsky-bw bocharsky-bw commented Jun 19, 2019

The current version of this bundle does not work with Symfony 4.2 well due to the new Intl formatter, that's why some tests failed. Other tests failed due to BC breaks and deprecations. Probably we should downgrade Sf Translation component version to <4.2 before a proper fix to avoid BC breaks. Also, let's do not force failing builds on deprecation notices since this bundle is not actively developed lately - it causes more problems. Also, not sure, but it seems like TravisCI just dropped PHP 5.5 support, so I had to use PHP 5.6 as lowest PHP version

@bocharsky-bw bocharsky-bw changed the title Downgrade translation Downgrade Symfony Translation component to 4.2 Jun 19, 2019
@bocharsky-bw bocharsky-bw changed the title Downgrade Symfony Translation component to 4.2 An attempt to make all tests green again so we can moving forward and merge PRs Jun 20, 2019
@bocharsky-bw
Copy link
Member Author

Guys, here's an attempt to fix the tests - we had all of them broken lately. Would be glad to any feedback because some important changes were made here and looking forward bring back all tests green soon so that we can continue merging new PRs and releasing new versions

//cc @Nyholm

Copy link
Member

@Nyholm Nyholm left a comment

Choose a reason for hiding this comment

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

Thank you.

I think we should merge this. Tag a release and then drop php<7.1 and sf < 3.4

@Nyholm Nyholm merged commit 6343e79 into php-translation:master Jun 24, 2019
@Nyholm
Copy link
Member

Nyholm commented Jun 24, 2019

Awesome work btw.

@bocharsky-bw bocharsky-bw deleted the downgrade-translation branch June 24, 2019 19:46
@bocharsky-bw
Copy link
Member Author

Thanks!

Tag a release and then drop php<7.1 and sf < 3.4

Sounds like a good plan 👍

@@ -13,18 +13,19 @@
"php": "^5.5 || ^7.0",
"symfony/framework-bundle": "^2.7 || ^3.0 || ^4.0",
"symfony/validator": "^2.7 || ^3.0 || ^4.0",
"symfony/translation": "^2.7 || ^3.0 || ^4.0",
"symfony/translation": "^2.7 || ^3.0 || ^4.0,<4.2",

Choose a reason for hiding this comment

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

Terrible idea here. See #323

Copy link
Member Author

Choose a reason for hiding this comment

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

I see your point, but at that time without a proper fix this was not so bad idea, it helped to push things forward in this bundle and merge many PRs awaiting green tests. Totally agree we should revert this change back, but also we should make tests green and properly fix the problem in this bundle on Sf 4.2+

Copy link
Member

Choose a reason for hiding this comment

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

May be it's time to fix it? I think we have make tests green in #323 with help of @nicolas-grekas because it's apparently a BC break introduced with 4.2+ version of Symfony

"symfony/twig-bundle": "^2.7 || ^3.0 || ^4.0",
"symfony/finder": "^2.7 || ^3.0 || ^4.0",
"symfony/intl": "^2.7 || ^3.0 || ^4.0",

"php-translation/common": "^1.0",
"php-translation/symfony-storage": "^1.0",
"php-translation/extractor": "^1.3",
"nyholm/nsa": "^1.1"
"nyholm/nsa": "^1.1",
"twig/twig": "<1.39 || ^2.0,<2.8"

Choose a reason for hiding this comment

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

Same really bad idea. This is opting out from any maintenance efforts and preventing users to upgrade.

Copy link
Member Author

Choose a reason for hiding this comment

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

Agree, reverted in #324 - most probably tests will fail so we will need to fix them before merging

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

Successfully merging this pull request may close these issues.

5 participants