Skip to content

Conversation

@ajith107
Copy link
Contributor

@ajith107 ajith107 commented Mar 4, 2025

Description (*)

  • Message Queue changes is getting tracked in the setup:db:status command

Related Pull Requests

Fixed Issues (if relevant)

  1. Fixes Message queue topology is not considered in setup:db:status check #38225

Manual testing scenarios (*)

  1. Introduced a new queue using queue_consumer.xml and verify that setup:db:status returning setup:upgrade needed message
  2. Run the unit test and verified that all the tests are passed

Questions or comments

Contribution checklist (*)

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All new or changed code is covered with unit/integration tests (if applicable)
  • README.md files for modified modules are updated and included in the pull request if any README.md predefined sections require an update
  • All automated tests passed successfully (all builds are green)

@m2-assistant
Copy link

m2-assistant bot commented Mar 4, 2025

Hi @ajith107. Thank you for your contribution!
Here are some useful tips on how you can test your changes using Magento test environment.
❗ Automated tests can be triggered manually with an appropriate comment:

  • @magento run all tests - run or re-run all required tests against the PR changes
  • @magento run <test-build(s)> - run or re-run specific test build(s)
    For example: @magento run Unit Tests

<test-build(s)> is a comma-separated list of build names.

Allowed build names are:
  1. Database Compare
  2. Functional Tests CE
  3. Functional Tests EE
  4. Functional Tests B2B
  5. Integration Tests
  6. Magento Health Index
  7. Sample Data Tests CE
  8. Sample Data Tests EE
  9. Sample Data Tests B2B
  10. Static Tests
  11. Unit Tests
  12. WebAPI Tests
  13. Semantic Version Checker

You can find more information about the builds here
ℹ️ Run only required test builds during development. Run all test builds before sending your pull request for review.


For more details, review the Code Contributions documentation.
Join Magento Community Engineering Slack and ask your questions in #github channel.

@ajith107
Copy link
Contributor Author

ajith107 commented Mar 4, 2025

@magento run all tests

@engcom-Hotel engcom-Hotel added the Priority: P2 A defect with this priority could have functionality issues which are not to expectations. label Mar 4, 2025
@kandy
Copy link
Contributor

kandy commented Mar 4, 2025

I believe it's suboptimal to update this command with db unrelated stuff. As an alternative you can introduce new setup::amgp:statuscommand

@furan917
Copy link
Contributor

furan917 commented Nov 1, 2025

I like the idea behind this but there are 2, non insurmountable, flaws in its design.

1: The MysqlMQ model reads from topology not consumer when running through setup:upgrade so you could miss a queue or 2 (practically not an issue if no consumer really). You could update to using use Magento\Framework\MessageQueue\Topology\Config\CompositeReader;

2: Queues don't get deleted from the queue table, so once a queue is removed from the code base for any reason, the command would always come back as out of date. You could get by this by switching from a === to a diff of read vs db queues and checking if empty as you would be only looking for new queues being missing.

@furan917
Copy link
Contributor

furan917 commented Nov 1, 2025

I made a quick module for anyone to use in the midterm if they wish to get the benefits of checking for new queues. And shows off how I tackled the 2 above points.

https://github.com/furan917/Magento2-QueueConfigStatus

Thank you @carlos-reynosa, I would not have seen this if you had not tagged it in your Deployer PR

@engcom-Hotel
Copy link
Contributor

@magento run all tests

Copy link
Contributor

@engcom-Hotel engcom-Hotel left a comment

Choose a reason for hiding this comment

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

Hello @ajith107,

Thank you for the collaboration!

I agree with @kandy's comment here #39698 (comment). Please do the needful and also fix the failed static tests.

Other failures seems flaky to me.

Thank you

@engcom-Hotel engcom-Hotel moved this from Review in Progress to Changes Requested in Community Dashboard Dec 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Priority: P2 A defect with this priority could have functionality issues which are not to expectations. Progress: needs update Project: Community Picked PRs upvoted by the community

Projects

Status: Changes Requested

Development

Successfully merging this pull request may close these issues.

Message queue topology is not considered in setup:db:status check

5 participants