Skip to content

Issue 2547 [FIXED]#1370

Merged
sa2ajj merged 6 commits intobuildbot:masterfrom
kassemsandarusi:issue_2547
Nov 21, 2014
Merged

Issue 2547 [FIXED]#1370
sa2ajj merged 6 commits intobuildbot:masterfrom
kassemsandarusi:issue_2547

Conversation

@kassemsandarusi
Copy link
Copy Markdown
Contributor

This was a rather small issue, but i took the liberty of taking this opportunity to move the management of buildslaves into the buildslavemanager. This is my first patch so i would appreciate any feedback if possible.

…rvice parent.

Added tests for BuildslaveManager. Updated old tests to conform to new service parent.
Updated minor documents to conform to new change. Fixes :bb🐛`2547`.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason to leave this commented out ?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And I think the body of the function should go away as well.

@sa2ajj
Copy link
Copy Markdown
Contributor

sa2ajj commented Nov 20, 2014

👍

Two notes:

  • I think @benallard has a valid question (I think that comment could just be removed)
  • such a substantial change is worth a note in release notes

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This TODO can go away, too!

@djmitche
Copy link
Copy Markdown
Member

What @sa2ajj said :)

@sa2ajj
Copy link
Copy Markdown
Contributor

sa2ajj commented Nov 20, 2014

So things to do:

  • remove extra comments
  • add release notes
  • remove obsolete TODO item

and then we are good to go.

Thanks, @kassemsandarusi

@kassemsandarusi
Copy link
Copy Markdown
Contributor Author

I removed some of the remaining obselete items within Botmaster as well.

@sa2ajj
Copy link
Copy Markdown
Contributor

sa2ajj commented Nov 20, 2014

Excellent. Let's wait for the Travis to say its opinion :)

@benallard
Copy link
Copy Markdown
Contributor

👍

@kassemsandarusi
Copy link
Copy Markdown
Contributor Author

Not fair Travis failing me on purpose. :P

sa2ajj pushed a commit that referenced this pull request Nov 21, 2014
Make it possible to have slaves and builders with the same name

Fixes ticket:2547
@sa2ajj sa2ajj merged commit c422c95 into buildbot:master Nov 21, 2014
@sa2ajj
Copy link
Copy Markdown
Contributor

sa2ajj commented Nov 21, 2014

Thank you, @kassemsandarusi :)

@sa2ajj
Copy link
Copy Markdown
Contributor

sa2ajj commented Nov 21, 2014

Interesting: we lost unicodeness somewhere...

@sa2ajj
Copy link
Copy Markdown
Contributor

sa2ajj commented Nov 21, 2014

For the record Trac ticket is 3058.

@kassemsandarusi
Copy link
Copy Markdown
Contributor Author

I'll take a look at it tonight.

delanne pushed a commit to delanne/buildbot that referenced this pull request Nov 21, 2014
…547"

This reverts commit c422c95, reversing
changes made to e9655c7.
delanne pushed a commit to delanne/buildbot that referenced this pull request Nov 21, 2014
…547"

This reverts commit c422c95, reversing
changes made to 41dfe5b.
@sa2ajj
Copy link
Copy Markdown
Contributor

sa2ajj commented Nov 21, 2014

@delanne said on IRC today: since I fetch the buildbot upstream (master branch), my buildbot master doesn't schedule builds ;(

@benallard
Copy link
Copy Markdown
Contributor

Looks like we really need more testing around the slave handling stuff (TRAC-3016 among others)

@kassemsandarusi
Copy link
Copy Markdown
Contributor Author

Well this is embarassing. Do you have any idea where I should look? I've tried searching for references of anything that changed.

edit: for the record, GMT -6 (CST)

@benallard
Copy link
Copy Markdown
Contributor

I don't believe what @delanne saw was related to this PR. It was most probably another manifestation of TRAC-3051, just that restarting his master fixed it for him (only at the same time, he reverted the PR).

@kassemsandarusi
Copy link
Copy Markdown
Contributor Author

Oh I see, thanks. I thought my commit was reverted out of the master for a second.

@sa2ajj
Copy link
Copy Markdown
Contributor

sa2ajj commented Nov 21, 2014

No it was not.

However, we definitely need some integration tests.

