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
Replace lambdas with functions #652
Conversation
The first commit is me not properly merging commits from upstream. I will remove it when I squash the merges. Currently the PR is WIP. |
The command |
That This error is most likely related to something in the PR. |
Even though the error isn't critical the gui tests don't run (probably because they depend on the basic tests). |
@Solomon1732 For IPv8, there are no GUI tests for the IPv8 directory. The Jenkins log shows the following:
There's no clear error here unfortunately. I will run them on my machine in a moment to see if I can see what's wrong. Also, this PR seems to be on the |
@devos50 Is nosetests3 installed on our infrastructure? That properly outputs logging on failure. |
@qstokkink yeah nosetests3 should be installed 👍 |
@Solomon1732 it's probably failing because > b"\x80".decode()
Traceback (most recent call last):
File "main.py", line 1, in <module>
b"\x80".decode()
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 0: invalid start byte Same goes for |
It might be how your Git branch is based. Try rebasing to the latest |
Yes, yes it is.
Ah, ok. Will try |
Got it. Though >>> def cast_to_chr(obj):
return "".join(chr(c) for c in obj)
>>> cast_to_chr(b"\x80")
'\x80' Is the behavior intentional? |
Odd. Still failing. If I delete the branch locally and on remote, will the PR still stay? I guess not, but worth asking. |
I tried
but that rogue commit still appears in the PR for some reason |
Even tried: delete local branch; create new f_refractor_lambda branch; push only desired change into branch; |
Considering the tests fail here and not in #655 it makes me wonder what in this PR fails the tests... |
I am confounded as to why it keeps failing on it here... |
It doesn't even build. Odd...
Edit: taken from https://jenkins-ci.tribler.org/job/ipv8/job/test_ipv8_PR_unittests_linux_py36/1133/console |
retest this please |
I just disabled the recursive submodule operation of the IPv8 PR testers. Since IPv8 does not have any submodules, this step was not required 👍 |
I tried to run the tests in the |
Still can't get a pull request for some reason. Why... Maybe someone can look deeper on what happens with Jenkins behind the scenes? |
When running the tests with this PR on my machine:
|
I'm thinking of closing this PR and starting from scratch, considering it's only this PR which is so problematic. But I'll wait for #655 before attempting to delete the repo and starting again. This one is small anyway. |
@Solomon1732 the error seems to be in |
Ah, then it might be because of the |
YES! Fina-freaking-ly! Thank you so much @devos50 !!! 😄 |
Remove `old_round` functionality since it is no longer necessary.
Nice! 😄 |
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.
Cool, thanks!
Replace lambdas with functions. Remove a use of
old_round
(total removal depends on Tribler/tribler#5024 and Tribler/anydex-core#31).Other minor refractoring: removing the redundantu
prefix from strings; remove cast_to_* functions when it is immediately clear how to manipulate the data.Fixes #651.