Skip to content
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

Fix CI when testing with Symfony 5.1 #1160

Merged
merged 1 commit into from May 4, 2020

Conversation

nicolas-grekas
Copy link
Member

No description provided.

@ostrolucky
Copy link
Member

ostrolucky commented Apr 29, 2020

Can you provide some backstory please? Why are we not asserting now that tags contain container.no_preload only, but instead trying to hide this fact?

@nicolas-grekas
Copy link
Member Author

container.no_preload is added because the only services that reference the tested listener are commands, and commands propagate this tag to their deps.
Testing this is unrelated to the bundle, so it should just be ignored here.

@greg0ire
Copy link
Member

The CI still fails, I will push a commit that fixes it shortly.

@nicolas-grekas
Copy link
Member Author

The fix for deprecations should be borrowed from master

@greg0ire
Copy link
Member

Oh didn't know, I'll fix this.

@ostrolucky
Copy link
Member

You ask for my approval, but I am still uncomfortable with this unset thing. We should change assertions to use $definition->getTags()['doctrine.event_subscriber'] / $definition->getTags()['doctrine.event_listener'], instead of coupling these test cases more tightly to Symfony DI by hardcoding their internal tags. In the end these asertions were wrong. These test cases shouldn't care about other tags, just tags we are touching - and adding every other tag in future to unset() later on just doesn't scale.

@nicolas-grekas
Copy link
Member Author

@ostrolucky thanks for the suggestion, I updated the PR accordingly. I hope it's OK for everyone else also.

@nicolas-grekas nicolas-grekas force-pushed the fix-ci branch 3 times, most recently from ba265ac to 3cbfe8c Compare May 4, 2020 12:18
Copy link
Member

@ostrolucky ostrolucky left a comment

Choose a reason for hiding this comment

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

Thanks for bearing with me!

@ostrolucky ostrolucky merged commit 3a9f78c into doctrine:2.0.x May 4, 2020
@alcaeus alcaeus added this to the 2.0.9 milestone May 25, 2020
franmomu added a commit to franmomu/twig-extensions that referenced this pull request Sep 9, 2020
The one for symfony/config 5.1 is based on doctrine/DoctrineBundle#1160
franmomu added a commit to franmomu/twig-extensions that referenced this pull request Sep 9, 2020
The one for symfony/config 5.1 is based on doctrine/DoctrineBundle#1160
franmomu added a commit to franmomu/twig-extensions that referenced this pull request Sep 9, 2020
The one for symfony/config 5.1 is based on doctrine/DoctrineBundle#1160
greg0ire pushed a commit to sonata-project/twig-extensions that referenced this pull request Sep 12, 2020
The one for symfony/config 5.1 is based on doctrine/DoctrineBundle#1160
@nicolas-grekas nicolas-grekas deleted the fix-ci branch July 28, 2022 13:41
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.

None yet

5 participants