8000 [FrameworkBundle] execute tests with the full range of supported Messenger component releases by xabbuh · Pull Request #47232 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[FrameworkBundle] execute tests with the full range of supported Messenger component releases #47232

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

Conversation

xabbuh
Copy link
Member
@xabbuh xabbuh commented Aug 9, 2022
Q A
Branch? 6.1
Bug fix? no
New feature? no
Deprecations? no
Tickets
License MIT
Doc PR

The conflict rule does not exclude the 5.4 and 6.0 releases of the Messenger component. So we should make sure that we also run tests against these versions.

@xabbuh xabbuh added this to the 6.1 milestone Aug 9, 2022
@xabbuh xabbuh force-pushed the framework-bundle-messenger-lowest-tested-version branch 4 times, most recently from 023514f to 1bc150f Compare August 9, 2022 12:39
…leases

The conflict rule does not exclude the 5.4 and 6.0 releases of the Messenger component. So we should
make sure that we also run tests against these versions.
@xabbuh xabbuh force-pushed the framework-bundle-messenger-lowest-tested-version branch from 1bc150f to e912f85 Compare August 9, 2022 12:40
if (isset($tagAttributes['method'])) {
throw new LogicException(sprintf('AsMessageHandler attribute cannot declare a method on "%s::%s()".', $reflector->class, $reflector->name));

if (class_exists(SerializedMessageStamp::class)) {
Copy link
Member Author

Choose a reason for hiding this comment

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

alternatively, we would have to conflict with symfony/messenger before 6.1

Copy link
Member

Choose a reason for hiding this comment

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

As 6.1 is already released, I think having a condition is ok. On 6.2, we can then remove the condition and add a conflict.

Copy link
Member Author

Choose a reason for hiding this comment

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

That was my reasoning too for choosing this solution. Will be simplified on 6.2 with #47237.

if (isset($tagAttributes['method'])) {
throw new LogicException(sprintf('AsMessageHandler attribute cannot declare a method on "%s::%s()".', $reflector->class, $reflector->name));

if (class_exists(SerializedMessageStamp::class)) {
Copy link
Member

Choose a reason for hiding this comment

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

As 6.1 is already released, I think having a condition is ok. On 6.2, we can then remove the condition and add a conflict.

@fabpot
Copy link
Member
fabpot commented Aug 10, 2022

Thank you @xabbuh.

@fabpot fabpot merged commit 1840f25 into symfony:6.1 Aug 10, 2022
@xabbuh xabbuh deleted the framework-bundle-messenger-lowest-tested-version branch August 10, 2022 06:47
fabpot added a commit that referenced this pull request Aug 10, 2022
…(xabbuh)

This PR was merged into the 6.2 branch.

Discussion
----------

[FrameworkBundle] conflict with symfony/messenger < 6.2

| Q             | A
| ------------- | ---
| Branch?       | 6.2
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | #47232 (comment)
| License       | MIT
| Doc PR        |

Commits
-------

4d6f215 conflict with symfony/messenger < 6.2
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.

3 participants
0