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

Merge changes from v0.21.9 and v0.21.10 #279

Merged
merged 6 commits into from
Nov 13, 2023
Merged

Merge changes from v0.21.9 and v0.21.10 #279

merged 6 commits into from
Nov 13, 2023

Conversation

sphuber
Copy link
Collaborator

@sphuber sphuber commented Nov 13, 2023

No description provided.

sphuber and others added 6 commits November 13, 2023 09:14
Add the new required `build.os` key and fix it to Ubuntu 22.04

Cherry-pick: 31f85c7
The `ProcessListener` is made persistable by deriving it, as well as the
`EventHelper` class from `persistence.Savable`. The class `EventHelper`
is moved to a new file because of a circular import that would result
between the `utils` and `persistence` modules.

There was a circular reference issue in the test listener that was
storing a reference to the process inside it, making its serialization
impossible. To fix the tests an ugly hack was used: storing the reference
to the process outside the class in a global dict using id as keys. Some
more ugly hacks were needed to correctly check the equality of two
processes. Instances having different listeners should be ignored.

Cherry-pick: 98a375f
In `Process.on_entered`, the `Communicator.broadcast_send` method is
called to broadcast the state change to subscribers over RabbitMQ. This
can throw a `ChannelInvalidStateError` in addition to the
`ConnectionClose` exception that was already being caught, in case there
is a problem with the connection.

Cherry-pick: db2af9a
Copy link

codecov bot commented Nov 13, 2023

Codecov Report

Attention: 12 lines in your changes are missing coverage. Please review.

Comparison is base (44d27d1) 90.83% compared to head (4633466) 90.73%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #279      +/-   ##
==========================================
- Coverage   90.83%   90.73%   -0.09%     
==========================================
  Files          21       22       +1     
  Lines        2974     2996      +22     
==========================================
+ Hits         2701     2718      +17     
- Misses        273      278       +5     
Files Coverage Δ
src/plumpy/base/utils.py 100.00% <100.00%> (ø)
src/plumpy/utils.py 82.12% <ø> (+0.61%) ⬆️
src/plumpy/processes.py 92.47% <80.00%> (+0.02%) ⬆️
src/plumpy/process_listener.py 85.19% <78.58%> (-8.14%) ⬇️
src/plumpy/event_helper.py 77.42% <77.42%> (ø)

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

@sphuber sphuber force-pushed the fix/merge-support branch 2 times, most recently from 1971c6d to 4633466 Compare November 13, 2023 10:25
@sphuber sphuber merged commit ff5770f into master Nov 13, 2023
15 of 17 checks passed
@sphuber sphuber deleted the fix/merge-support branch November 13, 2023 10:40
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