swarmit: adjust timeout based on the number of available mari nodes#126
swarmit: adjust timeout based on the number of available mari nodes#126aabadie wants to merge 10 commits intoDotBots:mainfrom
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #126 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 18 18
Lines 2107 2173 +66
=========================================
+ Hits 2107 2173 +66 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
d221a82 to
b7a7a08
Compare
5fdcab1 to
996f67f
Compare
fed58f5 to
21067c1
Compare
…nown devices result
|
I had to rework a bit the swarmit node and adapter mocks to have a more efficient communication logic between them (now they use a queue). It works well locally, although it takes time with 500 nodes but this is still flaky on github CI. |
|
As a side note, the same message queuing strategy could be used to increase the scalability of the PyDotBot simulator. I'll work on that next week. |
…variables This way they can be mocked to easily pass the tests
I improved the situation in test by mocking the threshold values to use smaller ones. The problem comes from the Python GIL that slows down the tests drastically on thread deletion when there are more that 200 threads (at least on my computer). |
|
Thanks for this PR. It's great that you also looked at scalability aspects, which are very important issues now. I tested the change with 1 node and it works fine. Regarding the timeouts and thresholds, I am not sure if the approach of modifying Following up on the discussion of today's meeting, what if we:
One way to proceed would be to merge the test scalability improvements (and rename this PR) and create a new PR with the two points above, if you agree. |
fixes #125