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

gundeck/cannon: Fixup for temporary recipients of events #4379

Merged
merged 4 commits into from
Dec 19, 2024

Conversation

akshaymankar
Copy link
Member

@akshaymankar akshaymankar commented Dec 17, 2024

https://wearezeta.atlassian.net/browse/WPB-11173

Checklist

  • Add a new entry in an appropriate subdirectory of changelog.d No chagelog, this is just a fixup. The changelog got deleted in release, its too complicated to summarize this fixup now.
  • Read and follow the PR guidelines

@zebot zebot added the ok-to-test Approved for running tests in CI, overrides not-ok-to-test if both labels exist label Dec 17, 2024
@akshaymankar akshaymankar force-pushed the rabbitmq-temp-clients-fixup branch from ef99a8b to d60fc4a Compare December 17, 2024 17:08
@akshaymankar akshaymankar changed the title gundeck: Allow temporary recipients to receive events even when the user doesn't have any regular RabbitMQ clients gundeck/cannon: Fixup for temporary recipients of events Dec 17, 2024
@echoes-hq echoes-hq bot added the echoes/initiative: scale Enterprise Readiness Initiatives label Dec 17, 2024
…ser doesn't have any regular RabbitMQ clients
Also:
- Extract function to create RabbitMQAdminClient for a backend resource
- Extract function to runDynamicBackends returning the BackendResources instead
of returning just the domains.
Also:

* Use Data.Unique.Unqiue to keep track of channels instead of (ByteString,
ByteString) because it is way less fuss to generate the Unqiue and it doesn't
really need to be (UserId, ClientId) tuple. This also removes polymorphism for
the RabbitMqPool type.

* Log conneciton close while draining at Debug level instead of Info
The race in these tests is between the RabbitMQ exchange doing the fanout for
previous events and the test creating a temporary queue.
@akshaymankar akshaymankar force-pushed the rabbitmq-temp-clients-fixup branch from d60fc4a to bfc7865 Compare December 18, 2024 11:46
Copy link
Contributor

@supersven supersven left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@akshaymankar akshaymankar merged commit 682bdd2 into develop Dec 19, 2024
11 checks passed
@akshaymankar akshaymankar deleted the rabbitmq-temp-clients-fixup branch December 19, 2024 12:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
echoes/initiative: scale Enterprise Readiness Initiatives ok-to-test Approved for running tests in CI, overrides not-ok-to-test if both labels exist
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants