-
Notifications
You must be signed in to change notification settings - Fork 452
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
Added ipv8 walk_interval scaling #5581
Conversation
This comment has been minimized.
This comment has been minimized.
Unfortunately, these tests are still flaky :/ |
retest this please |
2b7701c
to
bf13cc6
Compare
This comment has been minimized.
This comment has been minimized.
I suspect that last one is caused by having multiple test instances running at the same time; I didn't test that thoroughly yet. |
retest this please |
Alright, I'm done with this PR. @devos50 do you want to use this PR to do flaky test hunting? |
I'll do that in another PR. |
bf13cc6
to
1b34e2c
Compare
@devos50 https://jenkins-ci.tribler.org/job/GH_Tribler_PR_Tests/job/PR_win64_pytest/21/consoleFull Is that due to |
Crap, there seems to be a critical bug in |
These tests are really driving me crazy. At this point, I'm totally fine with disabling them... @qstokkink your thoughts? |
@devos50 🤷 "If you can't fix it, skip it." Though, of course, it would be better if these tests were fixed. |
Well, let me first revert the flaky stuff |
Ok, it seems that the pytest-rerunfailures works. I'll use that instead 👍 |
@devos50 cool, tell me when to rebase 👍 |
Noooooooo |
So.. back to skipping? |
To be fair, if anything, it seems like |
I won't have time to look into it further today. It also seems that getting logging output from For now, I finished #5584 so that should be ready for merge. Please rebase then and try to get the tests passing I guess? I look at it later. |
1b34e2c
to
56e6eb2
Compare
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
The gods of testing have smiled upon me: none of the unrelated tests have failed during this testing run. 🙏 This PR is once again ready for review. |
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. Not sure how it would behave in the wild but there's only one way to find out 👍
I have spent quite some hours running this and tweaking it.. but, should worst come to worst, we can disable this by default in the config. |
Fixes #5384
This PR addresses scaling back IPv8's bandwidth and CPU use while the main thread is congested. Concretely, this PR makes the following changes:
walk_interval
.walk_interval
may grow to, if scaling is enabled.IPv8Monitor
class (and tests), to measure the main thread choking and scale thewalk_interval
accordingly.IPv8Monitor
to theSession
IPv8 initialization.Session
to use the newConfigBuilder
.walk_interval
.