-
Notifications
You must be signed in to change notification settings - Fork 444
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
Refactored tracker health check code to become asynchronous. Adjusted a part of the tribler shutdown procedure as a result. #2038
Conversation
Dirty reactor |
retest this please |
again dirty reactor |
retest this please |
Again a dirty reactor. I think the test gets a deferred now and terminates immediately. Will check tomorrow. |
retest this please |
It was correct! Let's see if 2/2 pass :) |
retest this please |
@whirm if this one succeeds too, I think it should be OK. |
c86d0b7
to
ac2dcfc
Compare
retest this please |
No need to retest, you need to fix this first:
|
ac2dcfc
to
f8f36c8
Compare
d5f18ff
to
3d6a91b
Compare
retest this please |
Jenkins is down, can't see the diff in coverage :/ |
Looks like the hiccup is over |
5ddd214
to
2418cb5
Compare
@whirm Ok, tests are all passing on it again... I will squash now. |
5c6a8a9
to
ecc2834
Compare
great! |
ebc5a6f
to
44bdcd3
Compare
Haven't seen this one before. |
I don't think receiving a 17byte datagram should raise an exception... I'll have a look on the dispersy side. |
retest this please |
|
retest this please |
Found an issue that may be related to my work |
@whirm tests passed 👍 |
Huh again an one line but not the second covered issue. But this time not a continue |
Looks fine, squash it |
4df6619
to
e986c8d
Compare
…ous, fixed styling issues, 2 bugs, added a utility function and reduced overall code and complexity
e986c8d
to
4de50b8
Compare
retest this please |
@lfdversluis are all tests passing locally for you? I find it a bit suspicious that the bucket that gets stuck is the one that contains the new tests. |
@whirm Yup Locally they run fine. Perhaps debian vs ubuntu? We know that download_from_url hangs on devel, and other tests |
|
||
self.tdb.addExternalTorrent(tdef) | ||
self.session.check_torrent_health(tdef.get_infohash()) | ||
sleep(31) |
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.
No sleeps please
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.
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.
That sucks, it slipped right through.
@devos50 please, fix that test to not use sleep().
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.
@whirm it's also not my test, I only made a modification to the test to let it use another torrent. I will create an issue.
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.
To me it looks like the whole test is being added on this PR.
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.
It's really weird.
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.
Oh man, it's a Monday alright! That's a copy of the test over it... Those two tests are responsible for a full minute of test execution time. That's ridiculous.
@whirm As you made a separate issue for the sleep(s), can this one be merged if all is/looks ok? AFAIK @ardhipoetra would like to rebase with this code as he has the current blocking code in his work now (and he depends on the statistics). IF it turns out that there is indeed something weird going on with the tests (your gut feeling) besides the hanging stuff that will get fixed, I will open a new PR once I investigated. |
I'm also dependent on this PR since I have to refactor the shutdown procedure of the HTTP API slightly as well so I would also like to see this merged before #2121. |
Thanks for the merge! Will do the rebase |
More deletions than additions while keeping the same functionality (I hope), but much more clean!
Fixes #2035, contributing to #1848
Adds 29 tests
Improves responsiveness a lot, watchdog was tripping with > 10 seconds timeout. Not anymore.
Fixed 2 bugs
Improved redirection by making use of Twisted's redirectAgent
Added lots of documentation for other generations to read (enchancement)
Fixed 50+ pylint style errors