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
Fix AbstractLatentBuildslave #1341
Fix AbstractLatentBuildslave #1341
Conversation
It looks like some bits were missed during a refactoring, this points to the lack of tests. @djmitche, @jaredgrubb, everybody else, any suggestions where to start to create proper tests? |
I kinda wonder how it worked... Probably the affected functionality is not common in the normal setup (and tests passed). |
This patch looks good. A lot of this was from the incomplete work on the new master-slave protocol -- work that was actually reverted on master with the expectation that it would be fixed up and re-merged before nine. I'm sad that never happened. That project also added some more testable interfaces along with better tests. I think that the best way to catch this sort of thing is integration testing -- hook up a master and a fake slave and make something happen. Much of that is already built in |
@djmitche are there any copies of that work? |
Yes -- I think https://github.com/buildbot/buildbot/tree/slave-proto is most up to date, and maybe also https://github.com/tomprince/buildbot/tree/slaveproto. @tomprince is a good person to talk to, although as you can see from the commit dates, it's been well over a year. |
I'm setting merge-me because I think, even without tests, this is a good fix. |
I'll leave @benallard to decide whether to merge it as it is or if he wants to try to add a test case. |
Of course, I want to add a test-case ! I'd love to see coverage improve in this area ! However I'm not sure how complicated it is to add, nor when I'll find time to seat down and look at it. Best I guess is to merge this, and add an issue in TRAC about the need for an integration test for latent slaves ... |
Added ticket:3016. |
Fix AbstractLatentBuildslave Fixes ticket:2970
Those are fix that were needed to get the Dockerstuff working.
See TRAC-2970