Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upEnsure all Buildbot builders listed for servo repo in Homu configuration are valid #443
Comments
|
I am interested in giving this a try. |
|
@loganmhb Great! Let us know if you have any questions. |
|
Just starting out with this, but it looks like the imp.load_source() function might enable us to load master.cfg without the use of exec, if that seems preferable. (See http://stackoverflow.com/questions/2601047/import-a-python-module-without-the-py-extension) |
|
@loganmhb If you can make it work without |
|
@loganmhb How's this going? Do you have any more questions? |
|
@aneeshusa apologies for slow progress here -- it's taken me a little while to get up to speed with the salt build process. I've got the local test environment with Vagrant running, but I can't figure out where to find the deployed Buildbot configuration -- can you point me in the right direction for that? Thanks! |
|
@loganmhb There's a bit of indirection in the |
|
Hmm, there must be something wrong with how I'm doing the setup then -- the /home/servo directory is empty. I'll try to figure out where that's going wrong. |
|
@loganmhb You need to be using the |
|
@loganmhb Did you sort out the issue? Are you still working on this? |
|
So sorry for disappearing! Thought I had already responded to this but I I haven't been able to work out my virtualenv/environment issues yet - have On Tue, Oct 18, 2016, 5:29 PM Josh Matthews notifications@github.com
|
|
#562 is another place this would have been helpful! (It always seems to be windows-related...) |
|
I'm interrested to work on this. |
|
@charlesvdv go for it! |
Add test to verify if all homu builders are listed in the buildbot config That should resolve the #443. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/saltfs/571) <!-- Reviewable:end -->
|
Fixed by #571. |
The Homu configuration (
homu/cfg.toml) lists a number of Buildbot repos that are used for gating/try builds, in thebuildersandtry_buildersfields ofrepo.servo.buildbot. Recently, thewindowsbuilder got renamed towindows-devin the Buildbot configuration without updating the Homu configuration, causing breakage. We should ensure that all the builders listed are valid builders.Files:
tests/sls/homu/valid_builders.py.The test should read in the templated, deployed Homu configuration using the
tomllibrary, and examine those two fields, checking them against the list of builders specified in the deployed Buildbot configuration to make sure they all exist.Note: successfully reading the deployed Buildbot configuration is not that easy, because we need to import the
master.cfgfile, but it doesn't have a.pyextension! If you look at how Buildbot 8 does this, it looks like this requires usage ofexec. (I don't see anything in eitherimportliborimpthat would help here.) I consider this a necessary evil for now.Note 2: there may be problems due to the tests using Python 3 and the Buildbot configuration using Python 2; it is likely that a Python 2 subprocess will be needed to extract the list of builders from the configuration.
Tip: if you rename the
master.cfgfile tomaster.py, you can import the module from a Python REPL to look at the available bindings to get to the list of builders.