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

refactor(bouncer): multicast subscriptions #4980

Merged
merged 13 commits into from
Jun 19, 2024

Conversation

acdibble
Copy link
Contributor

@acdibble acdibble commented Jun 18, 2024

Pull Request

Closes: PRO-xxx

Checklist

Please conduct a thorough self-review before opening the PR.

  • I am confident that the code works.
  • I have updated documentation where appropriate.

Summary

We were creating 157 separate subscriptions.... this just creates one and multicasts it, hopefully eliminating the excessive memory usage we've been seeing.

Copy link

codecov bot commented Jun 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 71%. Comparing base (344658f) to head (3e9c18e).
Report is 5 commits behind head on main.

Additional details and impacted files
@@          Coverage Diff           @@
##            main   #4980    +/-   ##
======================================
- Coverage     71%     71%    -0%     
======================================
  Files        429     429            
  Lines      74061   73938   -123     
  Branches   74061   73938   -123     
======================================
- Hits       52934   52730   -204     
- Misses     18294   18369    +75     
- Partials    2833    2839     +6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@acdibble acdibble force-pushed the refactor/multiplex-subscriptions branch from e7dc4e5 to fef9b00 Compare June 19, 2024 08:43
@acdibble acdibble marked this pull request as ready for review June 19, 2024 09:06
@kylezs kylezs self-requested a review June 19, 2024 09:07
@kylezs kylezs force-pushed the refactor/multiplex-subscriptions branch from 65df0ed to 4cbc471 Compare June 19, 2024 13:28
console.log(`Withdrawal requested, egressId: ${withdrawalRequestedEvent.data.egressId}`);
const BatchBroadcastRequestedEvent = await observeEvent(':BatchBroadcastRequested', {
Copy link
Contributor

Choose a reason for hiding this comment

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

Was just testing an implementation detail that's not relevant, and was the cause of flakiness as it introduces a race condition.

@kylezs kylezs enabled auto-merge June 19, 2024 14:22
@kylezs kylezs added this pull request to the merge queue Jun 19, 2024
Merged via the queue into main with commit 4583957 Jun 19, 2024
47 checks passed
@kylezs kylezs deleted the refactor/multiplex-subscriptions branch June 19, 2024 15:12
dandanlen pushed a commit that referenced this pull request Jul 1, 2024
* refactor(bouncer): multicast subscriptions

* reuse subscriptions

* remove logs

* tmp: run upgrade-test

* fix: depends on try-runtime

* add logs

* more logs and shorten timeout

* fix async issue

* restore timeout

* fix: start observing before submitting request

* fix: remove awaiting on batch broadcast requested

* remove logs

* revert running upgrade-test on every push

---------

Co-authored-by: kylezs <zsembery.kyle@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants