-
Notifications
You must be signed in to change notification settings - Fork 284
Conversation
99becef
to
d583b8a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have worries about potential race conditions occurring when the config is updated at the very moment when environment gets enabled/disabled. Environment state could change between status check in update_config
and calling super().update_config
or assigning _next_config
.
And you're gonna have a hard time silencing mypy when dealing with class decorators... |
f440c41
to
53ff023
Compare
How about now?
It wasn't that bad :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The lock seems to do the job.
One more small comment.
scripts/node_integration_tests/playbooks/golem/reconfigure_provider_while_working/playbook.py
Outdated
Show resolved
Hide resolved
wait_for_computing_task, | ||
partial(ui_stop, node_id=NodeId.provider), | ||
partial(change_config, node_id=NodeId.provider), | ||
partial(check_if_test_failed, node_id=NodeId.provider), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldn't we somehow detect that the configuration has been completed? (instead of waiting the 10 seconds)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know if we should, but in the current "fire and forget" implementation model, it's not easy to achieve. I tried.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good as far as I could tell, added a couple of comments
Codecov Report
@@ Coverage Diff @@
## b0.23 #5171 +/- ##
==========================================
+ Coverage 89.93% 89.95% +0.01%
==========================================
Files 238 238
Lines 22460 22482 +22
==========================================
+ Hits 20200 20224 +24
+ Misses 2260 2258 -2 |
742fe9c
to
cb62998
Compare
Fixes #5151