[devel at bb.net] Porting buildbot to Python 3, status report and request for help

Pierre Tardy tardyp at gmail.com
Tue Jan 31 09:58:06 UTC 2017


Hi Craig,

+user at buildbot
Thanks for the report. I have been gathering status inside our event
server, and here is the graph of evolution of the errors and failure on the
test suite for python 3.

[image: pasted1]
I can also see that there are some of the integration tests that pass.
1 % trial buildbot.test.integration.test_stop_trigger
buildbot.test.integration.test_stop_trigger
  TriggeringMaster
    testTriggerRunsForever ...
[OK]
    testTriggerRunsForeverAfterCmdStarted ...
 [OK]
    testTriggeredBuildIsNotCreated ...
[OK]

Which means we can actually create some builds with python3!

I will be releasing the first py3 capable buildbot worker in beginning of
february, and I hope we can have a py3 capable master for the following
release.

I will be pleased to see more people helping on this matter. I think this
is indeed a good opportunity for people to help Buildbot.
Despite what you are saying, I am convinced there are still many of the
remaining tests that should be workable under a few hours.
Buildbot being very heavily unit tested helps a lot for this kind of
refactorizations.

Of course, I will be willing to help for the hardest steps, please let me
know where you are stuggling

Pierre

Le lun. 30 janv. 2017 à 10:54, Craig Rodrigues <rodrigc at crodrigues.org> a
écrit :

Hi,

I have been pushing a lot of Python 3 fixes to buildbot, which Pierre has
been kindly reviewing and merging:

https://github.com/buildbot/buildbot/pulls/rodrigc?q=is%3Apr+is%3Aclosed

On my Mac laptop, I took the latest master, and was able to run
the tests by typing "trial buildbot.test":

Python 2.7
=========
PASSED (skips=14, successes=4848)

Python 3.6
=========
FAILED (skips=197, failures=86, errors=286, successes=4430)

There is still more work to do, but this is good progress.  A month or so
ago,
very few tests were passing on Python 3, but now 91% of the tests passing
on Python 2.7 are passing on Python 3.


I then tested the worker by doing:  "trial buildbot_worker.test"

Python 2.7
=========
PASSED (skips=1, successes=227)


Python 3.6
=========
PASSED (skips=1, successes=227)

So all the tests on the worker pass!  This is good news!!



To get the last tests passing on Python 3, the problems are getting
tougher and tougher to solve, since I have solved most of the
easiest problems first. :)

I was wondering if there are any developers in the buildbot community
who would be able to help me finish this off?  I think I can move faster
if I have some helping hands.

The problems are quite difficult, so someone with serious Python
experience, and also Twisted experience would be great.

I am also a committer to the Twisted project, so I can help move things
along there.

Thanks!

--
Craig


_______________________________________________
devel mailing list
devel at buildbot.net
https://lists.buildbot.net/mailman/listinfo/devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.buildbot.net/pipermail/devel/attachments/20170131/a7cad868/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pasted1
Type: image/png
Size: 46931 bytes
Desc: not available
URL: <http://lists.buildbot.net/pipermail/devel/attachments/20170131/a7cad868/attachment.png>


More information about the devel mailing list