@kassemsandarusi
Copy link
Copy Markdown
Contributor Author

Right, I am actually looking right now into cleaning up the current unit tests and adding integration tests.

@sa2ajj
Copy link
Copy Markdown
Contributor

sa2ajj commented Nov 21, 2014

Then, hopefully, we either see where the problem could be or will be more certain that things are OK 😄

@sa2ajj
Copy link
Copy Markdown
Contributor

sa2ajj commented Nov 23, 2014

@kassemsandarusi the test failure is not related to your change at all. It looks like the tags can be returned in different order, as a result comparison fails.

@sa2ajj
Copy link
Copy Markdown
Contributor

sa2ajj commented Nov 23, 2014

But more tests are welcome :)

@delanne
Copy link
Copy Markdown
Contributor

delanne commented Nov 24, 2014

@benallard, I don't think it's a manifestation of trac 3051. before this PR, my buildbot correctly schedules jobs. After this PR is doesn't. If I revert the 2 commits, then it's working.

@benallard
Copy link
Copy Markdown
Contributor

@delanne: Because you restarted your master ! You had the exact same symptoms as TRAC-3051, and I had the trouble before this PR. Beside, my master runs fine with this one in.

@delanne
Copy link
Copy Markdown
Contributor

delanne commented Nov 24, 2014

So, why when I restart my master without the 2 commits it works, and when I restart my master with this 2 commits, it doesn't. That's weird.

@delanne
Copy link
Copy Markdown
Contributor

delanne commented Nov 24, 2014

without these 2 commits, in my twistd.log, I can see:

2014-11-24 09:02:42+0100 [-] Latent buildslave cmgwLinterSlave1 attached to cmgw_linty
2014-11-24 09:02:42+0100 [-] Latent buildslave cmgwLinterSlave1 attached to cmgw_build_u14
2014-11-24 09:02:42+0100 [-] Latent buildslave cmgwSlave2 attached to cmgw_build_u12
2014-11-24 09:02:42+0100 [-] Latent buildslave cmgwSlave1 attached to cmgw_build_u14
2014-11-24 09:02:42+0100 [-] Latent buildslave ctafSlave1 attached to ctaf_py27
2014-11-24 09:02:42+0100 [-] Latent buildslave ctafSlave1 attached to ctaf_linty
2014-11-24 09:02:42+0100 [-] Latent buildslave ctafSlave1 attached to ctaf_sandbox
2014-11-24 09:02:42+0100 [-] Latent buildslave ctafSlave1 attached to ctaf_documentation
2014-11-24 09:02:42+0100 [-] Latent buildslave ctafSlave2 attached to ctaf_py27
2014-11-24 09:02:42+0100 [-] Latent buildslave ctafSlave2 attached to ctaf_linty
2014-11-24 09:02:42+0100 [-] Latent buildslave ctafSlave2 attached to ctaf_sandbox
2014-11-24 09:02:42+0100 [-] Latent buildslave ctafSlave2 attached to ctaf_documentation
2014-11-24 09:02:42+0100 [-] Latent buildslave ctafExecutorSlave1 attached to cmgw_ctaf_test

with the 2 commits, I don't see these lines => It seems that slaves aren't attached to builders.

@benallard
Copy link
Copy Markdown
Contributor

Then you know what's left to do ;) Roll up your sleeves, and start hacking ! It's free software after all !

@sa2ajj
Copy link
Copy Markdown
Contributor

sa2ajj commented Nov 24, 2014

@benallard there's an ongoing discussion on IRC atm.

@delanne
Copy link
Copy Markdown
Contributor

delanne commented Nov 24, 2014

$ git diff
diff --git a/master/buildbot/buildslave/manager.py b/master/buildbot/buildslave/manager.py
index d8a665e..628da86 100644
--- a/master/buildbot/buildslave/manager.py
+++ b/master/buildbot/buildslave/manager.py
@@ -62,6 +62,7 @@ class BuildslaveManager(config.ReconfigurableServiceMixin,

     name = "buildslaves"
     PING_TIMEOUT = 10
+    reconfig_priority = 127

     def __init__(self, master):
         service.MultiService.__init__(self)

This patch fix the issue for me.

@djmitche
Copy link
Copy Markdown
Member

Good fix - I missed that in review.

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.

5 participants