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

[BLOCKED] Server properties #107

Merged
merged 4 commits into from
Jan 17, 2022
Merged

Conversation

muhrin
Copy link
Collaborator

@muhrin muhrin commented Jan 12, 2022

Exposes information about the RMQ server to communicator clients. Could be useful for AiiDA as this allows the version number to be determined.

This exposes the server properties as returned by the RMQ server when
connecting to clients of the async and threaded RMQ communicators.  This
is useful for, amongst other things, checking the server vertsion to
ensure compatibility.
@chrisjsewell
Copy link
Member

Looks good, I'll wait for you to work out why all the tests are failing 😅

@@ -345,6 +345,13 @@ async def __aexit__(self, exc_type, exc_val, exc_tb):
def __str__(self):
return f'RMQCommunicator({self._connection})'

@property
def server_properties(self) -> Dict:
Copy link
Member

Choose a reason for hiding this comment

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

maybe add a docstring

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done.

@muhrin
Copy link
Collaborator Author

muhrin commented Jan 12, 2022

Thanks, I'll try and figure out what's going on test side...

* Added server_properties test to threaded RMQ communicator
@muhrin muhrin changed the title Server properties [BLOCKED] Server properties Jan 12, 2022
@codecov
Copy link

codecov bot commented Jan 17, 2022

Codecov Report

Attention: Patch coverage is 90.00000% with 1 line in your changes missing coverage. Please review.

Project coverage is 90.32%. Comparing base (c35668d) to head (cb005ec).

Files Patch % Lines
kiwipy/rmq/communicator.py 83.34% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #107      +/-   ##
===========================================
- Coverage    90.34%   90.32%   -0.01%     
===========================================
  Files           16       16              
  Lines         1138     1146       +8     
===========================================
+ Hits          1028     1035       +7     
- Misses         110      111       +1     

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

@sphuber sphuber self-requested a review January 17, 2022 21:25
Copy link
Collaborator

@sphuber sphuber left a comment

Choose a reason for hiding this comment

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

Cheers @muhrin

@sphuber sphuber merged commit c51695f into aiidateam:develop Jan 17, 2022
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.

3 participants