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

Cell.Ahainfo updates (SYN-4490, SYN-5194) #3008

Merged
merged 28 commits into from
Apr 24, 2023
Merged

Cell.Ahainfo updates (SYN-4490, SYN-5194) #3008

merged 28 commits into from
Apr 24, 2023

Conversation

vEpiphyte
Copy link
Contributor

@vEpiphyte vEpiphyte commented Feb 7, 2023

  • Remove the Cell.ahaclient Telepath client from being cached in the synapse.lib.aha_clients dictionary. This allows the Cell Aha client to operate independently of a (potentially) globally cached client. This simplifies unit testing with multiple cells communicating with a single Aha service, as the client is now properly fini'd upon teardown of the cell. Since the AhaApi class maintains state for the service registration, this also means a user interacting with the global object directly cannot not affect the state of the service registration for a Cell.

  • Change the cell.ahaino from being a static constant to being generated on demand by Cell.getAhaInfo(). This allows the cell to report the correct ready status to the Aha service, instead of a potentailly invalid static value. The previous behavior presented as having a incorrect ready status upon the Aha service restarting & service mirrors reporting the incorrect status.

  • When the cell mirror loop exits, it now reports its ready status to the Aha service. This allows a service to mark itself as "not ready" since exiting that loop may mean it is no longer in the realtime change window.

  • Fix a bug in nexus._tellAhaReady(self, status) which passed in a static value ( True ) to the Aha service instead of the the status value being passed in.

@vEpiphyte vEpiphyte changed the title WIP: Aha logging, Cell ahainfo update WIP: Aha logging, Cell ahainfo update (SYN-4490) Feb 7, 2023
@codecov
Copy link

codecov bot commented Feb 7, 2023

Codecov Report

Patch coverage: 97.05% and project coverage change: -0.11 ⚠️

Comparison is base (6c549f4) 97.27% compared to head (ea73288) 97.17%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3008      +/-   ##
==========================================
- Coverage   97.27%   97.17%   -0.11%     
==========================================
  Files         222      222              
  Lines       44035    44049      +14     
==========================================
- Hits        42835    42804      -31     
- Misses       1200     1245      +45     
Flag Coverage Δ
linux 97.17% <97.05%> (+<0.01%) ⬆️
linux_replay ?

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
synapse/lib/cell.py 98.42% <96.42%> (-0.05%) ⬇️
synapse/lib/nexus.py 97.12% <100.00%> (+0.04%) ⬆️

... and 11 files with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@vEpiphyte vEpiphyte changed the title WIP: Aha logging, Cell ahainfo update (SYN-4490) Aha logging, Cell ahainfo update (SYN-4490) Mar 17, 2023
@vEpiphyte vEpiphyte changed the title Aha logging, Cell ahainfo update (SYN-4490) Aha logging, Cell ahainfo update (SYN-4490, SYN-5194) Apr 18, 2023
@vEpiphyte vEpiphyte changed the title Aha logging, Cell ahainfo update (SYN-4490, SYN-5194) Cell.Ahainfo updates (SYN-4490, SYN-5194) Apr 18, 2023
synapse/lib/cell.py Outdated Show resolved Hide resolved
@vEpiphyte vEpiphyte merged commit 1b815bc into master Apr 24, 2023
@vEpiphyte vEpiphyte deleted the feat_aha_logging branch April 24, 2023 14:44
@vEpiphyte vEpiphyte added the reqChangelog requires changelog label Apr 24, 2023
@vEpiphyte vEpiphyte removed the reqChangelog requires changelog label May 18, 2023
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