Bug 316 - Load steps YAML from Servo repo#368
Conversation
|
Reviewed 2 of 2 files at r1. buildbot/master/files/config/master.cfg, line 141 [r1] (raw file):
This comment is unclear to me -- I expect that the yaml builder would only parse the YAML file from the Servo repo then hand that config back to the master, yet the comment makes it sound like the yaml builder will be what then runs the loaded steps. Comments from Reviewable |
| yaml_path = "" | ||
|
|
||
| def __init__(self, builder_name, environment, yaml_path): | ||
| print(yaml_path) |
|
Since we're just testing the YAML loading, let's get rid of You'll also need to make a PR to servo/servo to add a linux-dev-yaml section in the
I believe we need to create and invoke a Buildbot Please also address the test suite failures from Travis. |
|
@aneeshusa So in my |
|
@anneeshusa Also I have a question regarding @edunham 's comment. If I change the Or perhaps I should just return the parsed YAML content back to the master, and let the master start another builder with the parsed steps? But I don't see a clear place in the |
|
As far as I understand, you're correct that you'll need to DynamicServoYAMLBuilder should pick up on the new steps and continue to run them. Buildbot 9 (next major version) explicitly adds support for this behavior: docs here and code here. I think the end result should look pretty close to the |
|
☔ The latest upstream changes (presumably #373) made this pull request unmergeable. Please resolve the merge conflicts. |
|
@aneeshusa Thanks! Let me read that and get back to you. |
|
@aneeshusa I ran the script throught REPL and didn't see any error, but I might need a full setup to varify it works. |
|
|
||
| class StepsYAMLParsingStep(buildstep.ShellMixin, buildstep.BuildStep): | ||
| """ | ||
| Step which resolves the in-tree YAML and dynamically add test steps. |
This should fix #316
I only tested it with
buildbot checkconfig master(in theservo-master1VM). I did try to execute the step in the python interactive console, but some part requires extensive mocking, so I gave up and submit a PR first.This change is