Skip to content

Fix failing unit tests after Symfony issue #38019 bugfix #461

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 4 commits into from
Mar 29, 2021

Conversation

ste93cry
Copy link
Contributor

@ste93cry ste93cry commented Mar 6, 2021

Unit tests for the TracingRequestListener class are failing after the release of the fix for symfony/symfony#38019. Since PHP 5.4, the REQUEST_TIME_FLOAT element is always present in $_SERVER, but Symfony was not setting the value when creating the request object manually, therefore we had to do it ourselves. Now that this is unnecessary, we can cleanup the code

@ste93cry ste93cry added this to the 4.1 milestone Mar 6, 2021
@ste93cry ste93cry requested a review from Jean85 March 6, 2021 19:17
Copy link
Contributor

@Jean85 Jean85 left a comment

Choose a reason for hiding this comment

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

Ugh. seems we have a fatal on 3.4, where the fix is missing

@ste93cry
Copy link
Contributor Author

ste93cry commented Mar 7, 2021

Yes I know, the bug is being investigated in symfony/symfony#40390

@Jean85
Copy link
Contributor

Jean85 commented Mar 25, 2021

Issue seems to have been fixed with symfony/symfony#40494, should we wait for a tag?

@ste93cry
Copy link
Contributor Author

Yes, I talked privately with Nicolas and he said me that the new version should be released before the end of the month. The alternative in the meantime would be to fix the composer.json to restrict the installed version to a previous version, but I don't think it's worth losing time in doing it by this time

@Jean85
Copy link
Contributor

Jean85 commented Mar 25, 2021

Roger. We need to keep in mind that this same problem is breaking the CI in 3.5.x too, where we have a couple of PR to release as a patch.

@ste93cry
Copy link
Contributor Author

Symfony 5.2.6 has been released and build is now green 🎉

@ste93cry ste93cry requested a review from Jean85 March 29, 2021 07:41
@ste93cry ste93cry merged commit 7ba1559 into develop Mar 29, 2021
@ste93cry ste93cry deleted the fix/broken-tests-after-symfony-issue-38019-bugfix branch March 29, 2021 16:50
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