Skip to content
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

Merged
merged 3 commits into from Nov 10, 2014

Conversation

benallard
Copy link
Contributor

Those are fix that were needed to get the Dockerstuff working.

See TRAC-2970

@sa2ajj
Copy link
Contributor

sa2ajj commented Nov 8, 2014

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?

@sa2ajj
Copy link
Contributor

sa2ajj commented Nov 8, 2014

I kinda wonder how it worked... Probably the affected functionality is not common in the normal setup (and tests passed).

@djmitche
Copy link
Member

djmitche commented Nov 9, 2014

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 buildbot.test.integration.test_slave_comm, but that only tests some of the connection-handling code (specifically around duplicate slaves).

@sa2ajj
Copy link
Contributor

sa2ajj commented Nov 9, 2014

@djmitche are there any copies of that work?

@djmitche
Copy link
Member

djmitche commented Nov 9, 2014

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.

@djmitche
Copy link
Member

djmitche commented Nov 9, 2014

I'm setting merge-me because I think, even without tests, this is a good fix.

@sa2ajj
Copy link
Contributor

sa2ajj commented Nov 10, 2014

I'll leave @benallard to decide whether to merge it as it is or if he wants to try to add a test case.

@benallard
Copy link
Contributor Author

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 ...

@sa2ajj
Copy link
Contributor

sa2ajj commented Nov 10, 2014

Added ticket:3016.

sa2ajj pushed a commit that referenced this pull request Nov 10, 2014
Fix AbstractLatentBuildslave

Fixes ticket:2970
@sa2ajj sa2ajj merged commit ce5389e into buildbot:master Nov 10, 2014
@benallard benallard deleted the fix-abstractlatentbuildslave branch November 10, 2014 10:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants